From 0d34c90220c182b22394e6813448c3bb849c98a2 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Tue, 28 Jan 2020 15:04:55 +0100 Subject: [PATCH] fix last time battery --- hardware/ups/apc/snmp/mode/batterystatus.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware/ups/apc/snmp/mode/batterystatus.pm b/hardware/ups/apc/snmp/mode/batterystatus.pm index a001849fb..741b201c7 100644 --- a/hardware/ups/apc/snmp/mode/batterystatus.pm +++ b/hardware/ups/apc/snmp/mode/batterystatus.pm @@ -116,7 +116,7 @@ sub set_counters { key_values => [ { name => 'last_replace_time' } ], output_template => 'replace last time: %s s', perfdatas => [ - { label => 'temperature', value => 'last_replace_time_absolute', template => '%s', + { label => 'replace_last_time', value => 'last_replace_time_absolute', template => '%s', unit => 's'}, ], }