projects
/
mirror
/
dsa-nagios.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
skip absent temperature readings
[mirror/dsa-nagios.git]
/
dsa-nagios-checks
/
checks
/
dsa-check-hpasm
diff --git
a/dsa-nagios-checks/checks/dsa-check-hpasm
b/dsa-nagios-checks/checks/dsa-check-hpasm
index
1f6550c
..
63505f3
100755
(executable)
--- a/
dsa-nagios-checks/checks/dsa-check-hpasm
+++ b/
dsa-nagios-checks/checks/dsa-check-hpasm
@@
-206,7
+206,6
@@
sub do_temp {
}
$temp_num = $1;
- $num_temp++;
my @line = split /\s+/, $line;
my $zone = $line[1];
@@
-215,6
+214,8
@@
sub do_temp {
$current_temp =~ s/(.*)C.*/$1/;
$threshold =~ s/(.*)C.*/$1/;
+ next if ($threshold eq '-');
+ $num_temp++;
my $off = $threshold - $current_temp;
if ($off <= 0) {