[Plugin] NUT v2 - Network UPS Tools


dmacias

Recommended Posts

36 minutes ago, Kilrah said:

Switched to the new one and somehow output voltage display is broken, just gives seemingly random values, sometimes 2 and some, sometimes 0.8, sometimes 24 something... never had a problem before.

 

image.png.f1b9c6cc6a7aec466b3601a627c5725e.png

 

image.png.c2cb30d4ae2432f5f853e9cacca6a4d9.png

 

Hello,

 

this is not something that the plugin has any control over, unfortunately, it's either what your UPS reports or the NUT driver in the backend chooses to "see" from the values your UPS sends.

 

It's possible your UPS isn't playing well with the newer NUT backend, so I suggest switching to the "legacy" backend in NUT settings - then it'll use the exact same backend (2.7.4) as Simon's version did.

 

If the problem persists even after the backend switch then it's likely your UPS that's suddenly reporting wrong values for some reason because the backend would be the same and the plugin has no control over the values sent from the NUT driver.

 

 

Edited by Rysz
Link to comment

Hi,

 

I have a Cyberpower CP1500AVRLCD3, and it's connected to Unraid using a USB cable. I suffer from random lost every day. I installed nut on my desktop so that it can be shutdown if the power lost when I'm not at home, and `upsmon` keep reporting lost and establish of the link. So I go to check the log of unraid, every day it looks like this:

Sep 20 18:42:37 TARS-NR usbhid-ups[4647]: nut_libusb_get_string: Input/Output Error
Sep 20 18:42:37 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 18:42:52 TARS-NR usbhid-ups[4647]: nut_libusb_get_string: Input/Output Error
Sep 20 18:46:38 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 18:54:38 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 19:21:53 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 19:25:08 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 19:31:23 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 19:35:08 TARS-NR usbhid-ups[4647]: nut_libusb_get_string: Input/Output Error
Sep 20 19:51:08 TARS-NR usbhid-ups[4647]: nut_libusb_get_string: Input/Output Error
Sep 20 19:51:08 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 19:51:23 TARS-NR usbhid-ups[4647]: libusb1: Could not open any HID devices: insufficient permissions on everything
Sep 20 19:51:23 TARS-NR upsd[4671]: Data for UPS [CP1500] is stale - check driver
Sep 20 19:51:27 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 19:51:27 TARS-NR upsmon[4675]: Communications with UPS [email protected] lost
Sep 20 19:51:32 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 19:51:37 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 19:51:38 TARS-NR upsd[4671]: UPS [CP1500] data is no longer stale
Sep 20 19:51:42 TARS-NR upsmon[4675]: Communications with UPS [email protected] established
Sep 20 20:00:23 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 20:00:38 TARS-NR usbhid-ups[4647]: nut_libusb_get_string: Input/Output Error
Sep 20 20:11:53 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 20:12:08 TARS-NR usbhid-ups[4647]: nut_libusb_get_string: Input/Output Error
Sep 20 20:12:08 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 20:14:38 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 20:17:23 TARS-NR usbhid-ups[4647]: nut_libusb_get_string: Input/Output Error
Sep 20 20:28:53 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 20:35:23 TARS-NR upsd[4671]: User [email protected] logged into UPS [CP1500]
Sep 20 20:36:08 TARS-NR upsd[4671]: User [email protected] logged into UPS [CP1500]
Sep 20 20:46:22 TARS-NR webGUI: Successful login user root from 192.168.31.26
Sep 20 20:51:08 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 20:51:23 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 20:52:38 TARS-NR usbhid-ups[4647]: libusb1: Could not open any HID devices: insufficient permissions on everything
Sep 20 20:52:38 TARS-NR upsd[4671]: Data for UPS [CP1500] is stale - check driver
Sep 20 20:52:43 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 20:52:43 TARS-NR upsmon[4675]: Communications with UPS [email protected] lost
Sep 20 20:52:48 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 20:52:53 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 20:52:53 TARS-NR usbhid-ups[4647]: nut_libusb_get_string: Input/Output Error
Sep 20 20:52:53 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 20:52:58 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 20:53:03 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 20:53:08 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 20:53:08 TARS-NR upsd[4671]: UPS [CP1500] data is no longer stale
Sep 20 20:53:13 TARS-NR upsmon[4675]: Communications with UPS [email protected] established
Sep 20 20:59:23 TARS-NR usbhid-ups[4647]: libusb1: Could not open any HID devices: insufficient permissions on everything
Sep 20 20:59:23 TARS-NR upsd[4671]: Data for UPS [CP1500] is stale - check driver
Sep 20 20:59:28 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 20:59:28 TARS-NR upsmon[4675]: Communications with UPS [email protected] lost
Sep 20 20:59:33 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 20:59:38 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 20:59:38 TARS-NR upsd[4671]: UPS [CP1500] data is no longer stale
Sep 20 20:59:43 TARS-NR upsmon[4675]: Communications with UPS [email protected] established
Sep 20 21:01:38 TARS-NR usbhid-ups[4647]: nut_libusb_get_string: Input/Output Error
Sep 20 21:10:53 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 21:11:08 TARS-NR usbhid-ups[4647]: libusb1: Could not open any HID devices: insufficient permissions on everything
Sep 20 21:11:08 TARS-NR upsd[4671]: Data for UPS [CP1500] is stale - check driver
Sep 20 21:11:13 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:11:13 TARS-NR upsmon[4675]: Communications with UPS [email protected] lost
Sep 20 21:11:18 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:11:22 TARS-NR upsd[4671]: User [email protected] logged out from UPS [CP1500]
Sep 20 21:11:23 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:11:23 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 21:11:28 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:11:33 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:11:38 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:11:38 TARS-NR usbhid-ups[4647]: libusb1: Could not open any HID devices: insufficient permissions on everything
Sep 20 21:11:43 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:11:48 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:11:53 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:11:58 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:12:03 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:12:08 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:12:08 TARS-NR upsd[4671]: UPS [CP1500] data is no longer stale
Sep 20 21:12:13 TARS-NR upsmon[4675]: Communications with UPS [email protected] established
Sep 20 21:15:57 TARS-NR root: plugin: creating: /boot/config/plugins/folder.view/folder.view-2023.09.20.txz - downloading from URL https://raw.github.com/scolcipitato/folder.view/master/archive/folder.view-2023.09.20.txz
Sep 20 21:15:58 TARS-NR root: plugin: checking: /boot/config/plugins/folder.view/folder.view-2023.09.20.txz - MD5
Sep 20 21:15:58 TARS-NR root: plugin: running: upgradepkg --install-new /boot/config/plugins/folder.view/folder.view-2023.09.20.txz
Sep 20 21:15:58 TARS-NR root: plugin: running: anonymous
Sep 20 21:15:58 TARS-NR root: plugin: folder.view.plg updated
Sep 20 21:17:53 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 21:19:38 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 21:20:08 TARS-NR usbhid-ups[4647]: libusb1: Could not open any HID devices: insufficient permissions on everything
Sep 20 21:20:08 TARS-NR upsd[4671]: Data for UPS [CP1500] is stale - check driver
Sep 20 21:20:13 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:20:13 TARS-NR upsmon[4675]: Communications with UPS [email protected] lost
Sep 20 21:20:18 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:20:23 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:20:23 TARS-NR upsd[4671]: UPS [CP1500] data is no longer stale
Sep 20 21:20:28 TARS-NR upsmon[4675]: Communications with UPS [email protected] established

I was on the old plugin and now I'm using desertwitch 2023.09.17b version, this problem never disappear. I have tried to set `pollinterval` to 15 according to some google search, but nothing changed. This is the detail about my UPS if it may help

root@TARS-NR:~# upsc CP1500@localhost
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 20
battery.mfr.date: CPS
battery.runtime: 7575
battery.runtime.low: 300
battery.type: PbAcid
battery.voltage: 26.1
battery.voltage.nominal: 24
device.mfr: CPS
device.model: CP1500AVRLCD3
device.serial: BHPMV7001812
device.type: ups
driver.debug: 0
driver.flag.allow_killpower: 0
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 15
driver.parameter.port: auto
driver.parameter.synchronous: auto
driver.state: quiet
driver.version: 2.8.0.1
driver.version.data: CyberPower HID 0.8
driver.version.internal: 0.51
driver.version.usb: libusb-1.0.26 (API: 0x1000108)
input.voltage: 121.0
input.voltage.nominal: 120
output.voltage: 121.0
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.delay.start: 30
ups.load: 8
ups.mfr: CPS
ups.model: CP1500AVRLCD3
ups.productid: 0601
ups.realpower.nominal: 900
ups.serial: BHPMV7001812
ups.status: OL
ups.test.result: No test initiated
ups.timer.shutdown: -60
ups.timer.start: -60
ups.vendorid: 0764

I appreciate any help.

Link to comment
3 hours ago, lqgmeow said:

Hi,

 

I have a Cyberpower CP1500AVRLCD3, and it's connected to Unraid using a USB cable. I suffer from random lost every day. I installed nut on my desktop so that it can be shutdown if the power lost when I'm not at home, and `upsmon` keep reporting lost and establish of the link. So I go to check the log of unraid, every day it looks like this:

Sep 20 18:42:37 TARS-NR usbhid-ups[4647]: nut_libusb_get_string: Input/Output Error
Sep 20 18:42:37 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 18:42:52 TARS-NR usbhid-ups[4647]: nut_libusb_get_string: Input/Output Error
Sep 20 18:46:38 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 18:54:38 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 19:21:53 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 19:25:08 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 19:31:23 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 19:35:08 TARS-NR usbhid-ups[4647]: nut_libusb_get_string: Input/Output Error
Sep 20 19:51:08 TARS-NR usbhid-ups[4647]: nut_libusb_get_string: Input/Output Error
Sep 20 19:51:08 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 19:51:23 TARS-NR usbhid-ups[4647]: libusb1: Could not open any HID devices: insufficient permissions on everything
Sep 20 19:51:23 TARS-NR upsd[4671]: Data for UPS [CP1500] is stale - check driver
Sep 20 19:51:27 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 19:51:27 TARS-NR upsmon[4675]: Communications with UPS [email protected] lost
Sep 20 19:51:32 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 19:51:37 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 19:51:38 TARS-NR upsd[4671]: UPS [CP1500] data is no longer stale
Sep 20 19:51:42 TARS-NR upsmon[4675]: Communications with UPS [email protected] established
Sep 20 20:00:23 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 20:00:38 TARS-NR usbhid-ups[4647]: nut_libusb_get_string: Input/Output Error
Sep 20 20:11:53 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 20:12:08 TARS-NR usbhid-ups[4647]: nut_libusb_get_string: Input/Output Error
Sep 20 20:12:08 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 20:14:38 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 20:17:23 TARS-NR usbhid-ups[4647]: nut_libusb_get_string: Input/Output Error
Sep 20 20:28:53 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 20:35:23 TARS-NR upsd[4671]: User [email protected] logged into UPS [CP1500]
Sep 20 20:36:08 TARS-NR upsd[4671]: User [email protected] logged into UPS [CP1500]
Sep 20 20:46:22 TARS-NR webGUI: Successful login user root from 192.168.31.26
Sep 20 20:51:08 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 20:51:23 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 20:52:38 TARS-NR usbhid-ups[4647]: libusb1: Could not open any HID devices: insufficient permissions on everything
Sep 20 20:52:38 TARS-NR upsd[4671]: Data for UPS [CP1500] is stale - check driver
Sep 20 20:52:43 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 20:52:43 TARS-NR upsmon[4675]: Communications with UPS [email protected] lost
Sep 20 20:52:48 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 20:52:53 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 20:52:53 TARS-NR usbhid-ups[4647]: nut_libusb_get_string: Input/Output Error
Sep 20 20:52:53 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 20:52:58 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 20:53:03 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 20:53:08 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 20:53:08 TARS-NR upsd[4671]: UPS [CP1500] data is no longer stale
Sep 20 20:53:13 TARS-NR upsmon[4675]: Communications with UPS [email protected] established
Sep 20 20:59:23 TARS-NR usbhid-ups[4647]: libusb1: Could not open any HID devices: insufficient permissions on everything
Sep 20 20:59:23 TARS-NR upsd[4671]: Data for UPS [CP1500] is stale - check driver
Sep 20 20:59:28 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 20:59:28 TARS-NR upsmon[4675]: Communications with UPS [email protected] lost
Sep 20 20:59:33 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 20:59:38 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 20:59:38 TARS-NR upsd[4671]: UPS [CP1500] data is no longer stale
Sep 20 20:59:43 TARS-NR upsmon[4675]: Communications with UPS [email protected] established
Sep 20 21:01:38 TARS-NR usbhid-ups[4647]: nut_libusb_get_string: Input/Output Error
Sep 20 21:10:53 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 21:11:08 TARS-NR usbhid-ups[4647]: libusb1: Could not open any HID devices: insufficient permissions on everything
Sep 20 21:11:08 TARS-NR upsd[4671]: Data for UPS [CP1500] is stale - check driver
Sep 20 21:11:13 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:11:13 TARS-NR upsmon[4675]: Communications with UPS [email protected] lost
Sep 20 21:11:18 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:11:22 TARS-NR upsd[4671]: User [email protected] logged out from UPS [CP1500]
Sep 20 21:11:23 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:11:23 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 21:11:28 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:11:33 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:11:38 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:11:38 TARS-NR usbhid-ups[4647]: libusb1: Could not open any HID devices: insufficient permissions on everything
Sep 20 21:11:43 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:11:48 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:11:53 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:11:58 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:12:03 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:12:08 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:12:08 TARS-NR upsd[4671]: UPS [CP1500] data is no longer stale
Sep 20 21:12:13 TARS-NR upsmon[4675]: Communications with UPS [email protected] established
Sep 20 21:15:57 TARS-NR root: plugin: creating: /boot/config/plugins/folder.view/folder.view-2023.09.20.txz - downloading from URL https://raw.github.com/scolcipitato/folder.view/master/archive/folder.view-2023.09.20.txz
Sep 20 21:15:58 TARS-NR root: plugin: checking: /boot/config/plugins/folder.view/folder.view-2023.09.20.txz - MD5
Sep 20 21:15:58 TARS-NR root: plugin: running: upgradepkg --install-new /boot/config/plugins/folder.view/folder.view-2023.09.20.txz
Sep 20 21:15:58 TARS-NR root: plugin: running: anonymous
Sep 20 21:15:58 TARS-NR root: plugin: folder.view.plg updated
Sep 20 21:17:53 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 21:19:38 TARS-NR usbhid-ups[4647]: nut_libusb_get_report: Input/Output Error
Sep 20 21:20:08 TARS-NR usbhid-ups[4647]: libusb1: Could not open any HID devices: insufficient permissions on everything
Sep 20 21:20:08 TARS-NR upsd[4671]: Data for UPS [CP1500] is stale - check driver
Sep 20 21:20:13 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:20:13 TARS-NR upsmon[4675]: Communications with UPS [email protected] lost
Sep 20 21:20:18 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:20:23 TARS-NR upsmon[4675]: Poll UPS [[email protected]] failed - Data stale
Sep 20 21:20:23 TARS-NR upsd[4671]: UPS [CP1500] data is no longer stale
Sep 20 21:20:28 TARS-NR upsmon[4675]: Communications with UPS [email protected] established

I was on the old plugin and now I'm using desertwitch 2023.09.17b version, this problem never disappear. I have tried to set `pollinterval` to 15 according to some google search, but nothing changed. This is the detail about my UPS if it may help

root@TARS-NR:~# upsc CP1500@localhost
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 20
battery.mfr.date: CPS
battery.runtime: 7575
battery.runtime.low: 300
battery.type: PbAcid
battery.voltage: 26.1
battery.voltage.nominal: 24
device.mfr: CPS
device.model: CP1500AVRLCD3
device.serial: BHPMV7001812
device.type: ups
driver.debug: 0
driver.flag.allow_killpower: 0
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 15
driver.parameter.port: auto
driver.parameter.synchronous: auto
driver.state: quiet
driver.version: 2.8.0.1
driver.version.data: CyberPower HID 0.8
driver.version.internal: 0.51
driver.version.usb: libusb-1.0.26 (API: 0x1000108)
input.voltage: 121.0
input.voltage.nominal: 120
output.voltage: 121.0
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.delay.start: 30
ups.load: 8
ups.mfr: CPS
ups.model: CP1500AVRLCD3
ups.productid: 0601
ups.realpower.nominal: 900
ups.serial: BHPMV7001812
ups.status: OL
ups.test.result: No test initiated
ups.timer.shutdown: -60
ups.timer.start: -60
ups.vendorid: 0764

