Skip to content

Commit

Permalink
Merge pull request #1582 from kimheino/master
Browse files Browse the repository at this point in the history
plugins/ipmi_: handle "0.000" as "na" in temperature upper critical/warning
  • Loading branch information
kenyon authored Oct 13, 2023
2 parents af8d6c0 + 2b0ea52 commit 3c3a4dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/node.d/ipmi_
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,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 3c3a4dc

Please sign in to comment.