projects
/
matthijs
/
servers
/
drsnuggles.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
munin: Fix hpasmcli2 plugin to run on Linux.
[matthijs/servers/drsnuggles.git]
/
etc
/
munin
/
plugins
/
hpasmcli2
diff --git
a/etc/munin/plugins/hpasmcli2
b/etc/munin/plugins/hpasmcli2
index ab5df77287b43885eecddd200fabac7ce0b49cec..c768cb7a715e3e5c1863c42bdcebc156c405a5cd 100755
(executable)
--- a/
etc/munin/plugins/hpasmcli2
+++ b/
etc/munin/plugins/hpasmcli2
@@
-1,4
+1,4
@@
-#! /usr/
local/
bin/perl -w
+#! /usr/bin/perl -w
#
# Plugin to monitor Proliant server health status using hpasmcli.
#
#
# Plugin to monitor Proliant server health status using hpasmcli.
#
@@
-45,7
+45,7
@@
my $hpasmcli = exists $ENV{hpasmcli} ? $ENV{hpasmcli} : undef;
$hpasmcli = `which hpasmcli` unless $hpasmcli;
chomp $hpasmcli;
$hpasmcli = undef unless -x $hpasmcli;
$hpasmcli = `which hpasmcli` unless $hpasmcli;
chomp $hpasmcli;
$hpasmcli = undef unless -x $hpasmcli;
-my @dirs = qw(/usr/bin /usr/sbin /usr/local/bin /usr/local/sbin);
+my @dirs = qw(/
bin /sbin /
usr/bin /usr/sbin /usr/local/bin /usr/local/sbin);
until ($hpasmcli or @dirs == 0) {
my $dir = shift @dirs;
my $path = $dir.'/hpasmcli';
until ($hpasmcli or @dirs == 0) {
my $dir = shift @dirs;
my $path = $dir.'/hpasmcli';