I appreciate any help.

 

Hello, did this also happen on the old plugin or only on the new one now? You wrote it never disappeared changing to the new plugin, so I'm guessing it also happened before?

 

If it also happened before - have you tried another USB port? Your UPS is listed as compatible with NUT, so this looks more like a USB port/cable/controller issue and I've read about other people with your UPS who had the same problem where it ended up being the USB port.

 

If it did not happen before - change the backend in NUT settings to "legacy" (2.7.4) and you'll have the same NUT driver as with the old plugin.

 

Edited by Rysz
Link to comment
2 hours ago, Rysz said:

 

Hello, did this also happen on the old plugin or only on the new one now? You wrote it never disappeared changing to the new plugin, so I'm guessing it also happened before?

 

If it also happened before - have you tried another USB port? Your UPS is listed as compatible with NUT, so this looks more like a USB port/cable/controller issue and I've read about other people with your UPS who had the same problem where it ended up being the USB port.

 

If it did not happen before - change the backend in NUT settings to "legacy" (2.7.4) and you'll have the same NUT driver as with the old plugin.

 

Hi, yes it happened on the old version too. That's good information for me, I will check other USB ports later. Thanks for your reply.

  • Upvote 1
Link to comment

Curious to see if anyone could help me get this plugin to work with my APC UPS Smart-UPS, SMTL1500RM3UC, so that it shows UPS Load in watts and %.

I'm currently using the included USB cable for the connection to my unRAID server. 

I have the APC NMC (Network Mgmt Card) installed in the UPS, but haven't been able to figure out how to get that to work with NUT or even the unRAID UPS settings. I can log in to that card from another pc, but it would be nice to see it in NUT.

 

2071042103_Screenshot2023-09-23170538.thumb.jpg.11d01fd3d90015ea7f6f6384a7037550.jpg

 

I have tried all of my USB ports on my motherboard, i.e. USB2, USB3, with no difference. 

 

The only readings NUT or unRAID UPS will give me are:

UPS Status = On line

Battery Charge = 100%

Runtime Left = 24:19

Power Factor = 0.9

 

658415612_Screenshot2023-09-23170023.thumb.jpg.9eeb45f5ca8be7c9a9a87e2ece5b8e52.jpg

 

I've attached all relevant info I could think of, but if you need something else just ask. 

Thanks for looking.

Screenshot 2023-09-23 170042.jpg

Screenshot 2023-09-23 170058.jpg

nut-diagnostics.dev threadripper19-diagnostics-20230923-1701.zip

Link to comment
11 hours ago, FQs19 said:

Curious to see if anyone could help me get this plugin to work with my APC UPS Smart-UPS, SMTL1500RM3UC, so that it shows UPS Load in watts and %.

I'm currently using the included USB cable for the connection to my unRAID server. 

I have the APC NMC (Network Mgmt Card) installed in the UPS, but haven't been able to figure out how to get that to work with NUT or even the unRAID UPS settings. I can log in to that card from another pc, but it would be nice to see it in NUT.

 

2071042103_Screenshot2023-09-23170538.thumb.jpg.11d01fd3d90015ea7f6f6384a7037550.jpg

 

I have tried all of my USB ports on my motherboard, i.e. USB2, USB3, with no difference. 

 

The only readings NUT or unRAID UPS will give me are:

UPS Status = On line

Battery Charge = 100%

Runtime Left = 24:19

Power Factor = 0.9

 

658415612_Screenshot2023-09-23170023.thumb.jpg.9eeb45f5ca8be7c9a9a87e2ece5b8e52.jpg

 

I've attached all relevant info I could think of, but if you need something else just ask. 

Thanks for looking.

Screenshot 2023-09-23 170042.jpg

Screenshot 2023-09-23 170058.jpg

nut-diagnostics.dev 938 B · 1 download threadripper19-diagnostics-20230923-1701.zip 190.23 kB · 1 download

 

Hello,

 

this seems to be a USB driver compatibility problem with your UPS series, see here:

https://github.com/networkupstools/nut/issues/359

 

I'd suggest you have NUT connect to your UPS over SNMP (network connection) instead rather than USB (cable connection). SNMP would make NUT connect to the UPS' network card and that makes it easier for NUT to read these missing values from your UPS.

 

In the NUT settings for SNMP you'll set:

UPS Driver: snmp-ups

UPS Driver Port: (ip address of your UPS here)

SNMP Community: public

 

If that doesn't work straight away your UPS needs to have SNMP activated/configured first:

image1.thumb.jpg.8cd00bbfd455356a3042891dd22f5998.jpg

 

image2.thumb.jpg.ca0708fdda8b9b64df979a161648850c.jpg

 

More information here:

https://cdn.cnetcontent.com/b3/87/b387b23c-0e2c-49de-bbb1-74613618fb7f.pdf (page 53/54)

https://support.auvik.com/hc/en-us/articles/205162620-How-to-enable-SNMP-on-APC-UPS-devices

 

If you absolutely need to stay on USB and don't want to or can't connect over network (SNMP), then a last resort attempt would be switching the backend to "legacy" in NUT Settings (requires reboot).

 

Please let me know what worked or didn't work for you!

 

Edited by Rysz
  • Thanks 1
Link to comment
1 minute ago, FQs19 said:
  Reveal hidden contents

 

 

@Rysz

 

You absolutely nailed it!

The easiest fix I've had to do with my unRAID since I started the server.

 

Just needed to adjust the NUT setting and APC SNMP access control setting and it worked instantly!

 

Thank you so much for the help!

Anyway to donate to you for the help?

 

919025074_Screenshot2023-09-24154240.thumb.jpg.0a87e58132ac76063426cfbe323b1ed8.jpg

 

1101189729_Screenshot2023-09-24154441.thumb.jpg.fb1d91ce56835924d8f166150583f64d.jpg

 

918287561_Screenshot2023-09-24154053.thumb.jpg.1d2d7643634c3eac30b50d51b1e73a0d.jpg

 

Thanks for reporting back - glad it works for you this way! Thanks a lot also for the donation offer but no need - always glad to help people with the plugin. 🙂

  • Thanks 1
Link to comment
1 minute ago, ich777 said:

@Rysz I don't know if you've seen it already but I've issued a PR to hide the NUT Statistics from the Unraid Settings page if it is disabled in the NUT settings.

 

Hadn't seen it yet, that's really cool - I didn't know you could do that. Will test and merge when I get home - thanks a lot. 🙂

  • Like 1
Link to comment

@Rysz

 

Do you happen to know the name of the variable that is populating this load value?

image.thumb.png.1fa811f85b38613a6f285b6de42ae0f9.png

 

I configured the statistics page, and all seems to work out the box except for the Power Draw in Watts:

image.thumb.png.6af47cdd176a6f7f1a0549a3f828a3a4.png

However, I assume those two values are one in the same?

 

It seems like be default you are using "ups.realpower", however I don't see that as a value in my config screen (not to say it isn't one under the covers though):

image.thumb.png.115668aa7204fd92088f6b4bb00c012d.png

 

Thanks in advance for any guidance.

 

Hans

 

 

Link to comment
10 hours ago, cybrnook said:

@Rysz

 

Do you happen to know the name of the variable that is populating this load value?

image.thumb.png.1fa811f85b38613a6f285b6de42ae0f9.png

 

I configured the statistics page, and all seems to work out the box except for the Power Draw in Watts:

image.thumb.png.6af47cdd176a6f7f1a0549a3f828a3a4.png

However, I assume those two values are one in the same?

 

It seems like be default you are using "ups.realpower", however I don't see that as a value in my config screen (not to say it isn't one under the covers though):

image.thumb.png.115668aa7204fd92088f6b4bb00c012d.png

 

Thanks in advance for any guidance.

 

Hans

 

 

 

Hello Hans,

 

In this case, unfortunately, there is currently no way to display your UPS power draw as a NUT chart because your UPS does not report it as an actual variable (ups.realpower). It is calculated from other available variables (ups.realpower.nominal * ups.load * 0,01) for displaying the missing information in the NUT dashboard. The NUT charts, however, at the moment can only display information which is actually existent in the form of a UPS-reported variable. But you can disable the unneeded chart or display another variable of your choosing instead with the "Variable Override" setting in NUT settings.

 

