Fix #1504
This commit is contained in:
parent
c73f4da0ba
commit
91da4fe6fc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue