@cryptotaxi247 / netdata-1 / commits / 7a11e2509

more realistic test alarm durations - fixed

Costa Tsaousis (ktsaou) committed Oct 23, 2016 at 23:38 UTC 7a11e2509022716753c33dd440a894035f4631a0
1 file changed +5 -1
plugins.d/alarm-notify.sh
+5 -1
@@ -42,7 +42,11 @@ then
42 echo >&2
43 echo >&2 ">> SENDING TEST ${x} ALARM TO ROLE: ${recipient} <<"
44
45 - "${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"
45 + # printf >&2 "Execute: "
46 + # 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"
47 + # printf >&2 "\n"
48 +
49 + "${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"
50 if [ $? -ne 0 ]
51 then
52 echo >&2 ">> FAILED <<"