+ fix pacemaker mode
This commit is contained in:
parent
11ad243ed9
commit
655b95a79f
|
@ -95,7 +95,7 @@ sub parse_output {
|
||||||
$self->{output}->output_add(severity => 'OK',
|
$self->{output}->output_add(severity => 'OK',
|
||||||
short_msg => "Cluster is OK");
|
short_msg => "Cluster is OK");
|
||||||
my @lines = split /\n/, $options{crm_out};
|
my @lines = split /\n/, $options{crm_out};
|
||||||
foreach my $line (shift @lines) {
|
foreach my $line (@lines) {
|
||||||
if ($line =~ /Connection to cluster failed\:(.*)/i ) {
|
if ($line =~ /Connection to cluster failed\:(.*)/i ) {
|
||||||
$self->{output}->output_add(severity => 'CRITICAL',
|
$self->{output}->output_add(severity => 'CRITICAL',
|
||||||
short_msg => "Connection to cluster FAILED: $1");
|
short_msg => "Connection to cluster FAILED: $1");
|
||||||
|
|
Loading…
Reference in New Issue