fix perfdata

This commit is contained in:
garnier-quentin 2019-09-12 13:57:49 +02:00
parent 9c90863354
commit 5dbf297eb8
1 changed files with 2 additions and 3 deletions

View File

@ -51,8 +51,7 @@ sub set_counters {
key_values => [ { name => 'used' }, { name => 'free' }, { name => 'prct_used' }, { name => 'prct_free' }, { name => 'total' } ],
closure_custom_output => $self->can('custom_license_output'),
perfdatas => [
{ label => 'mem_used', value => 'used_absolute', template => '%d', min => 0, max => 'total_absolute',
unit => 'B', cast_int => 1 },
{ value => 'used_absolute', template => '%d', min => 0, max => 'total_absolute' },
],
}
},
@ -60,7 +59,7 @@ sub set_counters {
key_values => [ { name => 'free' }, { name => 'used' }, { name => 'prct_used' }, { name => 'prct_free' }, { name => 'total' } ],
closure_custom_output => $self->can('custom_license_output'),
perfdatas => [
{ value => 'free_absolute', template => '%d', min => 0, max => 'total_absolute', cast_int => 1 },
{ value => 'free_absolute', template => '%d', min => 0, max => 'total_absolute' },
],
}
},