]> arthur.barton.de Git - netdata.git/commitdiff
better error message when a notification is not sent
authorCosta Tsaousis <costa@tsaousis.gr>
Tue, 25 Oct 2016 08:29:59 +0000 (11:29 +0300)
committerCosta Tsaousis <costa@tsaousis.gr>
Tue, 25 Oct 2016 08:29:59 +0000 (11:29 +0300)
plugins.d/alarm-notify.sh

index 35e1307dc80048e2c7ebff449c5df71b036079a4..a2e3f8e79484254e3014aec8650926318f8a011f 100755 (executable)
@@ -364,7 +364,7 @@ fi
 # check that we have at least a method enabled
 if [ "${SEND_EMAIL}" != "YES" -a "${SEND_PUSHOVER}" != "YES" -a "${SEND_TELEGRAM}" != "YES" -a "${SEND_SLACK}" != "YES" -a "${SEND_PUSHBULLET}" != "YES" ]
     then
-    fatal "All notification methods are disabled. Not sending a notification."
+    fatal "All notification methods are disabled. Not sending notification to '${role}' for '${name}' = '${value}' of chart '${chart}' for status '${status}'."
 fi
 
 # -----------------------------------------------------------------------------