From: Matthijs Kooijman Date: Tue, 4 May 2010 20:49:32 +0000 (+0200) Subject: munin: Fix hpasmcli2 plugin to run on Linux. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=6f7c89325e28b8ab6a803c8d873f9a966d308586;p=matthijs%2Fservers%2Fdrsnuggles.git munin: Fix hpasmcli2 plugin to run on Linux. The plugin was originally created for FreeBSD, so some paths were wrong. --- diff --git a/etc/munin/plugins/hpasmcli2 b/etc/munin/plugins/hpasmcli2 index ab5df77..c768cb7 100755 --- 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. # @@ -45,7 +45,7 @@ my $hpasmcli = exists $ENV{hpasmcli} ? $ENV{hpasmcli} : undef; $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';