+ Fix mode weblogic health mode

This commit is contained in:
garnier-quentin 2015-06-30 11:51:56 +02:00
parent f1349ecca7
commit c5071588a1
1 changed files with 2 additions and 4 deletions

View File

@ -33,7 +33,7 @@
#
####################################################################################
package apps::java::weblogic::jmx::mode::health
package apps::java::weblogic::jmx::mode::health;
use base qw(centreon::plugins::mode);
@ -93,8 +93,6 @@ sub new {
"filter-runtime:s" => { name => 'filter_runtime' },
"threshold-overload:s@" => { name => 'threshold_overload' },
});
$self->{statefile_value} = centreon::plugins::statefile->new(%options);
foreach my $key (('runtime')) {
foreach (keys %{$maps_counters->{$key}}) {
@ -260,7 +258,7 @@ sub manage_selection {
next;
}
$self->{runtime}->{$name . $runtime} = { name => $name, runtime => $runtime, health_state => $state };
$self->{runtime}->{$name . $runtime} = { name => $name, runtime => $runtime, health_state => $health_state };
}
if (scalar(keys %{$self->{runtime}}) <= 0) {