Munin plugin for OMSA
Marcus Bointon
marcus at synchromedia.co.uk
Wed Sep 12 05:57:59 CDT 2007
I've found the problem, and it's a bit odd. autoconf is failing.
if ( defined $ARGV[0] and $ARGV[0] eq 'autoconf' ) {
# Now see if "sensors" can run
my $text = `$SENSORS -?`;
print($text);
This prints 'Error! Invalid XSL path'. No idea why.
I built a small script but can't replicate the problem:
#!/usr/bin/perl -w
use strict;
my $SENSORS = $ENV{'omreport'} || '/opt/dell/srvadmin/oma/bin/
omreport.sh';
print($SENSORS);
print("\n");
my $text = `$SENSORS -?`;
if ($?) {
if ($? == -1) {
print "no (program $SENSORS not found)\n";
} else {
print "no (program $SENSORS died)\n";
}
}
print("\n");
This produces:
/opt/dell/srvadmin/oma/bin/omreport.sh
with no errors.
Also, I think this section:
$text = `$SENSORS chassis volts -fmt ssv | egrep -e '^[[:digit:]]+'`;
unless ($text =~ /[ ]C/) {
print "no (no temperature readings)\n";
exit 1;
}
Should be:
$text = `$SENSORS chassis volts -fmt ssv | egrep -e '^[[:digit:]]+'`;
unless ($text =~ /[ ]C/) {
print "no (no voltage readings)\n";
exit 1;
}
Marcus
--
Marcus Bointon
Synchromedia Limited: Creators of http://www.smartmessages.net/
UK resellers of info at hand CRM solutions
marcus at synchromedia.co.uk | http://www.synchromedia.co.uk/
More information about the Linux-PowerEdge
mailing list