This commit is contained in:
garnier-quentin 2019-05-22 17:52:24 +02:00
parent c73f4da0ba
commit 91da4fe6fc
1 changed files with 7 additions and 8 deletions

View File

@ -102,13 +102,12 @@ sub new {
bless $self, $class;
$self->{version} = '1.0';
$options{options}->add_options(arguments =>
{
"filter-service-name:s" => { name => 'filter_service_name' },
"filter-feature-name:s" => { name => 'filter_feature_name' },
"warning-status:s" => { name => 'warning_status' },
"critical-status:s" => { name => 'critical_status', default => '%{status} !~ /Normal/i' },
});
$options{options}->add_options(arguments => {
"filter-service-name:s" => { name => 'filter_service_name' },
"filter-feature-name:s" => { name => 'filter_feature_name' },
"warning-status:s" => { name => 'warning_status' },
"critical-status:s" => { name => 'critical_status', default => '%{status} !~ /Normal|Service Restored/i' },
});
return $self;
}
@ -176,7 +175,7 @@ Can used special variables like: %{service_name}, %{feature_name}, %{status}
=item B<--critical-status>
Set critical threshold for status (Default: '%{status} !~ /Normal/i').
Set critical threshold for status (Default: '%{status} !~ /Normal|Service Restored/i').
Can used special variables like: %{service_name}, %{feature_name}, %{status}
=back