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…
Reference in New Issue