Sorry for the inconvenience!

 

Edited by Rysz
  • Thanks 1
Link to comment

It is currently not possible to use `dummy-ups` driver configuration for the purpose of QNAP (and maybe Synology too?) NAS.

 

Example `ups.conf` configuration which fails to work

maxstartdelay = 150

maxretry = 30

retrydelay = 5

[ups]
driver = "usbhid-ups"
port = "auto"
# your USB UPS configuration follows

[qnapups]
driver = dummy-ups
port = [email protected]
desc = "APC UPS for QNAP"

 

This can be however hotfixed with the following patch for the `/etc/rc.d/rc.nut` file.

--- rc.nut	2023-09-29 19:45:25
+++ rc.nut2	2023-09-29 19:49:39
@@ -15,7 +15,7 @@
 [ -e "$CONFIG" ] && source $CONFIG

 start_driver() {
-    /usr/sbin/upsdrvctl -u root start 2>&1 || exit 1
+    /usr/sbin/upsdrvctl -u root start ups 2>&1 || exit 1
 }

 start_upsd() {
\ No newline at end of file
@@ -247,6 +247,8 @@
             start_upsd
         fi
         start_upsmon
+        sleep 1
+        /usr/sbin/upsdrvctl -u root start qnapups 2>&1 || exit 1
         ;;
     start_upsmon) # starts upsmon only (for a ups client box)
         start_upsmon
\ No newline at end of file

 

(Apply via ssh/terminal with `patch /etc/rc.d/rc.nut < PatchFileIncludingAbovePatch`)

 

With such patch NUT works well and can start both drivers successfully.

 

Maybe someone else will find that helpful.

Link to comment

I have a Mecer ME-1000-VU UPS with a USB Data Port. The UPS uses UPSILON 2000 Driver. I had previously setup the UPS using the Link on the Home Page of this thread. It worked just fine. However, when the Server restarted due to a power outage the Plugin was removed due to compatibility issues. FYI at the time i was on Unraid 6.12.3.

 

Am now on Unraid 6.12.4 and have now installed the rysz Network UPS Tools (NUT) for UNRAID plugin through Docker. Have tried all the options but not sure what am missing as the UPS is not detected.

 

image.png.bd65bd569af0f5f5e1f7379a896d75d9.png

Link to comment
12 minutes ago, Alcapone001 said:

I have a Mecer ME-1000-VU UPS with a USB Data Port. The UPS uses UPSILON 2000 Driver. I had previously setup the UPS using the Link on the Home Page of this thread. It worked just fine. However, when the Server restarted due to a power outage the Plugin was removed due to compatibility issues. FYI at the time i was on Unraid 6.12.3.

 

Am now on Unraid 6.12.4 and have now installed the rysz Network UPS Tools (NUT) for UNRAID plugin through Docker. Have tried all the options but not sure what am missing as the UPS is not detected.

 

image.png.bd65bd569af0f5f5e1f7379a896d75d9.png

 

First make sure you use the "nutdrv_qx" driver and the port is set to "auto". 

 

If that doesn't work, can you try changing the backend in NUT Settings to "legacy (2.7.4)"? Some UPS don't play well with the newer backends.

 

Edited by Rysz
Link to comment
9 minutes ago, Rysz said:

 

First make sure you use the "nutdrv_qx" driver and the port is set to "auto". 

 

If that doesn't work, can you try changing the backend in NUT Settings to "legacy (2.7.4)"? Some UPS don't play well with the newer backends.

 

 

In the Plugin the nutdriv_qx is not an option.

image.png.74ec338b26e329acfe56c3de38062f08.png

 

Using the Custom option and defining 'nutdrv_qx' results in failed to start driver. I noticed this is the same error i had even with blazer usb option

image.png.28ebe7b18788cc36fa29540e8422ff54.png

Edited by Alcapone001
Link to comment

 

2 minutes ago, Alcapone001 said:

 

In the Plugin the nutdriv_qx is not an option.

image.png.74ec338b26e329acfe56c3de38062f08.png

 

Choose Custom, you'll get a text field to the right where you'll put "nutdrv_qx" (without the quotes) and for the port you'll put "auto“ (without the quotes).

Edited by Rysz
Link to comment
  • Rysz featured this topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.