diff --git a/cloud/microsoft/office365/management/mode/servicestatus.pm b/cloud/microsoft/office365/management/mode/servicestatus.pm index ec59e172f..729456c36 100644 --- a/cloud/microsoft/office365/management/mode/servicestatus.pm +++ b/cloud/microsoft/office365/management/mode/servicestatus.pm @@ -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