@cryptotaxi247 / netdata-1 / commits / 1b5a639dc

minor fixes to the previous commits

Costa Tsaousis (ktsaou) committed Sep 16, 2016 at 21:46 UTC 1b5a639dc84461bea4d5a1f59622a32fb1161ffc
2 files changed +3 -3
plugins.d/alarm-notify.sh
+1 -1
@@ -438,7 +438,7 @@ severity="${status}"
438 # the time the alarm was raised
439 duration4human ${duration} >/dev/null; duration_txt="${REPLY}"
440 duration4human ${non_clear_duration} >/dev/null; non_clear_duration_txt="${REPLY}"
441 -raised_for="(was ${old_status,,} for ${duration_txt}"
441 +raised_for="(was ${old_status,,} for ${duration_txt})"
442
443 # the key status message
444 status_message="status unknown"
src/health.c
+2 -2
@@ -2042,8 +2042,8 @@ static inline void health_alarm_execute(RRDHOST *host, ALARM_ENTRY *ae) {
2042 return;
2043 }
2044
2045 - if(ae->old_status == RRDCALC_STATUS_UNDEFINED && ae->new_status == RRDCALC_STATUS_UNINITIALIZED
2046 - || ae->old_status == RRDCALC_STATUS_UNINITIALIZED && ae->new_status == RRDCALC_STATUS_CLEAR) {
2045 + if((ae->old_status == RRDCALC_STATUS_UNDEFINED && ae->new_status == RRDCALC_STATUS_UNINITIALIZED)
2046 + || (ae->old_status == RRDCALC_STATUS_UNINITIALIZED && ae->new_status == RRDCALC_STATUS_CLEAR)) {
2047 info("Health not sending notification for first initialization of alarm '%s.%s' status %s", ae->chart, ae->name, rrdcalc_status2string(ae->new_status));
2048 return;
2049 }