From 6f7c89325e28b8ab6a803c8d873f9a966d308586 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Tue, 4 May 2010 22:49:32 +0200 Subject: [PATCH] munin: Fix hpasmcli2 plugin to run on Linux. The plugin was originally created for FreeBSD, so some paths were wrong. --- etc/munin/plugins/hpasmcli2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'; -- 2.30.2