From 15e8bcb085b5df01e080aa895465395c5687eb81 Mon Sep 17 00:00:00 2001 From: cgagnaire Date: Mon, 23 Apr 2018 12:04:19 +0200 Subject: [PATCH] fix f5 bigip failover warning thresholds (#964) Closes https://github.com/centreon/centreon-plugins/issues/963 --- network/f5/bigip/snmp/mode/failover.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/network/f5/bigip/snmp/mode/failover.pm b/network/f5/bigip/snmp/mode/failover.pm index 948fd3d19..1e231d71b 100644 --- a/network/f5/bigip/snmp/mode/failover.pm +++ b/network/f5/bigip/snmp/mode/failover.pm @@ -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'; } };