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");