<div dir="ltr">Hi Roger,<div><br></div><div>I am not home, but when I do get home I will check out everything you've mentioned. I do have some time where I can give you a breakdown of my topology though. I have a feeling all of this is probably due to a configuration error somewhere on my part. Here's what I have done so far.</div><div><br></div><div><b>APC Back-UPS NS 650M1 UPS</b> ---USB---> <b>Synology NAS (DS416 - Master?)</b> ---Ethernet---> <b>Netgear Managed Switch</b> w/ uplink to router <---Ethernet--- <b>Servers (Ubuntu 20.04 - Plex, Pulsar, Proton - All three set as slaves)</b></div><div><b><br></b></div><div>I have all three servers set as slaves, so is the Synology considered the master? Or do I need to set one of the servers as the Master? I've been under the impression that the Synology is the master, but have been unable to confirm this.</div><div><b><br></b></div><div>So what I have done so far is enable the "Network UPS Server" on the Synology, entered the three IPs of the servers in there, set it to shutdown when battery is low and enabled "Shutdown UPS when the system enters safe mode". I then installed NUT on all three servers. In nut.conf I changed MODE to "MODE=netclient". I then added my MONITOR line in upsmon.conf. on all three. Looks something like this: </div><div><br></div><div>MONITOR <a href="mailto:ups@192.168.1.70">ups@192.168.1.70</a> 1 monuser secret slave</div><div><br></div><div>My SHUTDOWNCMD looks like this:</div><div><br></div><div>SHUTDOWNCMD "getUPSstatus <a href="mailto:ups@192.168.1.70" target="_blank">ups@192.168.1.70</a> ; logger -t upsmon.conf \"UPS status is $UPSstatus\" ; /sbin/shutdown -h +0" <br></div><div><br></div><div>Would that not work? I believe that's what you told me to put there.</div><div><br></div><div>I think I've definitely made a mistake though, in that I have not set RUN_AS_USER in upsmon.conf and set up the appropriate permissions. I read somewhere that it would then run as user NOBODY and not be able read upsmon.conf. Is that true? Could that be the whole problem? <br></div><div><br></div><div>I'm thinking I need to put in..</div><div><br></div><div>RUN_AS_USER nut<br></div><div><br></div><div>in upsmon.conf and then do:</div><div><br></div><div>$ sudo chown -R root:nut /etc/nut<br>$ sudo chmod 0770 /etc/nut<br>$ sudo chmod 0640 /etc/nut/*<br></div><div><br></div><div>Does that last part look correct to you? I think what I will do is put the contents of the files in pastebin and send the links to you. May be easier that way.</div><div><br></div><div>Thanks,</div><div><br></div><div>Todd</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 7, 2020 at 5:47 AM Roger Price <<a href="mailto:roger@rogerprice.org">roger@rogerprice.org</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">On Thu, 6 Aug 2020, Todd Benivegna wrote:<br>
<br>
> ... I grep’d the syslog and here’s the results:<br>
<br>
Could you also grep for upsd and upsmon in the NAS log? Is this possible?<br>
<br>
> proton@proton:~$ sudo grep upsmon /var/log/syslog<br>
> Aug 6 19:19:09 proton upsmon[1552]: UPS <a href="mailto:ups@192.168.1.70" target="_blank">ups@192.168.1.70</a> on battery<br>
> Aug 6 19:19:14 proton upsmon[1552]: UPS <a href="mailto:ups@192.168.1.70" target="_blank">ups@192.168.1.70</a> on line power<br>
> Aug 6 19:19:44 proton upsmon[1552]: UPS <a href="mailto:ups@192.168.1.70" target="_blank">ups@192.168.1.70</a>: forced shutdown in progress<br>
> Aug 6 19:19:44 proton upsmon[1552]: Executing automatic power-fail shutdown<br>
<br>
So proton is a slave, and is being made to shut down.<br>
<br>
> Aug 6 19:19:45 proton upsmon[1552]: Auto logout and shutdown proceeding<br>
> Aug 6 19:19:50 proton upsmon.conf: UPS status is <br>
<br>
The variable USPstatus set by getUPSstatus was not in the environment for the <br>
echo command. To get this to work, you'll have to put the upsc commands <br>
directly in SHUTDOWNCMD, or create a short script and call the script in <br>
SHUTDOWNCMD.<br>
<br>
> Aug 6 19:19:59 proton upsmon[1545]: UPS: <a href="mailto:ups@192.168.1.70" target="_blank">ups@192.168.1.70</a> (slave) (power value 1)<br>
<br>
Could you tell us your topology? Which system is master and which is slave? <br>
Do you have multiple slaves? The decision to shutdown is taken by the master, <br>
not the slave.<br>
<br>
Is it possible to run script <a href="http://rogerprice.org/NUT/nut-report" rel="noreferrer" target="_blank">http://rogerprice.org/NUT/nut-report</a> on the NAS? <br>
Could you run the script on one of the slaves and post the result here?<br>
<br>
Roger_______________________________________________<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></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><b>Todd Benivegna</b> // <a href="mailto:todd@benivegna.com" target="_blank">todd@benivegna.com</a><br></div></div></div></div>