On Tue, 11 Feb 2020, Max Pierson-Liénard wrote:
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+EXEC
NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC
...
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:
When you run that command, does "some text" appear in the system log?
Roger
_______________________________________________
Nut-upsuser mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser