diff --git a/snmp_standard/mode/memory.pm b/snmp_standard/mode/memory.pm index 5ecca4051..78849fb02 100644 --- a/snmp_standard/mode/memory.pm +++ b/snmp_standard/mode/memory.pm @@ -80,7 +80,7 @@ sub set_counters { key_values => [ { name => 'prct_used' } ], output_template => 'Used : %.2f %%', perfdatas => [ - { label => 'used_prct', value => 'prct_used_absolute', template => '%d', min => 0, max => 0, + { label => 'used_prct', value => 'prct_used_absolute', template => '%.2f', min => 0, max => 0, unit => '%' }, ], } @@ -139,7 +139,7 @@ sub set_counters { key_values => [ { name => 'prct_used' } ], output_template => 'Used : %.2f %%', perfdatas => [ - { label => 'swap_prct', value => 'prct_used_absolute', template => '%d', min => 0, max => 0, + { label => 'swap_prct', value => 'prct_used_absolute', template => '%.2f', min => 0, max => 0, unit => '%' }, ], } diff --git a/snmp_standard/mode/swap.pm b/snmp_standard/mode/swap.pm index 2d7f1cae0..d2a2e59cd 100644 --- a/snmp_standard/mode/swap.pm +++ b/snmp_standard/mode/swap.pm @@ -67,7 +67,7 @@ sub set_counters { key_values => [ { name => 'prct_used' } ], output_template => 'Used : %.2f %%', perfdatas => [ - { label => 'used_prct', value => 'prct_used_absolute', template => '%d', min => 0, max => 0, + { label => 'used_prct', value => 'prct_used_absolute', template => '%.2f', min => 0, max => 0, unit => '%' }, ], }