Merge pull request #582 from cgagnaire/patch-1
Add verbose and regexp for stopped resources
This commit is contained in:
commit
f1199b2e8e
|
@ -102,11 +102,13 @@ sub parse_output {
|
|||
# Check Resources pos
|
||||
if (defined($self->{resources_check}->{$1}) && $self->{resources_check}->{$1} ne $2) {
|
||||
$self->{output}->output_add(severity => $self->{threshold},
|
||||
short_msg => "Resource '$1' is on node '$2'");
|
||||
short_msg => "Resource '$1' is started on node '$2'");
|
||||
}
|
||||
} elsif ($line =~ /\s*([0-9a-zA-Z_\-]+)\s+\(\S+\)\:\s+Stopped/) {
|
||||
$self->{output}->output_add(long_msg => "Resource '$1' is started on node '$2'");
|
||||
} elsif ($line =~ /\s*([0-9a-zA-Z_\-]+)\s+\(\S+\)\:\s+Stopped/ || $line =~ /\s*([0-9a-zA-Z_\-]+)\s+\(\S+\)\:\s+\(\S+\)\s+Stopped/) {
|
||||
$self->{output}->output_add(severity => $self->{threshold},
|
||||
short_msg => "Resource '$1' Stopped");
|
||||
short_msg => "Resource '$1' is stopped",
|
||||
long_msg => "Resource '$1' is stopped");
|
||||
} elsif ($line =~ m/\s*stopped\:\s*\[\s*(.*)\s*\]/i) {
|
||||
# Check Master/Slave stopped
|
||||
my @stopped = ();
|
||||
|
|
Loading…
Reference in New Issue