Package: netdata
Version: 1.11.1+dfsg-1
Severity: serious

Upgrading netdata failed for me as follows:

Setting up netdata (1.11.1+dfsg-1) ...
Installing new version of config file /etc/init.d/netdata ...
/var/lib/dpkg/info/netdata.postinst: 32: /var/lib/dpkg/info/netdata.postinst: 
Syntax error: "then" unexpected (expecting "fi")
dpkg: error processing package netdata (--configure):
 installed netdata package post-installation script subprocess returned error 
exit status 2

Reason seems to be that lines 29 to 40 of
/var/lib/dpkg/info/netdata.postinst contain "»·······" instead of a tab
character. Might be some copy & paste gone wrong.

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'unstable-debug'), (500, 
'buildd-unstable'), (500, 'testing'), (1, 'experimental-debug'), (1, 
'buildd-experimental'), (1, 'experimental')
Architecture: armhf (armv7l)

Kernel: Linux 3.18.0-trunk-rpi2 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages netdata depends on:
ii  adduser                3.118
ii  debconf [debconf-2.0]  1.5.69
ii  init-system-helpers    1.56+nmu1
ii  libc6                  2.28-4
ii  libcap2-bin            1:2.25-1.2
ii  libipmimonitoring6     1.5.7-2.1
ii  libuuid1               2.33-0.2
ii  lsb-base               10.2018112800
ii  netdata-data           1.11.1+dfsg-1
ii  python3                3.7.1-3
ii  python3-six            1.12.0-1
ii  python3-urllib3        1.24-1
ii  python3-yaml           3.13-1
ii  ucf                    3.0038+nmu1
ii  zlib1g                 1:1.2.11.dfsg-1

Versions of packages netdata recommends:
ii  curl    7.62.0-1
ii  fping   4.1-1
ii  nodejs  8.11.2~dfsg-1

netdata suggests no packages.

