projects
/
mirror
/
dsa-nagios.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d854d0f
)
run only hpasmcli under sudo, more output cleanup
author
Stephen Gran
<steve@lobefin.net>
Tue, 1 Dec 2009 01:45:50 +0000
(
01:45
+0000)
committer
Stephen Gran
<steve@lobefin.net>
Tue, 1 Dec 2009 01:45:50 +0000
(
01:45
+0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
dsa-nagios-checks/checks/dsa-check-hpasm
patch
|
blob
|
history
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 '') {
- return "
All
DIMMS OK ($num_dimms) ";
+ return "DIMMS OK ($num_dimms) ";
} 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;