Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bash -x /usr/libexec/netdata/plugins.d/alarm-notify.sh sysadmin miveterinario.es 1 1 1 1548349592 test_alarm test.chart test.family WARNING CLEAR 100 90 /usr/libexec/netdata/plugins.d/alarm-notify.sh 1 1 units 'this is a test alarm to verify notifications work' 'new value' 'old value' 'evaluated expression' 'expression variable values' 0 0
- + '[' '(' sysadmin = test -o miveterinario.es = test ')' -a 24 -le 2 ']'
- + export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/sbin:/usr/sbin:/usr/local/sbin
- + PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/sbin:/usr/sbin:/usr/local/sbin
- + export LC_ALL=C
- + LC_ALL=C
- ++ basename /usr/libexec/netdata/plugins.d/alarm-notify.sh
- + PROGRAM_NAME=alarm-notify.sh
- + debug=0
- + method_names='
- email
- pushover
- pushbullet
- telegram
- slack
- alerta
- flock
- discord
- hipchat
- twilio
- messagebird
- pd
- fleep
- syslog
- custom
- msteam
- kavenegar
- prowl
- '
- + '[' 4 -lt 4 ']'
- + '[' -z '' ']'
- + NETDATA_USER_CONFIG_DIR=/etc/netdata
- + '[' -z '' ']'
- + NETDATA_STOCK_CONFIG_DIR=/usr/lib/netdata/conf.d
- + '[' -z '' ']'
- + NETDATA_CACHE_DIR=/var/cache/netdata
- + '[' -z '' ']'
- + NETDATA_REGISTRY_URL=https://registry.my-netdata.io
- + '[' sysadmin = unittest ']'
- + roles=sysadmin
- + args_host=miveterinario.es
- + unique_id=1
- + alarm_id=1
- + event_id=1
- + when=1548349592
- + name=test_alarm
- + chart=test.chart
- + family=test.family
- + status=WARNING
- + old_status=CLEAR
- + value=100
- + old_value=90
- + src=/usr/libexec/netdata/plugins.d/alarm-notify.sh
- + duration=1
- + non_clear_duration=1
- + units=units
- + info='this is a test alarm to verify notifications work'
- + value_string='new value'
- + old_value_string='old value'
- + calc_expression='evaluated expression'
- + calc_param_values='expression variable values'
- + total_warnings=0
- + total_critical=0
- + '[' -z miveterinario.es ']'
- + host=miveterinario.es
- + '[' WARNING '!=' WARNING -a WARNING '!=' CRITICAL -a WARNING '!=' CLEAR ']'
- + '[' '' '!=' YES -a CLEAR '!=' WARNING -a CLEAR '!=' CRITICAL -a WARNING = CLEAR ']'
- + images_base_url=https://registry.my-netdata.io
- + curl_options=
- + use_fqdn=NO
- + curl=
- + sendmail=
- + for method_name in '${method_names^^}'
- + declare SEND_EMAIL=YES
- + declare DEFAULT_RECIPIENT_EMAIL
- + for method_name in '${method_names^^}'
- + declare SEND_PUSHOVER=YES
- + declare DEFAULT_RECIPIENT_PUSHOVER
- + for method_name in '${method_names^^}'
- + declare SEND_PUSHBULLET=YES
- + declare DEFAULT_RECIPIENT_PUSHBULLET
- + for method_name in '${method_names^^}'
- + declare SEND_TELEGRAM=YES
- + declare DEFAULT_RECIPIENT_TELEGRAM
- + for method_name in '${method_names^^}'
- + declare SEND_SLACK=YES
- + declare DEFAULT_RECIPIENT_SLACK
- + for method_name in '${method_names^^}'
- + declare SEND_ALERTA=YES
- + declare DEFAULT_RECIPIENT_ALERTA
- + for method_name in '${method_names^^}'
- + declare SEND_FLOCK=YES
- + declare DEFAULT_RECIPIENT_FLOCK
- + for method_name in '${method_names^^}'
- + declare SEND_DISCORD=YES
- + declare DEFAULT_RECIPIENT_DISCORD
- + for method_name in '${method_names^^}'
- + declare SEND_HIPCHAT=YES
- + declare DEFAULT_RECIPIENT_HIPCHAT
- + for method_name in '${method_names^^}'
- + declare SEND_TWILIO=YES
- + declare DEFAULT_RECIPIENT_TWILIO
- + for method_name in '${method_names^^}'
- + declare SEND_MESSAGEBIRD=YES
- + declare DEFAULT_RECIPIENT_MESSAGEBIRD
- + for method_name in '${method_names^^}'
- + declare SEND_PD=YES
- + declare DEFAULT_RECIPIENT_PD
- + for method_name in '${method_names^^}'
- + declare SEND_FLEEP=YES
- + declare DEFAULT_RECIPIENT_FLEEP
- + for method_name in '${method_names^^}'
- + declare SEND_SYSLOG=YES
- + declare DEFAULT_RECIPIENT_SYSLOG
- + for method_name in '${method_names^^}'
- + declare SEND_CUSTOM=YES
- + declare DEFAULT_RECIPIENT_CUSTOM
- + for method_name in '${method_names^^}'
- + declare SEND_MSTEAM=YES
- + declare DEFAULT_RECIPIENT_MSTEAM
- + for method_name in '${method_names^^}'
- + declare SEND_KAVENEGAR=YES
- + declare DEFAULT_RECIPIENT_KAVENEGAR
- + for method_name in '${method_names^^}'
- + declare SEND_PROWL=YES
- + declare DEFAULT_RECIPIENT_PROWL
- + for method_name in '${method_names}'
- + declare -A role_recipients_email
- + for method_name in '${method_names}'
- + declare -A role_recipients_pushover
- + for method_name in '${method_names}'
- + declare -A role_recipients_pushbullet
- + for method_name in '${method_names}'
- + declare -A role_recipients_telegram
- + for method_name in '${method_names}'
- + declare -A role_recipients_slack
- + for method_name in '${method_names}'
- + declare -A role_recipients_alerta
- + for method_name in '${method_names}'
- + declare -A role_recipients_flock
- + for method_name in '${method_names}'
- + declare -A role_recipients_discord
- + for method_name in '${method_names}'
- + declare -A role_recipients_hipchat
- + for method_name in '${method_names}'
- + declare -A role_recipients_twilio
- + for method_name in '${method_names}'
- + declare -A role_recipients_messagebird
- + for method_name in '${method_names}'
- + declare -A role_recipients_pd
- + for method_name in '${method_names}'
- + declare -A role_recipients_fleep
- + for method_name in '${method_names}'
- + declare -A role_recipients_syslog
- + for method_name in '${method_names}'
- + declare -A role_recipients_custom
- + for method_name in '${method_names}'
- + declare -A role_recipients_msteam
- + for method_name in '${method_names}'
- + declare -A role_recipients_kavenegar
- + for method_name in '${method_names}'
- + declare -A role_recipients_prowl
- + SEND_SLACK=YES
- + SEND_MSTEAM=YES
- + SEND_ALERTA=YES
- + SEND_FLOCK=YES
- + SEND_DISCORD=YES
- + SEND_PUSHOVER=YES
- + SEND_TWILIO=YES
- + SEND_HIPCHAT=YES
- + SEND_MESSAGEBIRD=YES
- + SEND_KAVENEGAR=YES
- + SEND_TELEGRAM=YES
- + SEND_EMAIL=YES
- + SEND_PUSHBULLET=YES
- + SEND_KAFKA=YES
- + SEND_PD=YES
- + SEND_FLEEP=YES
- + SEND_IRC=YES
- + SEND_AWSSNS=YES
- + SEND_SYSLOG=NO
- + SEND_CUSTOM=YES
- + SLACK_WEBHOOK_URL=https://hooks.slack.com/services/xxxxx/xxxxxx/xxxxxxxx
- + DEFAULT_RECIPIENT_SLACK='netdata'
- + role_recipients_slack=()
- + declare -A role_recipients_slack
- + MSTEAM_WEBHOOK_URL=
- + ROCKETCHAT_WEBHOOK_URL=
- + ALERTA_WEBHOOK_URL=
- + ALERTA_API_KEY=
- + FLOCK_WEBHOOK_URL=
- + DISCORD_WEBHOOK_URL=
- + PUSHOVER_APP_TOKEN=
- + PUSHBULLET_ACCESS_TOKEN=
- + PUSHBULLET_SOURCE_DEVICE=
- + TWILIO_ACCOUNT_SID=
- + TWILIO_ACCOUNT_TOKEN=
- + TWILIO_NUMBER=
- + HIPCHAT_SERVER=
- + HIPCHAT_AUTH_TOKEN=
- + MESSAGEBIRD_ACCESS_KEY=
- + MESSAGEBIRD_NUMBER=
- + KAVENEGAR_API_KEY=
- + KAVENEGAR_SENDER=
- + TELEGRAM_BOT_TOKEN=
- + SEND_KAFKA=YES
- + KAFKA_URL=
- + KAFKA_SENDER_IP=
- + PD_SERVICE_KEY=
- + FLEEP_SENDER=miveterinario.es
- + DEFAULT_RECIPIENT_AWSSNS=
- + AWSSNS_MESSAGE_FORMAT=
- + role_recipients_awssns=()
- + declare -A role_recipients_awssns
- + SYSLOG_FACILITY=
- + EMAIL_SENDER=
- ++ locale charmap
- + EMAIL_CHARSET=ANSI_X3.4-1968
- + EMAIL_THREADING=
- + DEFAULT_RECIPIENT_EMAIL=root
- + IRC_NICKNAME=
- + IRC_REALNAME=
- + IRC_NETWORK=
- + '[' ']'
- + for CONFIG in '"${NETDATA_STOCK_CONFIG_DIR}/health_alarm_notify.conf"' '"${NETDATA_USER_CONFIG_DIR}/health_alarm_notify.conf"'
- + '[' -f /usr/lib/netdata/conf.d/health_alarm_notify.conf ']'
- + debug 'Loading config file '\''/usr/lib/netdata/conf.d/health_alarm_notify.conf'\''...'
- + '[' 0 = 1 ']'
- + source /usr/lib/netdata/conf.d/health_alarm_notify.conf
- ++ date_format=
- ++ sendmail=
- ++ curl=
- ++ nc=
- ++ logger=
- ++ aws=
- ++ EMAIL_SENDER=
- ++ SEND_EMAIL=YES
- ++ 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_MSTEAM=YES
- ++ DEFAULT_RECIPIENT_MSTEAM=
- ++ MSTEAM_WEBHOOK_URL=
- ++ MSTEAM_ICON_DEFAULT=$'\342\231\241'
- ++ MSTEAM_ICON_CLEAR=$'\360\237\222\232'
- ++ MSTEAM_ICON_WARNING=$'\342\232\240\357\270\217'
- ++ MSTEAM_ICON_CRITICAL=$'\360\237\224\245'
- ++ MSTEAM_COLOR_DEFAULT=0076D7
- ++ MSTEAM_COLOR_CLEAR=65A677
- ++ MSTEAM_COLOR_WARNING=FFA500
- ++ MSTEAM_COLOR_CRITICAL=D93F3C
- ++ SEND_ROCKETCHAT=YES
- ++ ROCKETCHAT_WEBHOOK_URL=
- ++ DEFAULT_RECIPIENT_ROCKETCHAT=
- ++ 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_FLEEP=YES
- ++ DEFAULT_RECIPIENT_FLEEP=
- ++ FLEEP_SENDER=
- ++ SEND_IRC=YES
- ++ DEFAULT_RECIPIENT_IRC=
- ++ IRC_NETWORK=
- ++ IRC_NICKNAME=
- ++ IRC_REALNAME=
- ++ SEND_SYSLOG=NO
- ++ SYSLOG_FACILITY=
- ++ DEFAULT_RECIPIENT_SYSLOG=netdata
- ++ SEND_PROWL=YES
- ++ DEFAULT_RECIPIENT_PROWL=
- ++ SEND_AWSSNS=YES
- ++ AWSSNS_MESSAGE_FORMAT='WARNING on miveterinario.es at : test.chart new value'
- ++ DEFAULT_RECIPIENT_AWSSNS=
- ++ SEND_CUSTOM=YES
- ++ DEFAULT_RECIPIENT_CUSTOM=
- ++ role_recipients_email[sysadmin]=root
- ++ role_recipients_pushover[sysadmin]=
- ++ role_recipients_pushbullet[sysadmin]=
- ++ role_recipients_telegram[sysadmin]=
- ++ role_recipients_slack[sysadmin]=
- ++ role_recipients_alerta[sysadmin]=
- ++ role_recipients_flock[sysadmin]=
- ++ role_recipients_discord[sysadmin]=
- ++ role_recipients_hipchat[sysadmin]=
- ++ role_recipients_twilio[sysadmin]=
- ++ role_recipients_messagebird[sysadmin]=
- ++ role_recipients_kavenegar[sysadmin]=
- ++ role_recipients_pd[sysadmin]=
- ++ role_recipients_fleep[sysadmin]=
- ++ role_recipients_irc[sysadmin]=
- ++ role_recipients_syslog[sysadmin]=netdata
- ++ role_recipients_prowl[sysadming]=
- ++ role_recipients_awssns[sysadmin]=
- ++ role_recipients_custom[sysadmin]=
- ++ role_recipients_msteam[sysadmin]=
- ++ role_recipients_email[domainadmin]=root
- ++ role_recipients_pushover[domainadmin]=
- ++ role_recipients_pushbullet[domainadmin]=
- ++ role_recipients_telegram[domainadmin]=
- ++ role_recipients_slack[domainadmin]=
- ++ role_recipients_alerta[domainadmin]=
- ++ role_recipients_flock[domainadmin]=
- ++ role_recipients_discord[domainadmin]=
- ++ role_recipients_hipchat[domainadmin]=
- ++ role_recipients_twilio[domainadmin]=
- ++ role_recipients_messagebird[domainadmin]=
- ++ role_recipients_kavenegar[domainadmin]=
- ++ role_recipients_pd[domainadmin]=
- ++ role_recipients_fleep[domainadmin]=
- ++ role_recipients_irc[domainadmin]=
- ++ role_recipients_syslog[domainadmin]=netdata
- ++ role_recipients_prowl[domainadmin]=
- ++ role_recipients_awssns[domainadmin]=
- ++ role_recipients_custom[domainadmin]=
- ++ role_recipients_msteam[domainadmin]=
- ++ role_recipients_email[dba]=root
- ++ role_recipients_pushover[dba]=
- ++ role_recipients_pushbullet[dba]=
- ++ role_recipients_telegram[dba]=
- ++ role_recipients_slack[dba]=
- ++ role_recipients_alerta[dba]=
- ++ role_recipients_flock[dba]=
- ++ role_recipients_discord[dba]=
- ++ role_recipients_hipchat[dba]=
- ++ role_recipients_twilio[dba]=
- ++ role_recipients_messagebird[dba]=
- ++ role_recipients_kavenegar[dba]=
- ++ role_recipients_pd[dba]=
- ++ role_recipients_fleep[dba]=
- ++ role_recipients_irc[dba]=
- ++ role_recipients_syslog[dba]=netdata
- ++ role_recipients_prowl[dba]=
- ++ role_recipients_awssns[dba]=
- ++ role_recipients_custom[dba]=
- ++ role_recipients_msteam[dba]=
- ++ role_recipients_email[webmaster]=root
- ++ role_recipients_pushover[webmaster]=
- ++ role_recipients_pushbullet[webmaster]=
- ++ role_recipients_telegram[webmaster]=
- ++ role_recipients_slack[webmaster]=
- ++ role_recipients_alerta[webmaster]=
- ++ role_recipients_flock[webmaster]=
- ++ role_recipients_discord[webmaster]=
- ++ role_recipients_hipchat[webmaster]=
- ++ role_recipients_twilio[webmaster]=
- ++ role_recipients_messagebird[webmaster]=
- ++ role_recipients_kavenegar[webmaster]=
- ++ role_recipients_pd[webmaster]=
- ++ role_recipients_fleep[webmaster]=
- ++ role_recipients_irc[webmaster]=
- ++ role_recipients_syslog[webmaster]=netdata
- ++ role_recipients_prowl[webmaster]=
- ++ role_recipients_awssns[webmaster]=
- ++ role_recipients_custom[webmaster]=
- ++ role_recipients_msteam[webmaster]=
- ++ role_recipients_email[proxyadmin]=root
- ++ role_recipients_pushover[proxyadmin]=
- ++ role_recipients_pushbullet[proxyadmin]=
- ++ role_recipients_telegram[proxyadmin]=
- ++ role_recipients_slack[proxyadmin]=
- ++ role_recipients_alerta[proxyadmin]=
- ++ role_recipients_flock[proxyadmin]=
- ++ role_recipients_discord[proxyadmin]=
- ++ role_recipients_hipchat[proxyadmin]=
- ++ role_recipients_twilio[proxyadmin]=
- ++ role_recipients_messagebird[proxyadmin]=
- ++ role_recipients_kavenegar[proxyadmin]=
- ++ role_recipients_pd[proxyadmin]=
- ++ role_recipients_fleep[proxyadmin]=
- ++ role_recipients_irc[proxyadmin]=
- ++ role_recipients_syslog[proxyadmin]=netdata
- ++ role_recipients_prowl[proxyadmin]=
- ++ role_recipients_awssns[porxyadmin]=
- ++ role_recipients_custom[proxyadmin]=
- ++ role_recipients_msteam[proxyadmin]=
- ++ role_recipients_email[sitemgr]=root
- ++ role_recipients_pushover[sitemgr]=
- ++ role_recipients_pushbullet[sitemgr]=
- ++ role_recipients_telegram[sitemgr]=
- ++ role_recipients_slack[sitemgr]=
- ++ role_recipients_alerta[sitemgr]=
- ++ role_recipients_flock[sitemgr]=
- ++ role_recipients_discord[sitemgr]=
- ++ role_recipients_hipchat[sitemgr]=
- ++ role_recipients_twilio[sitemgr]=
- ++ role_recipients_messagebird[sitemgr]=
- ++ role_recipients_kavenegar[sitemgr]=
- ++ role_recipients_pd[sitemgr]=
- ++ role_recipients_fleep[sitemgr]=
- ++ role_recipients_syslog[sitemgr]=netdata
- ++ role_recipients_prowl[sitemgr]=
- ++ role_recipients_awssns[sitemgr]=
- ++ role_recipients_custom[sitemgr]=
- ++ role_recipients_msteam[sitemgr]=
- + '[' 0 -ne 0 ']'
- + for CONFIG in '"${NETDATA_STOCK_CONFIG_DIR}/health_alarm_notify.conf"' '"${NETDATA_USER_CONFIG_DIR}/health_alarm_notify.conf"'
- + '[' -f /etc/netdata/health_alarm_notify.conf ']'
- + debug 'Loading config file '\''/etc/netdata/health_alarm_notify.conf'\''...'
- + '[' 0 = 1 ']'
- + source /etc/netdata/health_alarm_notify.conf
- ++ date_format=
- ++ sendmail=
- ++ curl=
- ++ nc=
- ++ logger=
- ++ aws=
- ++ EMAIL_SENDER=
- ++ SEND_EMAIL=YES
- ++ DEFAULT_RECIPIENT_EMAIL=xxxx@xxxxxx.com
- ++ SEND_PUSHOVER=YES
- ++ PUSHOVER_APP_TOKEN=xxxxxxxxxxxx
- ++ DEFAULT_RECIPIENT_PUSHOVER=xxxxxxxxxx
- ++ 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=https://hooks.slack.com/services/xxxxxx/xxxxxxx/xxxxxxxxx
- ++ DEFAULT_RECIPIENT_SLACK='netdata'
- ++ SEND_MSTEAM=YES
- ++ DEFAULT_RECIPIENT_MSTEAM=
- ++ MSTEAM_WEBHOOK_URL=
- ++ MSTEAM_ICON_DEFAULT=$'\342\231\241'
- ++ MSTEAM_ICON_CLEAR=$'\360\237\222\232'
- ++ MSTEAM_ICON_WARNING=$'\342\232\240\357\270\217'
- ++ MSTEAM_ICON_CRITICAL=$'\360\237\224\245'
- ++ MSTEAM_COLOR_DEFAULT=0076D7
- ++ MSTEAM_COLOR_CLEAR=65A677
- ++ MSTEAM_COLOR_WARNING=FFA500
- ++ MSTEAM_COLOR_CRITICAL=D93F3C
- ++ SEND_ROCKETCHAT=YES
- ++ ROCKETCHAT_WEBHOOK_URL=
- ++ DEFAULT_RECIPIENT_ROCKETCHAT=
- ++ 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_FLEEP=YES
- ++ DEFAULT_RECIPIENT_FLEEP=
- ++ FLEEP_SENDER=
- ++ SEND_IRC=YES
- ++ DEFAULT_RECIPIENT_IRC=
- ++ IRC_NETWORK=
- ++ IRC_NICKNAME=
- ++ IRC_REALNAME=
- ++ SEND_SYSLOG=NO
- ++ SYSLOG_FACILITY=
- ++ DEFAULT_RECIPIENT_SYSLOG=netdata
- ++ SEND_PROWL=YES
- ++ DEFAULT_RECIPIENT_PROWL=
- ++ SEND_AWSSNS=YES
- ++ AWSSNS_MESSAGE_FORMAT='WARNING on miveterinario.es at : test.chart new value'
- ++ DEFAULT_RECIPIENT_AWSSNS=
- ++ SEND_CUSTOM=YES
- ++ DEFAULT_RECIPIENT_CUSTOM=
- ++ role_recipients_email[sysadmin]=xxxx@xxxxxx.com
- ++ role_recipients_pushover[sysadmin]=xxxxxxxxxx
- ++ role_recipients_pushbullet[sysadmin]=
- ++ role_recipients_telegram[sysadmin]=
- ++ role_recipients_slack[sysadmin]='netdata'
- ++ role_recipients_alerta[sysadmin]=
- ++ role_recipients_flock[sysadmin]=
- ++ role_recipients_discord[sysadmin]=
- ++ role_recipients_hipchat[sysadmin]=
- ++ role_recipients_twilio[sysadmin]=
- ++ role_recipients_messagebird[sysadmin]=
- ++ role_recipients_kavenegar[sysadmin]=
- ++ role_recipients_pd[sysadmin]=
- ++ role_recipients_fleep[sysadmin]=
- ++ role_recipients_irc[sysadmin]=
- ++ role_recipients_syslog[sysadmin]=netdata
- ++ role_recipients_prowl[sysadming]=
- ++ role_recipients_awssns[sysadmin]=
- ++ role_recipients_custom[sysadmin]=
- ++ role_recipients_msteam[sysadmin]=
- ++ role_recipients_email[domainadmin]=xxxx@xxxxxxxx.com
- ++ role_recipients_pushover[domainadmin]=xxxxxxxxx
- ++ role_recipients_pushbullet[domainadmin]=
- ++ role_recipients_telegram[domainadmin]=
- ++ role_recipients_slack[domainadmin]='netdata'
- ++ role_recipients_alerta[domainadmin]=
- ++ role_recipients_flock[domainadmin]=
- ++ role_recipients_discord[domainadmin]=
- ++ role_recipients_hipchat[domainadmin]=
- ++ role_recipients_twilio[domainadmin]=
- ++ role_recipients_messagebird[domainadmin]=
- ++ role_recipients_kavenegar[domainadmin]=
- ++ role_recipients_pd[domainadmin]=
- ++ role_recipients_fleep[domainadmin]=
- ++ role_recipients_irc[domainadmin]=
- ++ role_recipients_syslog[domainadmin]=netdata
- ++ role_recipients_prowl[domainadmin]=
- ++ role_recipients_awssns[domainadmin]=
- ++ role_recipients_custom[domainadmin]=
- ++ role_recipients_msteam[domainadmin]=
- ++ role_recipients_email[dba]=xxxx@xxxxxx.com
- ++ role_recipients_pushover[dba]=xxxxxxxx
- ++ role_recipients_pushbullet[dba]=
- ++ role_recipients_telegram[dba]=
- ++ role_recipients_slack[dba]='netdata'
- ++ role_recipients_alerta[dba]=
- ++ role_recipients_flock[dba]=
- ++ role_recipients_discord[dba]=
- ++ role_recipients_hipchat[dba]=
- ++ role_recipients_twilio[dba]=
- ++ role_recipients_messagebird[dba]=
- ++ role_recipients_kavenegar[dba]=
- ++ role_recipients_pd[dba]=
- ++ role_recipients_fleep[dba]=
- ++ role_recipients_irc[dba]=
- ++ role_recipients_syslog[dba]=netdata
- ++ role_recipients_prowl[dba]=
- ++ role_recipients_awssns[dba]=
- ++ role_recipients_custom[dba]=
- ++ role_recipients_msteam[dba]=
- ++ role_recipients_email[webmaster]=xxxxxxx@xxxxxxx.com
- ++ role_recipients_pushover[webmaster]=xxxxxxxx
- ++ role_recipients_pushbullet[webmaster]=
- ++ role_recipients_telegram[webmaster]=
- ++ role_recipients_slack[webmaster]='netdata'
- ++ role_recipients_alerta[webmaster]=
- ++ role_recipients_flock[webmaster]=
- ++ role_recipients_discord[webmaster]=
- ++ role_recipients_hipchat[webmaster]=
- ++ role_recipients_twilio[webmaster]=
- ++ role_recipients_messagebird[webmaster]=
- ++ role_recipients_kavenegar[webmaster]=
- ++ role_recipients_pd[webmaster]=
- ++ role_recipients_fleep[webmaster]=
- ++ role_recipients_irc[webmaster]=
- ++ role_recipients_syslog[webmaster]=netdata
- ++ role_recipients_prowl[webmaster]=
- ++ role_recipients_awssns[webmaster]=
- ++ role_recipients_custom[webmaster]=
- ++ role_recipients_msteam[webmaster]=
- ++ role_recipients_email[proxyadmin]=xxx@xxxxxxxxx.com
- ++ role_recipients_pushover[proxyadmin]=xxxxxxxxxxx
- ++ role_recipients_pushbullet[proxyadmin]=
- ++ role_recipients_telegram[proxyadmin]=
- ++ role_recipients_slack[proxyadmin]='netdata'
- ++ role_recipients_alerta[proxyadmin]=
- ++ role_recipients_flock[proxyadmin]=
- ++ role_recipients_discord[proxyadmin]=
- ++ role_recipients_hipchat[proxyadmin]=
- ++ role_recipients_twilio[proxyadmin]=
- ++ role_recipients_messagebird[proxyadmin]=
- ++ role_recipients_kavenegar[proxyadmin]=
- ++ role_recipients_pd[proxyadmin]=
- ++ role_recipients_fleep[proxyadmin]=
- ++ role_recipients_irc[proxyadmin]=
- ++ role_recipients_syslog[proxyadmin]=netdata
- ++ role_recipients_prowl[proxyadmin]=
- ++ role_recipients_awssns[porxyadmin]=
- ++ role_recipients_custom[proxyadmin]=
- ++ role_recipients_msteam[proxyadmin]=
- ++ role_recipients_email[sitemgr]=xxxxxxxx@xxxxxxx.com
- ++ role_recipients_pushover[sitemgr]=xxxxxxxxxxxx
- ++ role_recipients_pushbullet[sitemgr]=
- ++ role_recipients_telegram[sitemgr]=
- ++ role_recipients_slack[sitemgr]='netdata'
- ++ role_recipients_alerta[sitemgr]=
- ++ role_recipients_flock[sitemgr]=
- ++ role_recipients_discord[sitemgr]=
- ++ role_recipients_hipchat[sitemgr]=
- ++ role_recipients_twilio[sitemgr]=
- ++ role_recipients_messagebird[sitemgr]=
- ++ role_recipients_kavenegar[sitemgr]=
- ++ role_recipients_pd[sitemgr]=
- ++ role_recipients_fleep[sitemgr]=
- ++ role_recipients_syslog[sitemgr]=netdata
- ++ role_recipients_prowl[sitemgr]=
- ++ role_recipients_awssns[sitemgr]=
- ++ role_recipients_custom[sitemgr]=
- ++ role_recipients_msteam[sitemgr]=
- + '[' 0 -ne 0 ']'
- + '[' -z ANSI_X3.4-1968 ']'
- ++ hostname -s
- + '[' NO = YES -a miveterinario.es = miveterinario ']'
- + '[' -z https://hooks.slack.com/services/xxxxxxx/xxxxxxxxx/xxxxxxxx']'
- + '[' -z '' ']'
- + SEND_ROCKETCHAT=NO
- + '[' -z '' ']'
- + SEND_ALERTA=NO
- + '[' -z '' ']'
- + SEND_FLOCK=NO
- + '[' -z '' ']'
- + SEND_DISCORD=NO
- + '[' -z xxxxxxxxxxx']'
- + '[' -z '' ']'
- + SEND_PUSHBULLET=NO
- + '[' -z '' -o -z '' -o -z '' ']'
- + SEND_TWILIO=NO
- + '[' -z '' ']'
- + SEND_HIPCHAT=NO
- + '[' -z '' -o -z '' ']'
- + SEND_MESSAGEBIRD=NO
- + '[' -z '' -o -z '' ']'
- + SEND_KAVENEGAR=NO
- + '[' -z '' ']'
- + SEND_TELEGRAM=NO
- + '[' -z '' -o -z '' ']'
- + SEND_KAFKA=NO
- + '[' -z '' ']'
- + SEND_IRC=NO
- + '[' -z '' -o -z '' ']'
- + SEND_FLEEP=NO
- + '[' '(' YES = YES -o YES = YES -o NO = YES -o NO = YES -o YES = YES -o NO = YES -o NO = YES -o NO = YES -o NO = YES -o NO = YES -o NO = YES -o NO = YES -o NO = YES -o NO = YES -o NO = YES -o YES = YES -o YES = YES -o YES = YES ')' -a -z '' ']'
- ++ which curl
- + curl=/usr/bin/curl
- + '[' -z /usr/bin/curl ']'
- + '[' YES = YES -a -z '' ']'
- ++ which sendmail
- + sendmail=/usr/sbin/sendmail
- + '[' -z /usr/sbin/sendmail ']'
- + '[' NO = YES -a -z '' ']'
- + '[' YES = YES -a -z '' ']'
- ++ which aws
- ++ command -v aws
- + aws=
- + '[' -z '' ']'
- + debug 'Cannot find aws command in the system path. Disabling Amazon SNS notifications.'
- + '[' 0 = 1 ']'
- + SEND_AWSSNS=NO
- + for method_name in '${method_names}'
- + send_var=SEND_EMAIL
- + '[' YES = NO ']'
- + arr_var=()
- + declare -A arr_var
- + for x in '${roles//,/ }'
- + '[' sysadmin = silent -o sysadmin = disabled ']'
- + role_recipients='role_recipients_email[sysadmin]'
- + default_recipient_var=DEFAULT_RECIPIENT_EMAIL
- + a=xxxxxxxxx@xxxxxxxx.com
- + '[' -z xxxxxxxxxxx@xxxxxx.com ']'
- + for r in '${a//,/ }'
- + '[' sergio@qcompusoft.com '!=' disabled ']'
- + filter_recipient_by_criticality email xxxxxxxx@xxxxxxxx.com
- + local method=email x=xxxxxx@xxxxxxxx.com r s
- + shift
- + r=xxxx@xxxxxxx.com
- + s=xxxxx@xxxxxx.com
- + '[' xxxxxxxxxxxx@xxxxxx.com = xxxxxxxx@xxxxxxxxx.com ']'
- + return 0
- + arr_var[${r/|*/}]=1
- + to_var=to_email
- + declare to_email=xxxxx@xxxxxxxxxx.com
- + '[' -z xxxx@xxxxxxxxx.com ']'
- + for method_name in '${method_names}'
- + send_var=SEND_PUSHOVER
- + '[' YES = NO ']'
- + arr_var=()
- + declare -A arr_var
- + for x in '${roles//,/ }'
- + '[' sysadmin = silent -o sysadmin = disabled ']'
- + role_recipients='role_recipients_pushover[sysadmin]'
- + default_recipient_var=DEFAULT_RECIPIENT_PUSHOVER
- + a=xxxxxxxxxxxxxxxxxxxxxxxxxxx
- + '[' -z xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ']'
- + for r in '${a//,/ }'
- + '[' xxxxxxxxxxxxxxxxxxxxxxxxxxx '!=' disabled ']'
- + filter_recipient_by_criticality pushover xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- + local method=pushover x=xxxxxxxxxxxxxxxxxxxxxxxxx r s
- + shift
- + r=xxxxxxxxxxxxxxxxxxxxxxxx
- + s=xxxxxxxxxxxxxxxxx
- + '[' xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ']'
- + return 0
- + arr_var[${r/|*/}]=1
- + to_var=to_pushover
- + declare to_pushover=xxxxxxxxxxxxxxxxxxxxxx
- + '[' -z xxxxxxxxxxxxxxxxxxxxxxxxxxxxx ']'
- + for method_name in '${method_names}'
- + send_var=SEND_PUSHBULLET
- + '[' NO = NO ']'
- + continue
- + for method_name in '${method_names}'
- + send_var=SEND_TELEGRAM
- + '[' NO = NO ']'
- + continue
- + for method_name in '${method_names}'
- + send_var=SEND_SLACK
- + '[' YES = NO ']'
- + arr_var=()
- + declare -A arr_var
- + for x in '${roles//,/ }'
- + '[' sysadmin = silent -o sysadmin = disabled ']'
- + role_recipients='role_recipients_slack[sysadmin]'
- + default_recipient_var=DEFAULT_RECIPIENT_SLACK
- + a='netdata'
- + '[' -z 'netdata' ']'
- + for r in '${a//,/ }'
- + '[' '#netdata' '!=' disabled ']'
- + filter_recipient_by_criticality slack 'netdata'
- + local method=slack x=netdata r s
- + shift
- + r='netdata'
- + s='netdata'
- + '[' 'netdata' = 'netdata' ']'
- + return 0
- + arr_var[${r/|*/}]=1
- + to_var=to_slack
- + declare to_slack=netdata
- + '[' -z 'netdata' ']'
- + for method_name in '${method_names}'
- + send_var=SEND_ALERTA
- + '[' NO = NO ']'
- + continue
- + for method_name in '${method_names}'
- + send_var=SEND_FLOCK
- + '[' NO = NO ']'
- + continue
- + for method_name in '${method_names}'
- + send_var=SEND_DISCORD
- + '[' NO = NO ']'
- + continue
- + for method_name in '${method_names}'
- + send_var=SEND_HIPCHAT
- + '[' NO = NO ']'
- + continue
- + for method_name in '${method_names}'
- + send_var=SEND_TWILIO
- + '[' NO = NO ']'
- + continue
- + for method_name in '${method_names}'
- + send_var=SEND_MESSAGEBIRD
- + '[' NO = NO ']'
- + continue
- + for method_name in '${method_names}'
- + send_var=SEND_PD
- + '[' YES = NO ']'
- + arr_var=()
- + declare -A arr_var
- + for x in '${roles//,/ }'
- + '[' sysadmin = silent -o sysadmin = disabled ']'
- + role_recipients='role_recipients_pd[sysadmin]'
- + default_recipient_var=DEFAULT_RECIPIENT_PD
- + a=
- + '[' -z '' ']'
- + a=
- + to_var=to_pd
- + declare to_pd=
- + '[' -z '' ']'
- + declare SEND_PD=NO
- + for method_name in '${method_names}'
- + send_var=SEND_FLEEP
- + '[' NO = NO ']'
- + continue
- + for method_name in '${method_names}'
- + send_var=SEND_SYSLOG
- + '[' NO = NO ']'
- + continue
- + for method_name in '${method_names}'
- + send_var=SEND_CUSTOM
- + '[' YES = NO ']'
- + arr_var=()
- + declare -A arr_var
- + for x in '${roles//,/ }'
- + '[' sysadmin = silent -o sysadmin = disabled ']'
- + role_recipients='role_recipients_custom[sysadmin]'
- + default_recipient_var=DEFAULT_RECIPIENT_CUSTOM
- + a=
- + '[' -z '' ']'
- + a=
- + to_var=to_custom
- + declare to_custom=
- + '[' -z '' ']'
- + declare SEND_CUSTOM=NO
- + for method_name in '${method_names}'
- + send_var=SEND_MSTEAM
- + '[' YES = NO ']'
- + arr_var=()
- + declare -A arr_var
- + for x in '${roles//,/ }'
- + '[' sysadmin = silent -o sysadmin = disabled ']'
- + role_recipients='role_recipients_msteam[sysadmin]'
- + default_recipient_var=DEFAULT_RECIPIENT_MSTEAM
- + a=
- + '[' -z '' ']'
- + a=
- + to_var=to_msteam
- + declare to_msteam=
- + '[' -z '' ']'
- + declare SEND_MSTEAM=NO
- + for method_name in '${method_names}'
- + send_var=SEND_KAVENEGAR
- + '[' NO = NO ']'
- + continue
- + for method_name in '${method_names}'
- + send_var=SEND_PROWL
- + '[' YES = NO ']'
- + arr_var=()
- + declare -A arr_var
- + for x in '${roles//,/ }'
- + '[' sysadmin = silent -o sysadmin = disabled ']'
- + role_recipients='role_recipients_prowl[sysadmin]'
- + default_recipient_var=DEFAULT_RECIPIENT_PROWL
- + a=
- + '[' -z '' ']'
- + a=
- + to_var=to_prowl
- + declare to_prowl=
- + '[' -z '' ']'
- + declare SEND_PROWL=NO
- + fix_to_email xxxx@xxxx.com
- + to_email=
- + '[' '!' -z xxx@xxxx.com ']'
- + '[' '!' -z '' ']'
- + to_email=xxxx@xxxxx.com
- + shift 1
- + '[' '!' -z '' ']'
- + '[' ']'
- + '[' YES '!=' YES -a YES '!=' YES -a NO '!=' YES -a YES '!=' YES -a NO '!=' YES -a NO '!=' YES -a NO '!=' YES -a NO '!=' YES -a NO '!=' YES -a NO '!=' YES -a NO '!=' YES -a NO '!=' YES -a NO '!=' YES -a NO '!=' YES -a NO '!=' YES -a NO '!=' YES -a NO '!=' YES -a NO '!=' YES -a NO '!=' YES -o NO '!=' YES -a NO '!=' YES -a NO '!=' YES ']'
- + fatal 'All notification methods are disabled. Not sending notification for host '\''miveterinario.es'\'', chart '\''test.chart'\'' to '\''sysadmin'\'' for '\''test_alarm'\'' = '\''100'\'' for status '\''WARNING'\''.'
- + log FATAL 'All notification methods are disabled. Not sending notification for host '\''miveterinario.es'\'', chart '\''test.chart'\'' to '\''sysadmin'\'' for '\''test_alarm'\'' = '\''100'\'' for status '\''WARNING'\''.'
- + local status=FATAL
- + shift
- ++ logdate
- ++ date '+%Y-%m-%d %H:%M:%S'
- + echo '2019-01-24 18:09:15: alarm-notify.sh: FATAL: All notification methods are disabled. Not sending notification for host '\''miveterinario.es'\'', chart '\''test.chart'\'' to '\''sysadmin'\'' for '\''test_alarm'\'' = '\''100'\'' for status '\''WARNING'\''.'
- 2019-01-24 18:09:15: alarm-notify.sh: FATAL: All notification methods are disabled. Not sending notification for host 'miveterinario.es', chart 'test.chart' to 'sysadmin' for 'test_alarm' = '100' for status 'WARNING'.
- + exit 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement