@cryptotaxi247 / netdata-1 / commits / 1078e70a5

better error message when a notification is not sent

Costa Tsaousis committed Oct 25, 2016 at 11:29 UTC 1078e70a5670b21e10f53026a4aac0ad34b269d4
1 file changed +1 -1
plugins.d/alarm-notify.sh
+1 -1
@@ -364,7 +364,7 @@ fi
364 # check that we have at least a method enabled
365 if [ "${SEND_EMAIL}" != "YES" -a "${SEND_PUSHOVER}" != "YES" -a "${SEND_TELEGRAM}" != "YES" -a "${SEND_SLACK}" != "YES" -a "${SEND_PUSHBULLET}" != "YES" ]
366 then
367 - fatal "All notification methods are disabled. Not sending a notification."
367 + fatal "All notification methods are disabled. Not sending notification to '${role}' for '${name}' = '${value}' of chart '${chart}' for status '${status}'."
368 fi
369
370 # -----------------------------------------------------------------------------