<div dir="ltr"><div>If you look closer at:</div><div><br></div><div>
> pi@nutpi:~ $ sudo ls -alt /home/nutmon<br>
> total 32<br>
> -rw------- 1 nutmon nutmon 172 Jan 26 12:32 .bash_history<br>
> drwxrwx--- 2 nutmon nutmon 4096 Jan 26 12:32 upssched <br></div><div><br></div><div>there is a d in the first position of the upssched permissions showing this is a directory. This is the directory location for PIPEFN and LOCKFN as defined in upssched-cmd</div><div><br></div><div>PIPEFN /home/nutmon/upssched/upssched.pipe</div><div>LOCKFN /home/nutmon/upssched/upssched.lock</div><div><br></div><div>You are correct there are no EXECs on the relevant NOTIFYFLAGs. When I get home I'll add EXEC to the lines, test and update the thread. <br></div><div>
</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 28, 2020 at 7:00 AM <<a href="mailto:nut-upsuser-request@alioth-lists.debian.net">nut-upsuser-request@alioth-lists.debian.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send Nut-upsuser mailing list submissions to<br>
<a href="mailto:nut-upsuser@alioth-lists.debian.net" target="_blank">nut-upsuser@alioth-lists.debian.net</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:nut-upsuser-request@alioth-lists.debian.net" target="_blank">nut-upsuser-request@alioth-lists.debian.net</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:nut-upsuser-owner@alioth-lists.debian.net" target="_blank">nut-upsuser-owner@alioth-lists.debian.net</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Nut-upsuser digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Timer doesn't appear to start (Roger Price)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 28 Jan 2020 10:14:42 +0100 (CET)<br>
From: Roger Price <<a href="mailto:roger@rogerprice.org" target="_blank">roger@rogerprice.org</a>><br>
To: nut-upsuser Mailing List <<a href="mailto:nut-upsuser@lists.alioth.debian.org" target="_blank">nut-upsuser@lists.alioth.debian.org</a>><br>
Subject: Re: [Nut-upsuser] Timer doesn't appear to start<br>
Message-ID: <alpine.LSU.2.20.2001280959120.5507@titan><br>
Content-Type: text/plain; charset="utf-8"; Format="flowed"<br>
<br>
On Mon, 27 Jan 2020, Greg Treantos wrote:<br>
<br>
> root@nutpi:/etc/nut# ps -elf | grep -E '[n]ut|ups[dms]'<br>
> 4 S avahi 246 1 0 80 0 - 1472 poll_s Jan26 ? 00:00:31 avahi-daemon: running [nutpi.local]<br>
> 1 S nut 451 1 0 80 0 - 678 poll_s Jan26 ? 00:03:41 /lib/nut/upscode2 -a deltec-PRA1500<br>
> 1 S nut 454 1 0 80 0 - 1173 poll_s Jan26 ? 00:00:28 /lib/nut/upsd<br>
> 1 S root 460 1 0 80 0 - 1136 pipe_w Jan26 ? 00:00:00 /lib/nut/upsmon<br>
> 5 S nutmon 461 460 0 80 0 - 1714 hrtime Jan26 ? 00:00:10 /lib/nut/upsmon<br>
<br>
The last line shows that the instance of upsmon which should call upssched is <br>
running as nutmon. Good.<br>
<br>
> [root at donner nut]# grep ^[^#] upsmon.conf<br>
> RUN_AS_USER nutmon<br>
> MONITOR deltec-PRA1500 at localhost 1 nutmon ******** master<br>
> MINSUPPLIES 1<br>
> SHUTDOWNCMD "/sbin/shutdown -h +0"<br>
> NOTIFYCMD /sbin/upssched<br>
<br>
The last line shows that upsmon expects upssched to be in /sbin.<br>
<br>
> pi@nutpi:~ $ sudo ls -alt /home/nutmon<br>
> total 32<br>
> -rw------- 1 nutmon nutmon 172 Jan 26 12:32 .bash_history<br>
> drwxrwx--- 2 nutmon nutmon 4096 Jan 26 12:32 upssched<br>
<br>
But this shows that upssched is located in directory /home/nutmon. Is this the <br>
problem?<br>
<br>
What NOTIFYFLAG declarations with the EXEC option do you have in upsmon.conf ?<br>
If the declarations<br>
<br>
NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC<br>
NOTIFYFLAG LOWBATT SYSLOG+WALL+EXEC<br>
<br>
are missing, that could also be a problem.<br>
<br>
Roger<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@alioth-lists.debian.net" target="_blank">Nut-upsuser@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
<br>
------------------------------<br>
<br>
End of Nut-upsuser Digest, Vol 175, Issue 35<br>
********************************************<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">Greg<br><br><a href="http://www.linkedin.com/in/gregtreantos" target="_blank">http://www.linkedin.com/in/gregtreantos</a></div></div>