From 8855ec3e28fa4e7bf16aee2cd81d28cc267d4c5d Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Tue, 6 Oct 2020 09:05:50 +0200 Subject: [PATCH] enhance memory output --- centreon-plugins/snmp_standard/mode/memory.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/centreon-plugins/snmp_standard/mode/memory.pm b/centreon-plugins/snmp_standard/mode/memory.pm index 8b1e69fb4..ceee8d22a 100644 --- a/centreon-plugins/snmp_standard/mode/memory.pm +++ b/centreon-plugins/snmp_standard/mode/memory.pm @@ -77,8 +77,8 @@ sub set_counters { } }, { label => 'usage-prct', display_ok => 0, nlabel => 'memory.usage.percentage', set => { - key_values => [ { name => 'prct_used' } ], - output_template => 'Ram Used : %.2f %%', + key_values => [ { name => 'prct_used' }, { name => 'used' }, { name => 'free' }, { name => 'prct_free' }, { name => 'total' } ], + closure_custom_output => $self->can('custom_usage_output'), perfdatas => [ { label => 'used_prct', template => '%.2f', min => 0, max => 100, unit => '%' } ]