fix f5 bigip failover warning thresholds (#964)

Closes https://github.com/centreon/centreon-plugins/issues/963
This commit is contained in:
cgagnaire 2018-04-23 12:04:19 +02:00 committed by Simon Bomm
parent 822427c4a2
commit 15e8bcb085
1 changed files with 4 additions and 4 deletions

View File

@ -61,8 +61,8 @@ sub custom_syncstatus_threshold {
if (defined($instance_mode->{option_results}->{critical_sync_status}) && $instance_mode->{option_results}->{critical_sync_status} ne '' &&
eval "$instance_mode->{option_results}->{critical_sync_status}") {
$status = 'critical';
} elsif (defined($instance_mode->{option_results}->{critical_sync_status}) && $instance_mode->{option_results}->{critical_sync_status} ne '' &&
eval "$instance_mode->{option_results}->{critical_sync_status}") {
} elsif (defined($instance_mode->{option_results}->{warning_sync_status}) && $instance_mode->{option_results}->{warning_sync_status} ne '' &&
eval "$instance_mode->{option_results}->{warning_sync_status}") {
$status = 'warning';
}
};
@ -99,8 +99,8 @@ sub custom_failoverstatus_threshold {
if (defined($instance_mode->{option_results}->{critical_failover_status}) && $instance_mode->{option_results}->{critical_failover_status} ne '' &&
eval "$instance_mode->{option_results}->{critical_failover_status}") {
$status = 'critical';
} elsif (defined($instance_mode->{option_results}->{critical_failover_status}) && $instance_mode->{option_results}->{critical_failover_status} ne '' &&
eval "$instance_mode->{option_results}->{critical_failover_status}") {
} elsif (defined($instance_mode->{option_results}->{warning_failover_status}) && $instance_mode->{option_results}->{warning_failover_status} ne '' &&
eval "$instance_mode->{option_results}->{warning_failover_status}") {
$status = 'warning';
}
};