Skip to content

Commit

Permalink
plugins/ipmi_: handle "0.000" as "na" in temperature upper critical/w…
Browse files Browse the repository at this point in the history
…arning

HPE ilo 5 Firmware Version 2.95 returns value "0.000" instead of "na" in
some temperature critical/warning limits. This results "critical 0:0.000"
in Munin, resulting critical-email every 5 minute from munin-limits.
  • Loading branch information
kimheino committed Oct 13, 2023
1 parent f1cf2c9 commit 5669c79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/node.d/ipmi_.in
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ BEGIN {
TEMPS = sprintf("%s%s.value %s\n",TEMPS,NAME,TEMP);
CTEMPS = sprintf("%s%s.label %s\n",CTEMPS,NAME,THING);
if (CRIT !~ /na/) {
if (CRIT !~ /na/ && CRIT != /^0.000/) {
CTEMPS = sprintf("%s%s.critical 0:%s\n",CTEMPS,NAME,CRIT);
}
if (WARN !~ /na/) {
if (WARN !~ /na/ && WARN != /^0.000/) {
CTEMPS = sprintf("%s%s.warning 0:%s\n",CTEMPS,NAME,WARN);
}
}
Expand Down

0 comments on commit 5669c79

Please sign in to comment.