fix thresholds
This commit is contained in:
parent
5971c2530e
commit
70d796193d
|
@ -30,9 +30,9 @@ my $thresholds = {
|
||||||
['indeterminate', 'UNKNOWN'],
|
['indeterminate', 'UNKNOWN'],
|
||||||
['main', 'OK'],
|
['main', 'OK'],
|
||||||
['stand-by', 'OK'],
|
['stand-by', 'OK'],
|
||||||
['active-pcs', 'CRITICAL'],
|
|
||||||
['inactive-pcs', 'CRITICAL'],
|
['inactive-pcs', 'CRITICAL'],
|
||||||
],
|
['active-pcs', 'CRITICAL']
|
||||||
|
]
|
||||||
};
|
};
|
||||||
my %map_role = (
|
my %map_role = (
|
||||||
0 => 'indeterminate',
|
0 => 'indeterminate',
|
||||||
|
@ -47,10 +47,10 @@ sub new {
|
||||||
my $self = $class->SUPER::new(package => __PACKAGE__, %options);
|
my $self = $class->SUPER::new(package => __PACKAGE__, %options);
|
||||||
bless $self, $class;
|
bless $self, $class;
|
||||||
|
|
||||||
$options{options}->add_options(arguments =>
|
$options{options}->add_options(arguments => {
|
||||||
{
|
'threshold-overload:s@' => { name => 'threshold_overload' },
|
||||||
"threshold-overload:s@" => { name => 'threshold_overload' },
|
});
|
||||||
});
|
|
||||||
return $self;
|
return $self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue