--- Begin Message ---
On 11/02/2020 14:46, Max Pierson-Liénard wrote:
>>I just went through the same issue. Take a look at my thread.
>>Double check that upsmon.conf:NOTIFYCMD /sbin/upssched is not still
> commented.
>
> Thanks for the response, can you link to it? I'm not finding it in the
> search. I'm not using /sbin/upssched, I have NOTIFYCMD set up as:
> NOTIFYCMD /home/pi/Documents/scripts/ups-log.py
> and it's not commented out.
I don't know whether it is supposed to work like that.
I theory, you define "NOTIFYCMD /usr/sbin/upssched" in upsmon.conf, then
you create a small event handler script that you define as "CMDSCRIPT
/etc/ups/upssched-cmd" in upssched.conf, and from inside that event
handler, you can call any custom script you like.
That "event handler" script may look something like this:
-----------------------------<cut>-------------------------------
#!/bin/sh
case $1 in
onbattery)
logger -t upssched-cmd "Handler called for 'onbattery' event."
logger -t upssched-cmd "Triggering custom script..."
/home/pi/Documents/scripts/ups-log.py
logger -t upssched-cmd "Now stopping myself..."
/usr/sbin/upsmon -c fsd
;;
*)
logger -t upssched-cmd "Unsupported event: [$1]"
;;
esac
-----------------------------<cut>-------------------------------
HTH
Cheers. Bye.
Ph. A.
>
> On Tue, Feb 11, 2020 at 4:59 AM
> <[email protected]
> <mailto:[email protected]>> wrote:
>
> Send Nut-upsuser mailing list submissions to
> [email protected]
> <mailto:[email protected]>
>
> To subscribe or unsubscribe via the World Wide Web, visit
>
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser
>
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__alioth-2Dlists.debian.net_cgi-2Dbin_mailman_listinfo_nut-2Dupsuser&d=DwMFaQ&c=thdlSQUKcAunxaltNxOnpA&r=rQMCMl4AQx8LkqcV6Z_KaNDuQW75wf_RzKbpnczVnKo&m=PEk75bnbBWG134LxqV_qp5Qxvqm2wOh4JnyqG5PczPQ&s=1ZFsAvsq7A9lAqaGG-PU9rB8uY4_cyfvtXhdPwIeehE&e=>
> or, via email, send a message with subject or body 'help' to
> [email protected]
> <mailto:[email protected]>
>
> You can reach the person managing the list at
> [email protected]
> <mailto:[email protected]>
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Nut-upsuser digest..."
>
>
> Today's Topics:
>
> 1. Re: NOTIFYCMD not running (Greg Treantos)
> 2. Re: NOTIFYCMD not running (Max Pierson-Liénard)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 11 Feb 2020 07:45:54 -0500
> From: Greg Treantos <[email protected] <mailto:[email protected]>>
> To: [email protected]
> <mailto:[email protected]>
> Subject: Re: [Nut-upsuser] NOTIFYCMD not running
> Message-ID:
>
> <CAGuknmh-RRH=cvqeduhwespnohz8nvyqposz_9q1pgqkzd_...@mail.gmail.com
> <mailto:[email protected]>>
> Content-Type: text/plain; charset="utf-8"
>
> I just went through the same issue. Take a look at my thread.
>
> Double check that upsmon.conf:NOTIFYCMD /sbin/upssched is not still
> commented.
>
> On Tue, Feb 11, 2020 at 7:00 AM
> <[email protected]
> <mailto:[email protected]>>
> wrote:
>
> > Send Nut-upsuser mailing list submissions to
> > [email protected]
> <mailto:[email protected]>
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> >
> >
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser
>
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__alioth-2Dlists.debian.net_cgi-2Dbin_mailman_listinfo_nut-2Dupsuser&d=DwMFaQ&c=thdlSQUKcAunxaltNxOnpA&r=rQMCMl4AQx8LkqcV6Z_KaNDuQW75wf_RzKbpnczVnKo&m=PEk75bnbBWG134LxqV_qp5Qxvqm2wOh4JnyqG5PczPQ&s=1ZFsAvsq7A9lAqaGG-PU9rB8uY4_cyfvtXhdPwIeehE&e=>
> > or, via email, send a message with subject or body 'help' to
> > [email protected]
> <mailto:[email protected]>
> >
> > You can reach the person managing the list at
> > [email protected]
> <mailto:[email protected]>
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of Nut-upsuser digest..."
> >
> >
> > Today's Topics:
> >
> > 1. NOTIFYCMD not running (Max Pierson-Liénard)
> > 2. Re: NOTIFYCMD not running (Roger Price)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Tue, 11 Feb 2020 02:11:45 -0800
> > From: Max Pierson-Liénard <[email protected]
> <mailto:[email protected]>>
> > To: [email protected]
> <mailto:[email protected]>
> > Subject: [Nut-upsuser] NOTIFYCMD not running
> > Message-ID:
> > <
> > cak31s7znlsckzbttpw6hmmdyxrc9s34prgmi0qcdnd34nzj...@mail.gmail.com
>
> <mailto:cak31s7znlsckzbttpw6hmmdyxrc9s34prgmi0qcdnd34nzj...@mail.gmail.com>>
> > Content-Type: text/plain; charset="utf-8"
> >
> > Hi, I'm setting up NUT on a raspberry pi 4, following the guide here:
> > https://melgrubb.com/2016/12/11/rphs-v2-ups/
>
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__melgrubb.com_2016_12_11_rphs-2Dv2-2Dups_&d=DwMFaQ&c=thdlSQUKcAunxaltNxOnpA&r=rQMCMl4AQx8LkqcV6Z_KaNDuQW75wf_RzKbpnczVnKo&m=PEk75bnbBWG134LxqV_qp5Qxvqm2wOh4JnyqG5PczPQ&s=fKmXufNxknYtQs-NkTMgmXrvEmHe6yk-8A7ux3yvuAA&e=>
> > 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!
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL: <
> >
>
> http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20200211/7be8c874/attachment-0001.html
>
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__alioth-2Dlists.debian.net_pipermail_nut-2Dupsuser_attachments_20200211_7be8c874_attachment-2D0001.html&d=DwMFaQ&c=thdlSQUKcAunxaltNxOnpA&r=rQMCMl4AQx8LkqcV6Z_KaNDuQW75wf_RzKbpnczVnKo&m=PEk75bnbBWG134LxqV_qp5Qxvqm2wOh4JnyqG5PczPQ&s=TVf8EkMDoXXrG0WLHWjl-UXQn6mzC-FCmooQFyqEt20&e=>
> > >
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Tue, 11 Feb 2020 12:55:52 +0100 (CET)
> > From: Roger Price <[email protected] <mailto:[email protected]>>
> > To: nut-upsuser Mailing List <[email protected]
> <mailto:[email protected]>>
> > Subject: Re: [Nut-upsuser] NOTIFYCMD not running
> > Message-ID: <alpine.LSU.2.20.2002111252310.5507@titan>
> > Content-Type: text/plain; charset="utf-8"; Format="flowed"
> >
> > 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
> >
> > ------------------------------
> >
> > Subject: Digest Footer
> >
> > _______________________________________________
> > Nut-upsuser mailing list
> > [email protected]
> <mailto:[email protected]>
> >
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser
>
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__alioth-2Dlists.debian.net_cgi-2Dbin_mailman_listinfo_nut-2Dupsuser&d=DwMFaQ&c=thdlSQUKcAunxaltNxOnpA&r=rQMCMl4AQx8LkqcV6Z_KaNDuQW75wf_RzKbpnczVnKo&m=PEk75bnbBWG134LxqV_qp5Qxvqm2wOh4JnyqG5PczPQ&s=1ZFsAvsq7A9lAqaGG-PU9rB8uY4_cyfvtXhdPwIeehE&e=>
> >
> > ------------------------------
> >
> > End of Nut-upsuser Digest, Vol 176, Issue 3
> > *******************************************
> >
>
>
> --
> Greg
>
> http://www.linkedin.com/in/gregtreantos
>
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.linkedin.com_in_gregtreantos&d=DwMFaQ&c=thdlSQUKcAunxaltNxOnpA&r=rQMCMl4AQx8LkqcV6Z_KaNDuQW75wf_RzKbpnczVnKo&m=PEk75bnbBWG134LxqV_qp5Qxvqm2wOh4JnyqG5PczPQ&s=67hST28dljdCFrdAYLJx4Z1qnQgN38Tq-5mO6F0Jw8I&e=>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
>
> <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20200211/9abcfb24/attachment-0001.html
>
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__alioth-2Dlists.debian.net_pipermail_nut-2Dupsuser_attachments_20200211_9abcfb24_attachment-2D0001.html&d=DwMFaQ&c=thdlSQUKcAunxaltNxOnpA&r=rQMCMl4AQx8LkqcV6Z_KaNDuQW75wf_RzKbpnczVnKo&m=PEk75bnbBWG134LxqV_qp5Qxvqm2wOh4JnyqG5PczPQ&s=9-o4SygUtJZv8ufhwhrNj62c8JpMOVumtveQqFU-JBY&e=>>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 11 Feb 2020 04:58:38 -0800
> From: Max Pierson-Liénard <[email protected]
> <mailto:[email protected]>>
> To: [email protected]
> <mailto:[email protected]>
> Subject: Re: [Nut-upsuser] NOTIFYCMD not running
> Message-ID:
>
> <CAK31S7ak4Ce3hzsM5OxuOapU+w-25i7G=lczfkl+zgrvpmt...@mail.gmail.com
> <mailto:lczfkl%[email protected]>>
> Content-Type: text/plain; charset="utf-8"
>
> > When you run that command, does "some text" appear in the system log?
> When I run Documents/scripts/ups-log.py manually I do see the
> expected text
> echo'ed to the command line. It actually appends to a Google Sheet, not
> the internal log files.
>
> When I would expect to see it triggered by NOTIFYCMD, I don't see
> any text
> printed and nothing shows up at the google sheets. If the
> permission was
> being denied, would that be logged somewhere?
>
>
>
> On Tue, Feb 11, 2020 at 4:00 AM
> <[email protected]
> <mailto:[email protected]>>
> wrote:
>
> > Send Nut-upsuser mailing list submissions to
> > [email protected]
> <mailto:[email protected]>
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> >
> >
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser
>
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__alioth-2Dlists.debian.net_cgi-2Dbin_mailman_listinfo_nut-2Dupsuser&d=DwMFaQ&c=thdlSQUKcAunxaltNxOnpA&r=rQMCMl4AQx8LkqcV6Z_KaNDuQW75wf_RzKbpnczVnKo&m=PEk75bnbBWG134LxqV_qp5Qxvqm2wOh4JnyqG5PczPQ&s=1ZFsAvsq7A9lAqaGG-PU9rB8uY4_cyfvtXhdPwIeehE&e=>
> > or, via email, send a message with subject or body 'help' to
> > [email protected]
> <mailto:[email protected]>
> >
> > You can reach the person managing the list at
> > [email protected]
> <mailto:[email protected]>
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of Nut-upsuser digest..."
> >
> >
> > Today's Topics:
> >
> > 1. NOTIFYCMD not running (Max Pierson-Liénard)
> > 2. Re: NOTIFYCMD not running (Roger Price)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Tue, 11 Feb 2020 02:11:45 -0800
> > From: Max Pierson-Liénard <[email protected]
> <mailto:[email protected]>>
> > To: [email protected]
> <mailto:[email protected]>
> > Subject: [Nut-upsuser] NOTIFYCMD not running
> > Message-ID:
> > <
> > cak31s7znlsckzbttpw6hmmdyxrc9s34prgmi0qcdnd34nzj...@mail.gmail.com
>
> <mailto:cak31s7znlsckzbttpw6hmmdyxrc9s34prgmi0qcdnd34nzj...@mail.gmail.com>>
> > Content-Type: text/plain; charset="utf-8"
> >
> > Hi, I'm setting up NUT on a raspberry pi 4, following the guide here:
> > https://melgrubb.com/2016/12/11/rphs-v2-ups/
>
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__melgrubb.com_2016_12_11_rphs-2Dv2-2Dups_&d=DwMFaQ&c=thdlSQUKcAunxaltNxOnpA&r=rQMCMl4AQx8LkqcV6Z_KaNDuQW75wf_RzKbpnczVnKo&m=PEk75bnbBWG134LxqV_qp5Qxvqm2wOh4JnyqG5PczPQ&s=fKmXufNxknYtQs-NkTMgmXrvEmHe6yk-8A7ux3yvuAA&e=>
> > 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!
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL: <
> >
>
> http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20200211/7be8c874/attachment-0001.html
>
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__alioth-2Dlists.debian.net_pipermail_nut-2Dupsuser_attachments_20200211_7be8c874_attachment-2D0001.html&d=DwMFaQ&c=thdlSQUKcAunxaltNxOnpA&r=rQMCMl4AQx8LkqcV6Z_KaNDuQW75wf_RzKbpnczVnKo&m=PEk75bnbBWG134LxqV_qp5Qxvqm2wOh4JnyqG5PczPQ&s=TVf8EkMDoXXrG0WLHWjl-UXQn6mzC-FCmooQFyqEt20&e=>
> > >
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Tue, 11 Feb 2020 12:55:52 +0100 (CET)
> > From: Roger Price <[email protected] <mailto:[email protected]>>
> > To: nut-upsuser Mailing List <[email protected]
> <mailto:[email protected]>>
> > Subject: Re: [Nut-upsuser] NOTIFYCMD not running
> > Message-ID: <alpine.LSU.2.20.2002111252310.5507@titan>
> > Content-Type: text/plain; charset="utf-8"; Format="flowed"
> >
> > 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
> >
> > ------------------------------
> >
> > Subject: Digest Footer
> >
> > _______________________________________________
> > Nut-upsuser mailing list
> > [email protected]
> <mailto:[email protected]>
> >
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser
>
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__alioth-2Dlists.debian.net_cgi-2Dbin_mailman_listinfo_nut-2Dupsuser&d=DwMFaQ&c=thdlSQUKcAunxaltNxOnpA&r=rQMCMl4AQx8LkqcV6Z_KaNDuQW75wf_RzKbpnczVnKo&m=PEk75bnbBWG134LxqV_qp5Qxvqm2wOh4JnyqG5PczPQ&s=1ZFsAvsq7A9lAqaGG-PU9rB8uY4_cyfvtXhdPwIeehE&e=>
> >
> > ------------------------------
> >
> > End of Nut-upsuser Digest, Vol 176, Issue 3
> > *******************************************
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
>
> <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20200211/8e8eec80/attachment.html
>
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__alioth-2Dlists.debian.net_pipermail_nut-2Dupsuser_attachments_20200211_8e8eec80_attachment.html&d=DwMFaQ&c=thdlSQUKcAunxaltNxOnpA&r=rQMCMl4AQx8LkqcV6Z_KaNDuQW75wf_RzKbpnczVnKo&m=PEk75bnbBWG134LxqV_qp5Qxvqm2wOh4JnyqG5PczPQ&s=vVIIBNbmmZqjANxR-MD99hlC6KDE7RDMzLHuUzosNnI&e=>>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> Nut-upsuser mailing list
> [email protected]
> <mailto:[email protected]>
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser
>
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__alioth-2Dlists.debian.net_cgi-2Dbin_mailman_listinfo_nut-2Dupsuser&d=DwMFaQ&c=thdlSQUKcAunxaltNxOnpA&r=rQMCMl4AQx8LkqcV6Z_KaNDuQW75wf_RzKbpnczVnKo&m=PEk75bnbBWG134LxqV_qp5Qxvqm2wOh4JnyqG5PczPQ&s=1ZFsAvsq7A9lAqaGG-PU9rB8uY4_cyfvtXhdPwIeehE&e=>
>
> ------------------------------
>
> End of Nut-upsuser Digest, Vol 176, Issue 4
> *******************************************
>
>
> _______________________________________________
> Nut-upsuser mailing list
> [email protected]
> https://urldefense.proofpoint.com/v2/url?u=https-3A__alioth-2Dlists.debian.net_cgi-2Dbin_mailman_listinfo_nut-2Dupsuser&d=DwIGaQ&c=thdlSQUKcAunxaltNxOnpA&r=rQMCMl4AQx8LkqcV6Z_KaNDuQW75wf_RzKbpnczVnKo&m=PEk75bnbBWG134LxqV_qp5Qxvqm2wOh4JnyqG5PczPQ&s=1ZFsAvsq7A9lAqaGG-PU9rB8uY4_cyfvtXhdPwIeehE&e=
>
>
--
*Philippe Andersson*
Unix System Administrator
IBA Particle Therapy |
Tel: +32-10-475.983
Fax: +32-10-487.707
eMail: [email protected]
<http://www.iba-worldwide.com>
signature.asc
Description: OpenPGP digital signature
--- End Message ---