@cryptotaxi247 / netdata-1 / commits / 07f18e338

fixed typo that resulted in CRITICAL alarms send by email as WARNING

Costa Tsaousis committed Aug 17, 2016 at 02:58 UTC 07f18e338185191ec8a52e1e5dc81fe59ca1b64b
1 file changed +2 -2
src/health.c
+2 -2
@@ -1434,7 +1434,7 @@ static inline const char *alarm_entry_type2string(int type) {
1434 return "WARNING";
1435
1436 case ALARM_ENTRY_TYPE_CRITICAL:
1437 - return "WARNING";
1437 + return "CRITICAL";
1438
1439 default:
1440 return "UNKNOWN";
@@ -1482,7 +1482,7 @@ static inline void health_process_notifications(ALARM_ENTRY *ae) {
1482 info("Health alarm '%s.%s' = %0.2Lf - %s changed status from %s to %s",
1483 ae->chart?ae->chart:"NOCHART", ae->name,
1484 ae->new_value,
1485 - (ae->type == ALARM_ENTRY_TYPE_WARNING)?"WARNING":"CRITICAL",
1485 + alarm_entry_type2string(ae->type),
1486 rrdcalc_status2string(ae->old_status),
1487 rrdcalc_status2string(ae->new_status)
1488 );