mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-23 21:55:16 +02:00
enhance memory output
This commit is contained in:
parent
56132e01cc
commit
33d0bacf55
@ -77,8 +77,8 @@ sub set_counters {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ label => 'usage-prct', display_ok => 0, nlabel => 'memory.usage.percentage', set => {
|
{ label => 'usage-prct', display_ok => 0, nlabel => 'memory.usage.percentage', set => {
|
||||||
key_values => [ { name => 'prct_used' } ],
|
key_values => [ { name => 'prct_used' }, { name => 'used' }, { name => 'free' }, { name => 'prct_free' }, { name => 'total' } ],
|
||||||
output_template => 'Ram Used : %.2f %%',
|
closure_custom_output => $self->can('custom_usage_output'),
|
||||||
perfdatas => [
|
perfdatas => [
|
||||||
{ label => 'used_prct', template => '%.2f', min => 0, max => 100, unit => '%' }
|
{ label => 'used_prct', template => '%.2f', min => 0, max => 100, unit => '%' }
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user