Hi, I'm setting up NUT on a raspberry pi 4, following the guide here: https://melgrubb.com/2016/12/11/rphs-v2-ups/ OS version: Raspian Buster NUT version: 2.7.4.8 Installed via: apt package install Device: Legrand Keor Multiplug connected via USB
The problem I am experiencing is that *NOTIFYCMD* never runs. I can connect to the device via *upsc*, and I receive WALL messages when I connect and disconnect the power. I have the following in *upsmon.conf*: *MONITOR ROUTERUPS@localhost 1 upsmon <mypassword> master* *NOTIFYCMD /home/pi/Documents/scripts/ups-log.py* *NOTIFYFLAG ONLINE SYSLOG+WALL+EXECNOTIFYFLAG ONBATT SYSLOG+WALL+EXECNOTIFYFLAG LOWBATT SYSLOG+WALL+EXECNOTIFYFLAG FSD SYSLOG+WALL+EXECNOTIFYFLAG SHUTDOWN SYSLOG+WALL+EXECNOTIFYFLAG REPLBATT SYSLOG+WALL+EXECNOTIFYFLAG NOPARENT SYSLOG+WALL* I am able to run that command, */home/pi/Documents/scripts/ups-log.py "some text"* without any issues, and it doesn't require root privileges. The owner is nut and the permissions are 755: -rwxr-xr-x 1 nut nut 2927 Feb 9 22:26 ups-log.py Contents of my /etc/nut/ folder: *-rw-r----- 1 nut nut 1544 Feb 3 07:40 nut.conf-rw-r----- 1 nut nut 5588 Feb 3 07:38 ups.conf-rw-r----- 1 nut nut 4578 Jun 1 2018 upsd.conf-rw-r----- 1 nut nut 2283 Feb 3 13:27 upsd.users-rw-r----- 1 nut nut 15434 Feb 10 23:22 upsmon.conf-rw-r----- 1 nut nut 15308 Feb 3 15:45 upsmon.conf.save-rw-r----- 1 nut nut 3887 Jun 1 2018 upssched.conf* Contents of my syslog via tail: *Feb 11 11:59:52 raspberrypi kernel: [ 6355.200755] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0Feb 11 11:59:52 raspberrypi kernel: [ 6355.200768] usb 1-1.4: Product: USB to SerialFeb 11 11:59:52 raspberrypi kernel: [ 6355.200780] usb 1-1.4: Manufacturer: INNO TECHFeb 11 11:59:52 raspberrypi kernel: [ 6355.214192] hid-generic 0003:0665:5161.0002: hiddev96,hidraw0: USB HID v1.00 Device [INNO TECH USB to Serial] on usb-0000:01:00.0-1.4/input0Feb 11 11:59:52 raspberrypi mtp-probe: checking bus 1, device 5: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4"Feb 11 11:59:52 raspberrypi mtp-probe: bus: 1, device: 5 was not an MTP deviceFeb 11 11:59:52 raspberrypi mtp-probe: checking bus 1, device 5: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4"Feb 11 11:59:52 raspberrypi mtp-probe: bus: 1, device: 5 was not an MTP deviceFeb 11 11:59:57 raspberrypi upsmon[14209]: UPS ROUTERUPS@localhost on batteryFeb 11 12:00:22 raspberrypi upsmon[14209]: UPS ROUTERUPS@localhost on line power* That's as much information as I can think of, it seems like it has to be a permissions thing but it's not spitting out any kind of error that would help troubleshoot. Thank you for the time!
_______________________________________________ Nut-upsuser mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser
