]> git.uio.no Git - check_openmanage.git/commitdiff
* version 3.5.5-beta7
authortrondham <trondham@e53b7cee-c147-0410-b3a0-ae4c1fa63963>
Wed, 20 Jan 2010 09:20:27 +0000 (09:20 +0000)
committertrondham <trondham@e53b7cee-c147-0410-b3a0-ae4c1fa63963>
Wed, 20 Jan 2010 09:20:27 +0000 (09:20 +0000)
* Fix when identifying blades via SNMP with old OMSA versions (5.1.0
  and older)

git-svn-id: svn+ssh://vcs-usit.uio.no/svnroot/usit-unix-intern/trunk/usit-nagios-plugins/trondham/check_openmanage@16274 e53b7cee-c147-0410-b3a0-ae4c1fa63963

check_openmanage

index 86647d256646adfee3896b7ec9458224360f86ed..ca7bb93bf3de50a3cc605a71f4508d3be07f7c45 100755 (executable)
@@ -57,7 +57,7 @@ $SIG{__WARN__} = \&collect_perl_warning;
 
 # Version and similar info
 $NAME    = 'check_openmanage';
-$VERSION = '3.5.5-beta6';
+$VERSION = '3.5.5-beta7';
 $AUTHOR  = 'Trond H. Amundsen';
 $CONTACT = 't.h.amundsen@usit.uio.no';
 
@@ -596,7 +596,7 @@ sub snmp_detect_blade {
     # Identify blade. Older models (4th and 5th gen models) and/or old
     # OMSA (4.x) don't have this OID. If we get "noSuchInstance" or
     # similar, we assume that this isn't a blade
-    if ($result->{$DellBaseBoardType} eq '3') {
+    if (exists $result->{$DellBaseBoardType} && $result->{$DellBaseBoardType} eq '3') {
        $blade = 1;
     }
     return;