projects
/
mirror
/
dsa-nagios.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
run only hpasmcli under sudo, more output cleanup
[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
749b6d2
..
1f6550c
100755
(executable)
--- a/
dsa-nagios-checks/checks/dsa-check-hpasm
+++ b/
dsa-nagios-checks/checks/dsa-check-hpasm
@@
-83,7
+83,7
@@
sub do_dimm {
}
if ($return eq '') {
}
if ($return eq '') {
- return "
All
DIMMS OK ($num_dimms) ";
+ return "DIMMS OK ($num_dimms) ";
} else {
return $return;
}
} else {
return $return;
}
@@
-236,7
+236,7
@@
sub do_temp {
}
}
}
}
-my @output = `echo "$command"|hpasmcli 2>&1`;
+my @output = `echo "$command"|
sudo
hpasmcli 2>&1`;
if (($? >> 8) != 0) {
print "UNKNOWN: Can't exec hpasmcli: @output\n";
exit 3;
if (($? >> 8) != 0) {
print "UNKNOWN: Can't exec hpasmcli: @output\n";
exit 3;