Here are my permissions and user info. Let me know if there is anything else I should check pi at nutpi:~ $ ls -alt /etc/nut total 56 drwxr-xr-x 87 root root 4096 Jan 26 15:22 .. drwxr-xr-x 2 root nut 4096 Jan 26 13:53 . -rw-r----- 1 root nut 4719 Jan 26 13:15 upssched.conf -rw-r----- 1 root nut 15347 Jan 26 11:25 upsmon.conf -rw-r----- 1 root nut 1543 Jan 26 10:02 nut.conf -rw-r----- 1 root nut 2191 Jan 26 09:40 upsd.users -rw-r----- 1 root nut 4601 Jan 26 09:38 upsd.conf -rw-r----- 1 root nut 5646 Jan 26 09:32 ups.conf the user I created for nut is nutmon. Here is the directory permissions for that user pi at nutpi:~ $ sudo ls -alt /home/nutmon total 32 -rw------- 1 nutmon nutmon 172 Jan 26 12:32 .bash_history drwxrwx--- 2 nutmon nutmon 4096 Jan 26 12:32 upssched drwxrwx--- 4 nutmon nutmon 4096 Jan 26 11:11 . drwx------ 3 nutmon nutmon 4096 Jan 26 11:10 .gnupg drwxr-xr-x 4 root root 4096 Jan 26 09:05 .. -rwxrwx--- 1 nutmon nutmon 3523 Sep 25 20:09 .bashrc -rwxrwx--- 1 nutmon nutmon 220 Apr 18 2019 .bash_logout -rwxrwx--- 1 nutmon nutmon 807 Apr 18 2019 .profile root at nutpi:/etc/nut# grep ^[^#] upsd.users [nutmon] password = <userpwd> upsmon master root at nutpi:/etc/nut# grep ^[^#] upsmon.conf RUN_AS_USER nutmon MONITOR deltec-PRA1500 at localhost 1 nutmon <userpwd> master On Mon, Jan 27, 2020 at 7:00 AM <nut-upsuser-request at alioth-lists.debian.net> wrote:> Send Nut-upsuser mailing list submissions to > nut-upsuser at alioth-lists.debian.net > > To subscribe or unsubscribe via the World Wide Web, visit > > https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser > or, via email, send a message with subject or body 'help' to > nut-upsuser-request at alioth-lists.debian.net > > You can reach the person managing the list at > nut-upsuser-owner at alioth-lists.debian.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Nut-upsuser digest..." > > > Today's Topics: > > 1. Re: Timer doesn't appear to start (Roger Price) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 27 Jan 2020 12:13:20 +0100 (CET) > From: Roger Price <roger at rogerprice.org> > To: nut-upsuser Mailing List <nut-upsuser at lists.alioth.debian.org> > Subject: Re: [Nut-upsuser] Timer doesn't appear to start > Message-ID: <alpine.LSU.2.20.2001271207120.5507 at titan> > Content-Type: text/plain; charset="iso-8859-15"; Format="flowed" > > On Mon, 27 Jan 2020, Greg Treantos wrote: > > > Roger, here is my output of ps -elf |grep upssched > > > > root at nutpi:~# ps -elf |grep upssched > > 0 S root 1242 1191 0 80 0 - 1834 pipe_w 05:23 pts/0 > 00:00:00 grep upssched > > > > No timer, just the grep of upssched.. > > So upssched doesn't start. Is this an ownership/permissions problem? > > Roger > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser at alioth-lists.debian.net > https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser > > ------------------------------ > > End of Nut-upsuser Digest, Vol 175, Issue 32 > ******************************************** >-- Greg http://www.linkedin.com/in/gregtreantos -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20200127/4d15dcfb/attachment.html>
On Mon, 27 Jan 2020, Greg Treantos wrote:> Here are my permissions and user info. Let me know if there is anything else I should check > > pi at nutpi:~ $ ls -alt /etc/nut > total 56 > drwxr-xr-x 87 root root 4096 Jan 26 15:22 .. > drwxr-xr-x 2 root nut 4096 Jan 26 13:53 . > -rw-r----- 1 root nut 4719 Jan 26 13:15 upssched.conf > ... > > the user I created for nut is nutmon. Here is the directory permissions for that user > > pi at nutpi:~ $ sudo ls -alt /home/nutmon > total 32 > -rw------- 1 nutmon nutmon 172 Jan 26 12:32 .bash_history > drwxrwx--- 2 nutmon nutmon 4096 Jan 26 12:32 upssched > ...> root at nutpi:/etc/nut# grep ^[^#] upsd.users > [nutmon] > password = <userpwd> > upsmon master > > root at nutpi:/etc/nut# grep ^[^#] upsmon.conf > RUN_AS_USER nutmon > MONITOR deltec-PRA1500 at localhost 1 nutmon <userpwd> masterHello Greg, When you reply to a digest entry, could you change the subject line back to the original subject line. If you leave the "Digest" subject line, the archive thread is broken, and it makes it harder to find your posting in the incoming e-mail. The file upsmon.conf does not point to the upssched binary. I would expect to see a declaration such as: NOTIFYCMD /home/nutmon/upssched The line> -rw-r----- 1 root nut 4719 Jan 26 13:15 upssched.confsays that you have a group called "nut", but user "nutmon" appears to be in group "nutmon". Is this deliberate ? Roger
I only pasted a subset of my upsmon.conf. NOTIFYCMD is in my upsmon.conf AFA nutmon user. I was trying different things I had the directory as nutmon nut but changed it to nutmon nutmon to see if that worked. It didn't make a difference. Sorry about the digest this. I needed to hit a line in gmail web client to see the subject line. Know I know. Thanks for the heads up.. [root at donner nut]# grep ^[^#] upsmon.conf RUN_AS_USER nutmon MONITOR deltec-PRA1500 at localhost 1 nutmon zaq12wsx master MINSUPPLIES 1 SHUTDOWNCMD "/sbin/shutdown -h +0" NOTIFYCMD /sbin/upssched POLLFREQ 5 POLLFREQALERT 5 HOSTSYNC 15 DEADTIME 15 POWERDOWNFLAG /etc/killpower On Mon, Jan 27, 2020 at 8:32 AM Greg Treantos <gtreanto at gmail.com> wrote:> Here are my permissions and user info. Let me know if there is anything > else I should check > > pi at nutpi:~ $ ls -alt /etc/nut > total 56 > drwxr-xr-x 87 root root 4096 Jan 26 15:22 .. > drwxr-xr-x 2 root nut 4096 Jan 26 13:53 . > -rw-r----- 1 root nut 4719 Jan 26 13:15 upssched.conf > -rw-r----- 1 root nut 15347 Jan 26 11:25 upsmon.conf > -rw-r----- 1 root nut 1543 Jan 26 10:02 nut.conf > -rw-r----- 1 root nut 2191 Jan 26 09:40 upsd.users > -rw-r----- 1 root nut 4601 Jan 26 09:38 upsd.conf > -rw-r----- 1 root nut 5646 Jan 26 09:32 ups.conf > > the user I created for nut is nutmon. Here is the directory permissions > for that user > > pi at nutpi:~ $ sudo ls -alt /home/nutmon > total 32 > -rw------- 1 nutmon nutmon 172 Jan 26 12:32 .bash_history > drwxrwx--- 2 nutmon nutmon 4096 Jan 26 12:32 upssched > drwxrwx--- 4 nutmon nutmon 4096 Jan 26 11:11 . > drwx------ 3 nutmon nutmon 4096 Jan 26 11:10 .gnupg > drwxr-xr-x 4 root root 4096 Jan 26 09:05 .. > -rwxrwx--- 1 nutmon nutmon 3523 Sep 25 20:09 .bashrc > -rwxrwx--- 1 nutmon nutmon 220 Apr 18 2019 .bash_logout > -rwxrwx--- 1 nutmon nutmon 807 Apr 18 2019 .profile > > root at nutpi:/etc/nut# grep ^[^#] upsd.users > [nutmon] > password = <userpwd> > upsmon master > > root at nutpi:/etc/nut# grep ^[^#] upsmon.conf > RUN_AS_USER nutmon > MONITOR deltec-PRA1500 at localhost 1 nutmon <userpwd> master > > On Mon, Jan 27, 2020 at 7:00 AM < > nut-upsuser-request at alioth-lists.debian.net> wrote: > >> Send Nut-upsuser mailing list submissions to >> nut-upsuser at alioth-lists.debian.net >> >> To subscribe or unsubscribe via the World Wide Web, visit >> >> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser >> or, via email, send a message with subject or body 'help' to >> nut-upsuser-request at alioth-lists.debian.net >> >> You can reach the person managing the list at >> nut-upsuser-owner at alioth-lists.debian.net >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of Nut-upsuser digest..." >> >> >> Today's Topics: >> >> 1. Re: Timer doesn't appear to start (Roger Price) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Mon, 27 Jan 2020 12:13:20 +0100 (CET) >> From: Roger Price <roger at rogerprice.org> >> To: nut-upsuser Mailing List <nut-upsuser at lists.alioth.debian.org> >> Subject: Re: [Nut-upsuser] Timer doesn't appear to start >> Message-ID: <alpine.LSU.2.20.2001271207120.5507 at titan> >> Content-Type: text/plain; charset="iso-8859-15"; Format="flowed" >> >> On Mon, 27 Jan 2020, Greg Treantos wrote: >> >> > Roger, here is my output of ps -elf |grep upssched >> > >> > root at nutpi:~# ps -elf |grep upssched >> > 0 S root 1242 1191 0 80 0 - 1834 pipe_w 05:23 pts/0 >> 00:00:00 grep upssched >> > >> > No timer, just the grep of upssched.. >> >> So upssched doesn't start. Is this an ownership/permissions problem? >> >> Roger >> >> ------------------------------ >> >> Subject: Digest Footer >> >> _______________________________________________ >> Nut-upsuser mailing list >> Nut-upsuser at alioth-lists.debian.net >> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser >> >> ------------------------------ >> >> End of Nut-upsuser Digest, Vol 175, Issue 32 >> ******************************************** >> > > > -- > Greg > > http://www.linkedin.com/in/gregtreantos >-- Greg http://www.linkedin.com/in/gregtreantos -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20200127/05e0e681/attachment-0001.html>
On Mon, 27 Jan 2020, Greg Treantos wrote:> I only pasted a subset of my upsmon.conf. NOTIFYCMD is in my upsmon.conf > > AFA nutmon user. I was trying different things I had the directory as nutmon > nut but changed it to nutmon nutmon to see if that worked. It didn't make a > difference. > > [root at donner nut]# grep ^[^#] upsmon.conf > RUN_AS_USER nutmon > MONITOR deltec-PRA1500 at localhost 1 nutmon zaq12wsx master > MINSUPPLIES 1 > SHUTDOWNCMD "/sbin/shutdown -h +0" > NOTIFYCMD /sbin/upsschedThe NOTIFYCMD command points to /sbin/upssched, but your command sudo ls -alt /home/nutmon showed that upssched is in directory /home/nutmon. What does command ps -elf | grep -E 'nut|ups[dms]' report when upsd is running ? Roger