add state value

This commit is contained in:
garnier-quentin 2019-02-05 09:22:17 +01:00
parent 7eb7e05b0a
commit 9ce4483bf1
1 changed files with 2 additions and 1 deletions

View File

@ -97,7 +97,8 @@ sub run {
$data->{$entity_value}->{mem_size} = $memory_size;
$data->{$entity_value}->{'mem.consumed.average'} = $mem_used;
$data->{$entity_value}->{'mem.overhead.average'} = $mem_overhead;
$data->{$entity_value}->{mem_state} = defined($mem_state) ? $mapping_state{$mem_state} : undef;
$data->{$entity_value}->{mem_state_str} = defined($mem_state) ? $mapping_state{$mem_state} : undef;
$data->{$entity_value}->{mem_state} = defined($mem_state) ? $mem_state : undef;
}
centreon::vmware::common::set_response(data => $data);