From ffa570fc2262975c3c842a9ff2665c11caf5b3e4 Mon Sep 17 00:00:00 2001 From: trondham Date: Tue, 19 Jan 2010 17:08:10 +0000 Subject: [PATCH] * version 3.5.5-beta6 * Should use %snmp_probestatus, not %snmp_status when checking the status of voltage probes. Thanks to Ken McKinlay for a patch. git-svn-id: svn+ssh://vcs-usit.uio.no/svnroot/usit-unix-intern/trunk/usit-nagios-plugins/trondham/check_openmanage@16269 e53b7cee-c147-0410-b3a0-ae4c1fa63963 --- check_openmanage | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_openmanage b/check_openmanage index 2eef53a..86647d2 100755 --- a/check_openmanage +++ b/check_openmanage @@ -57,7 +57,7 @@ $SIG{__WARN__} = \&collect_perl_warning; # Version and similar info $NAME = 'check_openmanage'; -$VERSION = '3.5.5-beta5'; +$VERSION = '3.5.5-beta6'; $AUTHOR = 'Trond H. Amundsen'; $CONTACT = 't.h.amundsen@usit.uio.no'; @@ -3066,7 +3066,7 @@ sub check_volts { foreach my $out (@output) { if ($snmp) { $index = $out->{voltageProbeIndex} - 1; - $status = $snmp_status{$out->{voltageProbeStatus}}; + $status = $snmp_probestatus{$out->{voltageProbeStatus}}; $reading = exists $out->{voltageProbeReading} ? sprintf('%.3f V', $out->{voltageProbeReading}/1000) : $volt_discrete_reading{$out->{voltageProbeDiscreteReading}}; -- 2.43.5