From 655b95a79fdba2ffd1d5d77932c76ddfd4b73c86 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 2 Jul 2015 18:54:33 +0200 Subject: [PATCH] + fix pacemaker mode --- apps/pacemaker/local/mode/crm.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/pacemaker/local/mode/crm.pm b/apps/pacemaker/local/mode/crm.pm index 8958dbb41..e3053cf11 100644 --- a/apps/pacemaker/local/mode/crm.pm +++ b/apps/pacemaker/local/mode/crm.pm @@ -95,7 +95,7 @@ sub parse_output { $self->{output}->output_add(severity => 'OK', short_msg => "Cluster is OK"); my @lines = split /\n/, $options{crm_out}; - foreach my $line (shift @lines) { + foreach my $line (@lines) { if ($line =~ /Connection to cluster failed\:(.*)/i ) { $self->{output}->output_add(severity => 'CRITICAL', short_msg => "Connection to cluster FAILED: $1");