fix archivelevel0 snmp informix
This commit is contained in:
parent
d7622d5b35
commit
5175181bab
|
@ -62,9 +62,6 @@ sub new {
|
||||||
$self->{version} = '1.0';
|
$self->{version} = '1.0';
|
||||||
$options{options}->add_options(arguments => {
|
$options{options}->add_options(arguments => {
|
||||||
"filter-name:s" => { name => 'filter_name' },
|
"filter-name:s" => { name => 'filter_name' },
|
||||||
"unknown-status:s" => { name => 'unknown_status' },
|
|
||||||
"warning-status:s" => { name => 'warning_status' },
|
|
||||||
"critical-status:s" => { name => 'critical_status', default => '%{status} =~ /inconsistent/' },
|
|
||||||
"timezone:s" => { name => 'timezone' },
|
"timezone:s" => { name => 'timezone' },
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -75,7 +72,6 @@ sub check_options {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
$self->SUPER::check_options(%options);
|
$self->SUPER::check_options(%options);
|
||||||
|
|
||||||
$self->change_macros(macros => ['unknown_status', 'warning_status', 'critical_status']);
|
|
||||||
$self->{option_results}->{timezone} = 'GMT' if (!defined($self->{option_results}->{timezone}) || $self->{option_results}->{timezone} eq '');
|
$self->{option_results}->{timezone} = 'GMT' if (!defined($self->{option_results}->{timezone}) || $self->{option_results}->{timezone} eq '');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -145,20 +141,13 @@ Check last full backup.
|
||||||
|
|
||||||
Filter dbspace name (can be a regexp).
|
Filter dbspace name (can be a regexp).
|
||||||
|
|
||||||
=item B<--unknown-status>
|
=item B<--warning-time>
|
||||||
|
|
||||||
Set warning threshold for status (Default: '').
|
Threshold warning in seconds.
|
||||||
Can used special variables like: %{status}, %{display}
|
|
||||||
|
|
||||||
=item B<--warning-status>
|
=item B<--critical-time>
|
||||||
|
|
||||||
Set warning threshold for status (Default: '').
|
Threshold critical in seconds.
|
||||||
Can used special variables like: %{status}, %{display}
|
|
||||||
|
|
||||||
=item B<--critical-status>
|
|
||||||
|
|
||||||
Set critical threshold for status (Default: '%{status} =~ /inconsistent/').
|
|
||||||
Can used special variables like: %{status}, %{display}
|
|
||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue