<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">
<div dir="auto">I'm hoping that someone can shed some light on this… I have a Synology NAS (DS416) that has a feature where you can enable a “Network UPS Server” which is a NUT server.  I have been trying to get the Synology to shut down three Ubuntu 20.04 servers that I have. While it does work when I test it out manually, sometimes when I am away and the power goes out briefly, the servers shut down when the power has been out for like five seconds (or less sometimes).  When I come home and turn on the servers, they boot up but then immediately shut down again.  This happens until I restart the Synology; then they will boot up and stay up.  I‘d like them to stay up a little longer than that.  Ideally, I’d like them to stay up until battery is low, then shut down, then all come back on when power is restored. <br />
<br />
This is what I have done so far:  I have enabled "Enable Network UPS server" on the Synology and have installed NUT on each of my servers running Ubuntu 20.04.  I have added the appropriate IPs to the Permitted DiskStation Devices” list.  I have also tried setting it on the Synology to shut down when battery is low and after a specified amount of time (20 minutes).  Either way, the servers will shut down after like 5 seconds or less.  I have edited upsmon.conf and added my MONITOR line and setup systemctl so that the nut-client service starts automatically at boot.  I have no made any other changes to the file; the rest is still set to defaults.<br />
<br />
So I'm not sure where exactly the problem is; if it's the Synology or NUT on Ubuntu.  Strange thing is, when I manually test by shutting off the power briefly (or for a few seconds, or a few minutes - I've tried everything;) every time I do a test, everything works perfect and they will shut down when they are supposed to.  Seems to only happen when there is a passing storm that knocks the power out for a few seconds.<br />
<br />
Also, this is what I found in the syslog on one of the machines:<br />
Jul 31 18:33:29 plex upsmon[970]: UPS ups@192.168.1.70 on battery<br />
Jul 31 18:33:34 plex upsmon[970]: UPS ups@192.168.1.70 on line power<br />
Jul 31 18:34:04 plex upsmon[970]: Executing automatic power-fail shutdown<br />
Jul 31 18:34:04 plex upsmon[970]: Auto logout and shutdown proceeding<br />
Jul 31 18:34:09 plex systemd[1]: nut-monitor.service: Succeeded.<br />
<br />
If I’m not mistaken, it is shutting down after power came back on line….?<br />
<br />
Any help would be greatly appreciated!<br />
<br />
Details:  Nut version 2.7.4-11ubuntu4, Ubuntu 20.04, NUT installed from package, Synology DS416, UPS is APC Back-UPS NS 650M1</div>
</div>
<div name="messageSignatureSection"><br />
<p style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Helvetica Neue"; color: rgb(34, 34, 34);">--</p>
<p style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Helvetica Neue"; color: rgb(51, 51, 51);"><span style="color: #222222"><b>Todd Benivegna</b></span> <span style="color: #222222">//</span> <a href="mailto:todd@benivegna.com">todd@benivegna.com</a></p>
</div>
</body>
</html>