+ fix pacemaker mode

This commit is contained in:
garnier-quentin 2015-07-02 18:54:33 +02:00
parent 11ad243ed9
commit 655b95a79f
1 changed files with 1 additions and 1 deletions

View File

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