fix thresholds

This commit is contained in:
garnier-quentin 2020-04-30 17:54:36 +02:00
parent 7aea1c8427
commit 8e2081bc3a
1 changed files with 10 additions and 10 deletions

View File

@ -30,9 +30,9 @@ my $thresholds = {
['indeterminate', 'UNKNOWN'],
['main', 'OK'],
['stand-by', 'OK'],
['active-pcs', 'CRITICAL'],
['inactive-pcs', 'CRITICAL'],
],
['active-pcs', 'CRITICAL']
]
};
my %map_role = (
0 => 'indeterminate',
@ -47,10 +47,10 @@ sub new {
my $self = $class->SUPER::new(package => __PACKAGE__, %options);
bless $self, $class;
$options{options}->add_options(arguments =>
{
"threshold-overload:s@" => { name => 'threshold_overload' },
$options{options}->add_options(arguments => {
'threshold-overload:s@' => { name => 'threshold_overload' },
});
return $self;
}