Debian Codegraph @

check_hpasm/check_hpasm-4.9/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca/CLI.pm

raw
1 package HP::Proliant::Component::DiskSubsystem::Fca::CLI;
2 our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Fca);
3
4 use strict;
5 use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 };
6
7 sub new {
8 my $class = shift;
9 my %params = @_;
10 my $self = {
11 controllers => [],
12 accelerators => [],
13 enclosures => [],
14 physical_drives => [],
15 logical_drives => [],
16 spare_drives => [],
17 blacklisted => 0,
18 };
19 bless $self, $class;
20 return $self;
21 }
22
23 sub init {
24 my $self = shift;
25 # .....
26 $self->{global_status} =
27 HP::Proliant::Component::DiskSubsystem::Fca::GlobalStatus->new(
28 runtime => $self->{runtime},
29 cpqFcaMibCondition => 'n/a',
30 );
31
32 }
33
34 1;