Reporting UPS graphs blank when NUT runs as a slave on nas.
Description
Hi,
I run NUT (Network UPS Tools) server on different machine the UPS is connected to with usb cable. Connecting nas to it via UI seems straightforward, and running "upsc ups@zero.lan" returns correct values, ie:
battery.charge: 100 battery.charge.low: 10 battery.charge.warning: 50 battery.date: 2001/09/25 battery.mfr.date: 2019/06/15 battery.runtime: 1012 battery.runtime.low: 120 battery.type: PbAc battery.voltage: 27.3 battery.voltage.nominal: 24.0 device.mfr: American Power Conversion device.model: Back-UPS XS 1400U device.serial: [REDACTED] device.type: ups driver.name: usbhid-ups driver.parameter.pollfreq: 30 driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.parameter.synchronous: no driver.version: 2.7.4 driver.version.data: APC HID 0.96 driver.version.internal: 0.41 input.sensitivity: medium input.transfer.high: 280 input.transfer.low: 155 input.voltage: 240.0 input.voltage.nominal: 230 ups.beeper.status: enabled ups.delay.shutdown: 20 ups.firmware: 926.T2 .I ups.firmware.aux: T2 ups.load: 33 ups.mfr: American Power Conversion ups.mfr.date: 2019/06/15 ups.model: Back-UPS XS 1400U ups.productid: 0002 ups.realpower.nominal: 700 ups.serial: [REDACTED] ups.status: OL ups.test.result: No test initiated ups.timer.reboot: 0 ups.timer.shutdown: -1 ups.vendorid: 051d
However the graphs in Reporting / UPS remain blank, showing correct timespan, with values listed as "null".
If NUT runs in master mode on nas this of course makes the graphs work, but it's not viable for me to have the ups near the nas.
Just had a power outage and after the power came back up received this email from nas, confirming the ups connection is ok:
NOTIFICATION: 'ONLINE'
UPS: 'ups'
Statistics recovered:
1) Battery charge (percent) battery.charge: 84
2) Battery level remaining (percent) when UPS switches to Low Battery (LB) battery.charge.low: 10
3) Battery runtime (seconds) battery.runtime: 812
4) Battery runtime remaining (seconds) when UPS switches to Low Battery (LB) battery.runtime.low: 120
John Doe August 26, 2021 at 5:02 PM
Here's the collectd.conf:
I've ran the command, it outputted True. After 5 minutes I checked the graphs, they are still empty. Attached screenshot and latest debug.
Waqar August 26, 2021 at 4:01 PM
Also please do run the following command and then after around 5 minutes please make sure that the reporting graphs are still not there and in that case can you please share a newer debug of the system then ? If they happen to show up, please do let me know still
Waqar August 26, 2021 at 3:56 PM
Thank you for sharing the newer debug, can you please share the contents of the "/etc/local/collectd.conf" file ? ( you can do so with "cat /etc/local/collectd.conf" )
Hi,
I run NUT (Network UPS Tools) server on different machine the UPS is connected to with usb cable. Connecting nas to it via UI seems straightforward, and running "upsc ups@zero.lan" returns correct values, ie:
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 50
battery.date: 2001/09/25
battery.mfr.date: 2019/06/15
battery.runtime: 1012
battery.runtime.low: 120
battery.type: PbAc
battery.voltage: 27.3
battery.voltage.nominal: 24.0
device.mfr: American Power Conversion
device.model: Back-UPS XS 1400U
device.serial: [REDACTED]
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.synchronous: no
driver.version: 2.7.4
driver.version.data: APC HID 0.96
driver.version.internal: 0.41
input.sensitivity: medium
input.transfer.high: 280
input.transfer.low: 155
input.voltage: 240.0
input.voltage.nominal: 230
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.firmware: 926.T2 .I
ups.firmware.aux: T2
ups.load: 33
ups.mfr: American Power Conversion
ups.mfr.date: 2019/06/15
ups.model: Back-UPS XS 1400U
ups.productid: 0002
ups.realpower.nominal: 700
ups.serial: [REDACTED]
ups.status: OL
ups.test.result: No test initiated
ups.timer.reboot: 0
ups.timer.shutdown: -1
ups.vendorid: 051d
However the graphs in Reporting / UPS remain blank, showing correct timespan, with values listed as "null".
If NUT runs in master mode on nas this of course makes the graphs work, but it's not viable for me to have the ups near the nas.