@cryptotaxi247 / netdata-1 / commits / 4f048151c

prevent empty files in /etc/netdata; fixes #815

Costa Tsaousis (ktsaou) committed Aug 24, 2016 at 14:37 UTC 4f048151c414c07af0184130b44002b79f6905b1
1 file changed +3 -3
plugins.d/alarm-email.sh
+3 -3
@@ -125,7 +125,7 @@ then
125 elif [ "${status}" = "CLEAR" ]
126 then
127 severity="Recovered from ${old_status}"
128 - if [ $non_clear_duration > $duration ]
128 + if [ $non_clear_duration -gt $duration ]
129 then
130 raised_for="<br/>(had issues for $(duration4human ${non_clear_duration}))"
131 fi
@@ -133,7 +133,7 @@ then
133 elif [ "${old_status}" = "WARNING" -a "${status}" = "CRITICAL" ]
134 then
135 severity="Escalated to ${status}"
136 - if [ $non_clear_duration > $duration ]
136 + if [ $non_clear_duration -gt $duration ]
137 then
138 raised_for="<br/>(has issues for $(duration4human ${non_clear_duration}))"
139 fi
@@ -141,7 +141,7 @@ then
141 elif [ "${old_status}" = "CRITICAL" -a "${status}" = "WARNING" ]
142 then
143 severity="Demoted to ${status}"
144 - if [ $non_clear_duration > $duration ]
144 + if [ $non_clear_duration -gt $duration ]
145 then
146 raised_for="<br/>(has issues for $(duration4human ${non_clear_duration}))"
147 fi