-- Configuration Files:
/etc/netdata/health_alarm_notify.conf changed:
sendmail=""
curl=""
nc=""
EMAIL_SENDER=""
SEND_EMAIL="NO"
DEFAULT_RECIPIENT_EMAIL="root"
SEND_PUSHOVER="YES"
PUSHOVER_APP_TOKEN=""
DEFAULT_RECIPIENT_PUSHOVER=""
SEND_PUSHBULLET="YES"
PUSHBULLET_ACCESS_TOKEN=""
DEFAULT_RECIPIENT_PUSHBULLET=""
PUSHBULLET_SOURCE_DEVICE=""
SEND_TWILIO="YES"
TWILIO_ACCOUNT_SID=""
TWILIO_ACCOUNT_TOKEN=""
TWILIO_NUMBER=""
DEFAULT_RECIPIENT_TWILIO=""
SEND_MESSAGEBIRD="YES"
MESSAGEBIRD_ACCESS_KEY=""
MESSAGEBIRD_NUMBER=""
DEFAULT_RECIPIENT_MESSAGEBIRD=""
SEND_KAVENEGAR="YES"
KAVENEGAR_API_KEY=""
KAVENEGAR_SENDER=""
DEFAULT_RECIPIENT_KAVENEGAR=""
SEND_TELEGRAM="YES"
TELEGRAM_BOT_TOKEN=""
DEFAULT_RECIPIENT_TELEGRAM=""
SEND_SLACK="YES"
SLACK_WEBHOOK_URL=""
DEFAULT_RECIPIENT_SLACK=""
SEND_ALERTA="YES"
ALERTA_WEBHOOK_URL=""
ALERTA_API_KEY=""
DEFAULT_RECIPIENT_ALERTA=""
SEND_FLOCK="YES"
FLOCK_WEBHOOK_URL=""
DEFAULT_RECIPIENT_FLOCK=""
SEND_DISCORD="YES"
DISCORD_WEBHOOK_URL=""
DEFAULT_RECIPIENT_DISCORD=""
SEND_HIPCHAT="YES"
HIPCHAT_SERVER="api.hipchat.com"
HIPCHAT_AUTH_TOKEN=""
DEFAULT_RECIPIENT_HIPCHAT=""
SEND_KAFKA="YES"
KAFKA_URL=""
KAFKA_SENDER_IP=""
SEND_PD="YES"
DEFAULT_RECIPIENT_PD=""
SEND_IRC="YES"
DEFAULT_RECIPIENT_IRC=""
IRC_NETWORK=""
IRC_NICKNAME=""
IRC_REALNAME=""
SEND_CUSTOM="YES"
DEFAULT_RECIPIENT_CUSTOM=""
custom_sender() {
    # variables you can use:
    # ${host}               the host generated this event
    # ${url_host}           same as ${host} but URL encoded
    # ${unique_id}          the unique id of this event
    # ${alarm_id}           the unique id of the alarm that generated this event
    # ${event_id}           the incremental id of the event, for this alarm id
    # ${when}               the timestamp this event occurred
    # ${name}               the name of the alarm, as given in netdata health.d 
entries
    # ${url_name}           same as ${name} but URL encoded
    # ${chart}              the name of the chart (type.id)
    # ${url_chart}          same as ${chart} but URL encoded
    # ${family}             the family of the chart
    # ${url_family}         same as ${family} but URL encoded
    # ${status}             the current status : REMOVED, UNINITIALIZED, 
UNDEFINED, CLEAR, WARNING, CRITICAL
    # ${old_status}         the previous status: REMOVED, UNINITIALIZED, 
UNDEFINED, CLEAR, WARNING, CRITICAL
    # ${value}              the current value of the alarm
    # ${old_value}          the previous value of the alarm
    # ${src}                the line number and file the alarm has been 
configured
    # ${duration}           the duration in seconds of the previous alarm state
    # ${duration_txt}       same as ${duration} for humans
    # ${non_clear_duration} the total duration in seconds this is/was non-clear
    # ${non_clear_duration_txt} same as ${non_clear_duration} for humans
    # ${units}              the units of the value
    # ${info}               a short description of the alarm
    # ${value_string}       friendly value (with units)
    # ${old_value_string}   friendly old value (with units)
    # ${image}              the URL of an image to represent the status of the 
alarm
    # ${color}              a color in #AABBCC format for the alarm
    # ${goto_url}           the URL the user can click to see the netdata 
dashboard
    # these are more human friendly:
    # ${alarm}              like "name = value units"
    # ${status_message}     like "needs attention", "recovered", "is critical"
    # ${severity}           like "Escalated to CRITICAL", "Recovered from 
WARNING"
    # ${raised_for}         like "(alarm was raised for 10 minutes)"
    # example human readable SMS
    local msg="${host} ${status_message}: ${alarm} ${raised_for}"
    # limit it to 160 characters and encode it for use in a URL
    urlencode "${msg:0:160}" >/dev/null; msg="${REPLY}"
    # a space separated list of the recipients to send alarms to
    to="${1}"
    info "not sending custom notification to ${to}, for ${status} of 
'${host}.${chart}.${name}' - custom_sender() is not configured."
}
role_recipients_email[sysadmin]="${DEFAULT_RECIPIENT_EMAIL}"
role_recipients_pushover[sysadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
role_recipients_pushbullet[sysadmin]="${DEFAULT_RECIPIENT_PUSHBULLET}"
role_recipients_telegram[sysadmin]="${DEFAULT_RECIPIENT_TELEGRAM}"
role_recipients_slack[sysadmin]="${DEFAULT_RECIPIENT_SLACK}"
role_recipients_alerta[sysadmin]="${DEFAULT_RECIPIENT_ALERTA}"
role_recipients_flock[sysadmin]="${DEFAULT_RECIPIENT_FLOCK}"
role_recipients_discord[sysadmin]="${DEFAULT_RECIPIENT_DISCORD}"
role_recipients_hipchat[sysadmin]="${DEFAULT_RECIPIENT_HIPCHAT}"
role_recipients_twilio[sysadmin]="${DEFAULT_RECIPIENT_TWILIO}"
role_recipients_messagebird[sysadmin]="${DEFAULT_RECIPIENT_MESSAGEBIRD}"
role_recipients_kavenegar[sysadmin]="${DEFAULT_RECIPIENT_KAVENEGAR}"
role_recipients_pd[sysadmin]="${DEFAULT_RECIPIENT_PD}"
role_recipients_irc[sysadmin]="${DEFAULT_RECIPIENT_IRC}"
role_recipients_custom[sysadmin]="${DEFAULT_RECIPIENT_CUSTOM}"
role_recipients_email[domainadmin]="${DEFAULT_RECIPIENT_EMAIL}"
role_recipients_pushover[domainadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
role_recipients_pushbullet[domainadmin]="${DEFAULT_RECIPIENT_PUSHBULLET}"
role_recipients_telegram[domainadmin]="${DEFAULT_RECIPIENT_TELEGRAM}"
role_recipients_slack[domainadmin]="${DEFAULT_RECIPIENT_SLACK}"
role_recipients_alerta[domainadmin]="${DEFAULT_RECIPIENT_ALERTA}"
role_recipients_flock[domainadmin]="${DEFAULT_RECIPIENT_FLOCK}"
role_recipients_discord[domainadmin]="${DEFAULT_RECIPIENT_DISCORD}"
role_recipients_hipchat[domainadmin]="${DEFAULT_RECIPIENT_HIPCHAT}"
role_recipients_twilio[domainadmin]="${DEFAULT_RECIPIENT_TWILIO}"
role_recipients_messagebird[domainadmin]="${DEFAULT_RECIPIENT_MESSAGEBIRD}"
role_recipients_kavenegar[domainadmin]="${DEFAULT_RECIPIENT_KAVENEGAR}"
role_recipients_pd[domainadmin]="${DEFAULT_RECIPIENT_PD}"
role_recipients_irc[domainadmin]="${DEFAULT_RECIPIENT_IRC}"
role_recipients_custom[domainadmin]="${DEFAULT_RECIPIENT_CUSTOM}"
role_recipients_email[dba]="${DEFAULT_RECIPIENT_EMAIL}"
role_recipients_pushover[dba]="${DEFAULT_RECIPIENT_PUSHOVER}"
role_recipients_pushbullet[dba]="${DEFAULT_RECIPIENT_PUSHBULLET}"
role_recipients_telegram[dba]="${DEFAULT_RECIPIENT_TELEGRAM}"
role_recipients_slack[dba]="${DEFAULT_RECIPIENT_SLACK}"
role_recipients_alerta[dba]="${DEFAULT_RECIPIENT_ALERTA}"
role_recipients_flock[dba]="${DEFAULT_RECIPIENT_FLOCK}"
role_recipients_discord[dba]="${DEFAULT_RECIPIENT_DISCORD}"
role_recipients_hipchat[dba]="${DEFAULT_RECIPIENT_HIPCHAT}"
role_recipients_twilio[dba]="${DEFAULT_RECIPIENT_TWILIO}"
role_recipients_messagebird[dba]="${DEFAULT_RECIPIENT_MESSAGEBIRD}"
role_recipients_kavenegar[dba]="${DEFAULT_RECIPIENT_KAVENEGAR}"
role_recipients_pd[dba]="${DEFAULT_RECIPIENT_PD}"
role_recipients_irc[dba]="${DEFAULT_RECIPIENT_IRC}"
role_recipients_custom[dba]="${DEFAULT_RECIPIENT_CUSTOM}"
role_recipients_email[webmaster]="${DEFAULT_RECIPIENT_EMAIL}"
role_recipients_pushover[webmaster]="${DEFAULT_RECIPIENT_PUSHOVER}"
role_recipients_pushbullet[webmaster]="${DEFAULT_RECIPIENT_PUSHBULLET}"
role_recipients_telegram[webmaster]="${DEFAULT_RECIPIENT_TELEGRAM}"
role_recipients_slack[webmaster]="${DEFAULT_RECIPIENT_SLACK}"
role_recipients_alerta[webmaster]="${DEFAULT_RECIPIENT_ALERTA}"
role_recipients_flock[webmaster]="${DEFAULT_RECIPIENT_FLOCK}"
role_recipients_discord[webmaster]="${DEFAULT_RECIPIENT_DISCORD}"
role_recipients_hipchat[webmaster]="${DEFAULT_RECIPIENT_HIPCHAT}"
role_recipients_twilio[webmaster]="${DEFAULT_RECIPIENT_TWILIO}"
role_recipients_messagebird[webmaster]="${DEFAULT_RECIPIENT_MESSAGEBIRD}"
role_recipients_kavenegar[webmaster]="${DEFAULT_RECIPIENT_KAVENEGAR}"
role_recipients_pd[webmaster]="${DEFAULT_RECIPIENT_PD}"
role_recipients_irc[webmaster]="${DEFAULT_RECIPIENT_IRC}"
role_recipients_custom[webmaster]="${DEFAULT_RECIPIENT_CUSTOM}"
role_recipients_email[proxyadmin]="${DEFAULT_RECIPIENT_EMAIL}"
role_recipients_pushover[proxyadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
role_recipients_pushbullet[proxyadmin]="${DEFAULT_RECIPIENT_PUSHBULLET}"
role_recipients_telegram[proxyadmin]="${DEFAULT_RECIPIENT_TELEGRAM}"
role_recipients_slack[proxyadmin]="${DEFAULT_RECIPIENT_SLACK}"
role_recipients_alerta[proxyadmin]="${DEFAULT_RECIPIENT_ALERTA}"
role_recipients_flock[proxyadmin]="${DEFAULT_RECIPIENT_FLOCK}"
role_recipients_discord[proxyadmin]="${DEFAULT_RECIPIENT_DISCORD}"
role_recipients_hipchat[proxyadmin]="${DEFAULT_RECIPIENT_HIPCHAT}"
role_recipients_twilio[proxyadmin]="${DEFAULT_RECIPIENT_TWILIO}"
role_recipients_messagebird[proxyadmin]="${DEFAULT_RECIPIENT_MESSAGEBIRD}"
role_recipients_kavenegar[proxyadmin]="${DEFAULT_RECIPIENT_KAVENEGAR}"
role_recipients_pd[proxyadmin]="${DEFAULT_RECIPIENT_PD}"
role_recipients_irc[proxyadmin]="${DEFAULT_RECIPIENT_IRC}"
role_recipients_custom[proxyadmin]="${DEFAULT_RECIPIENT_CUSTOM}"
role_recipients_email[sitemgr]="${DEFAULT_RECIPIENT_EMAIL}"
role_recipients_pushover[sitemgr]="${DEFAULT_RECIPIENT_PUSHOVER}"
role_recipients_pushbullet[sitemgr]="${DEFAULT_RECIPIENT_PUSHBULLET}"
role_recipients_telegram[sitemgr]="${DEFAULT_RECIPIENT_TELEGRAM}"
role_recipients_slack[sitemgr]="${DEFAULT_RECIPIENT_SLACK}"
role_recipients_alerta[sitemgr]="${DEFAULT_RECIPIENT_ALERTA}"
role_recipients_flock[sitemgr]="${DEFAULT_RECIPIENT_FLOCK}"
role_recipients_discord[sitemgr]="${DEFAULT_RECIPIENT_DISCORD}"
role_recipients_hipchat[sitemgr]="${DEFAULT_RECIPIENT_HIPCHAT}"
role_recipients_twilio[sitemgr]="${DEFAULT_RECIPIENT_TWILIO}"
role_recipients_messagebird[sitemgr]="${DEFAULT_RECIPIENT_MESSAGEBIRD}"
role_recipients_kavenegar[sitemgr]="${DEFAULT_RECIPIENT_KAVENEGAR}"
role_recipients_pd[sitemgr]="${DEFAULT_RECIPIENT_PD}"
role_recipients_custom[sitemgr]="${DEFAULT_RECIPIENT_CUSTOM}"


-- debconf information:
  netdata/title:
  netdata/send_email: NO

Reply via email to