This commit is contained in:
Quentin Garnier 2015-03-23 16:33:05 +11:00
parent a1028928b1
commit 31e44076d7

View File

@ -154,7 +154,7 @@ sub run {
$self->{output}->output_add(long_msg => sprintf("peer high-availability state is %s", $self->{output}->output_add(long_msg => sprintf("peer high-availability state is %s",
$self->{result}->{$oid_panSysHAPeerState})); $self->{result}->{$oid_panSysHAPeerState}));
my $exit = $self->get_severity(section => 'peer', value => $self->{result}->{$oid_panSysHAPeerState}); $exit = $self->get_severity(section => 'peer', value => $self->{result}->{$oid_panSysHAPeerState});
if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) {
$self->{output}->output_add(severity => $exit, $self->{output}->output_add(severity => $exit,
short_msg => sprintf("peer high-availability state is %s", short_msg => sprintf("peer high-availability state is %s",
@ -176,6 +176,11 @@ Check cluster status.
=over 8 =over 8
=item B<--threshold-overload>
Set to overload default threshold value.
Example: --threshold-overload='peer,critical,active' --threshold-overload='current,critical,passive'
=back =back
=cut =cut