]> git.uio.no Git - check_openmanage.git/commitdiff
set failed pdisk as critical (override OMSA)
authorTrond Hasle Amundsen <t.h.amundsen@usit.uio.no>
Sun, 9 Mar 2014 19:41:47 +0000 (20:41 +0100)
committerTrond Hasle Amundsen <t.h.amundsen@usit.uio.no>
Sun, 9 Mar 2014 19:41:47 +0000 (20:41 +0100)
check_openmanage

index 4b526e19ab1ca625942044c42edf2e07b8279c32..81f0328887a406efe6e0c832c99f490babbe11e7 100755 (executable)
@@ -49,7 +49,7 @@ $SIG{__WARN__} = sub { push @perl_warnings, [@_]; };
 
 # Version and similar info
 $NAME    = 'check_openmanage';
-$VERSION = '3.7.12-b2';
+$VERSION = '3.7.12-b3';
 $AUTHOR  = 'Trond H. Amundsen';
 $CONTACT = 't.h.amundsen@usit.uio.no';
 
@@ -2022,6 +2022,11 @@ sub check_physical_disks {
            --$stack;
        }
 
+       # Set failed disk as critical (override OMSA)
+        if ($state eq 'Failed') {
+           $stack = 2;
+       }
+
        # Create combined status and state
        my $combo_state = join ', ', @states;
        my $combo_status = undef;