[Nut-upsuser] Timer doesn't appear to start

Greg Treantos gtreanto at gmail.com
Mon Jan 27 21:03:42 GMT 2020


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>


More information about the Nut-upsuser mailing list