[honza@archlinux ]$ perl ./check_ups_health --hostname $device --mode battery-health --community public -t 3600
Use of uninitialized value $value in sprintf at check_ups_health line 585.
OK - temperature is 28.00C, unit is not on battery power, capacity is 95.00%, output load0 0.00% | 'battery_temperature'=28;35;38;; 'remaining_time'=;0:;0:;; 'capacity'=95%;25:;10:;0;100 'battery_voltage'=19.80;;;; 'output_frequency'=60;;;; 'input_voltage0'=202;;;; 'input_frequency0'=60;;;; 'output_load0'=0%;75;85;0;100 'output_voltage0'=200;;;; 'output_current0'=8.30;;;; 'output_power0'=1624;;;;
Enconnex AC6000 seems to return NULL for upsEstimatedMinutesRemaining when the battery is not used.
Which causes this behavior
Signed-off-by: Jan Tlusty j.tlusty@gmail.com