more realistic test alarm durations
Costa Tsaousis (ktsaou) committed
Oct 23, 2016 at 23:33 UTC
5870557b3854c29f8c3afdd8508e0ea130d08f93
1 file changed
+1
-1
plugins.d/alarm-notify.sh
+1
-1
@@ -42,7 +42,7 @@ 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}" "60" "60" "units" "this is a test alarm to verify notifications work"
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"
46
if [ $? -ne 0 ]
47
then
48
echo >&2 ">> FAILED <<"