fi battery last replace date
This commit is contained in:
parent
65c86c7af9
commit
f2260c720a
|
@ -55,7 +55,11 @@ sub set_counters {
|
||||||
|
|
||||||
$self->{maps_counters}->{global} = [
|
$self->{maps_counters}->{global} = [
|
||||||
{ label => 'status', threshold => 0, set => {
|
{ 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_calc => $self->can('custom_status_calc'),
|
||||||
closure_custom_output => $self->can('custom_status_output'),
|
closure_custom_output => $self->can('custom_status_output'),
|
||||||
closure_custom_perfdata => sub { return 0; },
|
closure_custom_perfdata => sub { return 0; },
|
||||||
|
|
Loading…
Reference in New Issue