The plugin was originally created for FreeBSD, so some paths were wrong.
-#! /usr/local/bin/perl -w
+#! /usr/bin/perl -w
#
# Plugin to monitor Proliant server health status using 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';