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

index dc6fb06fd55cfb21f3927f22ee4d3cf6ecfa8b99..97215b3884e031e29c8b19c8f9d8feb9647a78a9 100755 (executable)
@@ -42,7 +42,7 @@ 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}" "60" "60" "units" "this is a test alarm to verify notifications work"
+        "${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"
         if [ $? -ne 0 ]
         then
             echo >&2 ">> FAILED <<"