From 55e76f569a5c3f0e5535a4728dea4f5aee5c147f Mon Sep 17 00:00:00 2001 From: Pierre-Yves Taczynski Date: Tue, 26 Mar 2019 12:08:13 +0100 Subject: [PATCH] Fix no-ha-status option 'no_ha_status' or 'no_ha_state' to handle the option no-ha-status? :) Let's use the first name in the code : 'no_ha_status' --- centreon-plugins/network/checkpoint/snmp/mode/hastate.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/network/checkpoint/snmp/mode/hastate.pm b/centreon-plugins/network/checkpoint/snmp/mode/hastate.pm index 7d932689b..d2d57c130 100644 --- a/centreon-plugins/network/checkpoint/snmp/mode/hastate.pm +++ b/centreon-plugins/network/checkpoint/snmp/mode/hastate.pm @@ -101,7 +101,7 @@ sub manage_selection { nothing_quit => 1); if ($result->{$oid_haInstalled} < 1 or $result->{$oid_haStarted} eq "no") { - $self->{output}->output_add(severity => $self->{option_results}->{no_ha_state}, + $self->{output}->output_add(severity => $self->{option_results}->{no_ha_status}, short_msg => sprintf("Looks like HA is not started, or not installed .."), long_msg => sprintf("HA Installed : '%u' HA Started : '%s'", $result->{$oid_haInstalled}, $result->{$oid_haStarted}),