Changeset 1f138013ddee459fdeb15f3c4ac07432a208defb

Show
Ignore:
Timestamp:
05/13/09 15:51:14 (6 years ago)
Author:
Mark Harrison <mark@omniti.com>
git-committer:
Mark Harrison <mark@omniti.com> 1242229874 +0000
git-parent:

[2d1cb93ed8a444ea6c5e1c801a9bccafa01a1951]

git-author:
Mark Harrison <mark@omniti.com> 1242229874 +0000
Message:

Bugfixes to adaptec module

git-svn-id: https://labs.omniti.com/resmon/trunk@194 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lib/Resmon/Module/ADAPTEC.pm

    r2d1cb93 r1f13801  
    2323    my $unit = $arg->{'object'}; 
    2424    # Path to arcconf program 
    25     my $arcconf = $arg->{'arcconf'} || '/use/StorMan/arcconf'; 
     25    my $arcconf = $arg->{'arcconf'} || '/usr/StorMan/arcconf'; 
    2626 
    27     my $status = "OK"; 
    28     my $message
     27    my $status = "BAD"; 
     28    my $message = "No output"
    2929 
    3030    my $output = cache_command("$arcconf getconfig $unit AD", 500); 
     
    3333            my $failed = $1; 
    3434            my $degraded = $2; 
    35             if ($failed > 0 || $degraded > 0) { 
    36                 $status = "BAD"; 
     35            if ($failed == 0 || $degraded == 0) { 
     36                $status = "OK"; 
    3737            } 
    3838            $message = "$failed Failed, $degraded Degraded";