]> arthur.barton.de Git - netdata.git/commitdiff
more realistic test alarm durations - fixed
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 23 Oct 2016 20:38:27 +0000 (23:38 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 23 Oct 2016 20:38:27 +0000 (23:38 +0300)
plugins.d/alarm-notify.sh

index 97215b3884e031e29c8b19c8f9d8feb9647a78a9..4eb4057deca6bff80dc59c38fc5d7d4bb88eba33 100755 (executable)
@@ -42,7 +42,11 @@ then
         echo >&2
         echo >&2 ">> SENDING TEST ${x} ALARM TO ROLE: ${recipient} <<"
 
-        "${0}" "${recipient}" "$(hostname)" "1" "1" "${id}" "$(date +%s)" "test_alarm" "test.chart" "test.family" "${x}" "${last}" '100' '90' "${0}" "1" "$((1 + id))" "units" "this is a test alarm to verify notifications work"
+        # printf >&2 "Execute: "
+        # printf >&2 "%q " "${0}" "${recipient}" "$(hostname)" "1" "1" "${id}" "$(date +%s)" "test_alarm" "test.chart" "test.family" "${x}" "${last}" '100' '90' "${0}" "1" "$((id))" "units" "this is a test alarm to verify notifications work"
+        # printf >&2 "\n"
+
+        "${0}" "${recipient}" "$(hostname)" "1" "1" "${id}" "$(date +%s)" "test_alarm" "test.chart" "test.family" "${x}" "${last}" '100' '90' "${0}" "$((id))" "1" "units" "this is a test alarm to verify notifications work"
         if [ $? -ne 0 ]
         then
             echo >&2 ">> FAILED <<"