fi battery last replace date

This commit is contained in:
garnier-quentin 2020-01-28 14:55:18 +01:00
parent 0ab1fa151b
commit c412b8df89
1 changed files with 5 additions and 1 deletions

View File

@ -55,7 +55,11 @@ sub set_counters {
$self->{maps_counters}->{global} = [
{ label => 'status', threshold => 0, set => {
key_values => [ { name => 'upsBasicBatteryStatus' }, { name => 'upsAdvBatteryReplaceIndicator' } ],
key_values => [
{ name => 'upsBasicBatteryStatus' },
{ name => 'upsAdvBatteryReplaceIndicator' },
{ name => 'upsBasicBatteryLastReplaceDate' }
],
closure_custom_calc => $self->can('custom_status_calc'),
closure_custom_output => $self->can('custom_status_output'),
closure_custom_perfdata => sub { return 0; },