<div dir="ltr">Sorry, I guess it is  <i><b>/usr/syno/bin/synoups</b></i></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 14, 2020 at 2:27 PM Todd Benivegna <<a href="mailto:todd@benivegna.com">todd@benivegna.com</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"><div dir="ltr">I found something interesting that I think may apply here.  Check this out...<div><br></div><div><br><div><br></div><div><a href="https://forum.synology.com/enu/viewtopic.php?f=19&t=73960&hilit=ups+slave" target="_blank">https://forum.synology.com/enu/viewtopic.php?f=19&t=73960&hilit=ups+slave</a> </div><div><br></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><i>I have the latest version of the Windows port of NUT (A UPS management package) installed on my Windows 7 machine. The UPS I am using is a very old APC BK650M which is controlled and sends its status via a special serial cable to the Windows machine.</i></div></div><div><i><br></i></div><div><i>I also have my Synology NAS (which uses NUT for its UPS management) connected over the local network as a slave to the Windows NUT master. The Synology slave is configured to immediately go into "safe mode" whenever an FSD (system shutdown message) or OB+LB (On-Battery and Low Battery) indication is received from the Windows NUT master.</i></div><div><i><br></i></div><div><i>The Windows master machine responds correctly to OB+LB events, correctly shutting down the master machine. The Synology box also responds to the OB+LB events from the master correctly and goes into "safe mode", the expected behavior.</i></div><div><i><br></i></div><div><i><b>The problem comes when using the command "upsmon -c fsd" on the Windows NUT master to force a UPS system shutdown to test the system. The Windows master shuts down correctly, but the Synology NAS slave does not go into "safe mode" when it receives the FSD notification.</b></i></div><div><i><br></i></div><div><i>I was wondering if there is a bug in the Windows port of NUT such that the FSD notification is not sent to the slaves when "upsmon -c fsd" is executed.</i></div><div><i><br></i></div><div><i><b>I then looked into the Synology NAS NUT configuration more closely.</b></i></div><div><i><br></i></div><div><i><b>When configured as a NUT slave device, the Synology responds to an FSD notification from the NUT master by calling a script defined in the Synology's /usr/syno/etc/ups/upssched.conf with an "fsd" argument. The script is /usr/syno/bin/synoups.</b></i></div><div><i><b><br></b></i></div><div><i><b>Before causing the NAS to go into "safe mode", the script first retrieves the status of the NUT master with upsc. If the status is "OL" (on-line), the script aborts any action for the received FSD notification. Since the UPS is actually on-line and not in a low battery state when the test FSD is sent from the Windows master, the Synology will not enter "safe mode" - it does nothing.</b></i></div><div><i><b><br></b></i></div><div><i><b>If the device was in OB (on battery), LB (low battery), or OB+LB mode, the OL check would fail and the Synology would enter "safe mode", as expected.</b></i></div><div><i><b><br></b></i></div><div><i><b>I tried commenting out the OL status check in the Synology script. The Synology slave then enters "safe mode" when a "upsmon -c fsd" is issued from the Windows master, as expected.</b></i></div><div><i><b><br></b></i></div><div><i><b>Interesting that Synology disables the test functionality on the NAS.</b></i></div><div><i><b><br></b></i></div></blockquote>Roger, do you know where in /usr/syno/etc/ups/upssched.conf the OL status check is as mentioned above?  I'd like to comment that out and see if it works.  I'd really like to test everything out without waiting for the battery to run out, but if not then I will do that; will just take about 45 minutes or so.  I would never have guessed that it would do a check like that, which basically prevents the "upsmon -c fsd" test!</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 14, 2020 at 12:30 PM Todd Benivegna <<a href="mailto:todd@benivegna.com" target="_blank">todd@benivegna.com</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">



<div>
<div name="messageBodySection">
<div dir="auto">Thanks Larry, no problem. I appreciate the input. Whenever you get a chance I’d really like to compare notes with someone who has NUT and a Synology to see why the heck mine doesn’t work! ;). I’m also using my Pi as the master like you. Thanks. <br>
<br>
Todd </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:rgb(34,34,34)"><b>Todd Benivegna</b></span> <span style="color:rgb(34,34,34)">//</span> <a href="mailto:todd@benivegna.com" target="_blank">todd@benivegna.com</a></p>
</div>
<div name="messageReplySection">On Aug 14, 2020, 11:55 AM -0400, Larry Fahnoe <<a href="mailto:fahnoe@fahnoetech.com" target="_blank">fahnoe@fahnoetech.com</a>>, wrote:<br>
<blockquote type="cite" style="border-left:thin solid grey;margin:5px;padding-left:10px">
<div dir="ltr">
<div dir="ltr">On Fri, Aug 14, 2020 at 10:31 AM Todd Benivegna <<a href="mailto:todd@benivegna.com" target="_blank">todd@benivegna.com</a>> wrote:<br></div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div name="messageBodySection">
<div dir="auto">I have not edited a single file, including anything to do with NUT, on the Synology via ssh.... ever. How is yours configured in the UI? Do you have it set to go into safe mode after a certain number minutes? <br></div>
</div>
</div>
</blockquote>
</div>
<div><br></div>
<div>Hi Todd,</div>
<div><br></div>
<div>I misunderstood (have only been casually reading this thread), I thought you had been editing files on the Synology, but good to know that it is still stock. I do not have access to my Synology appliances (away on travel) so I can't give you an accurate answer on how I have it configured. I will let you know in a few days (once I have access to them again).</div>
<div><br></div>
<div>--Larry </div>
<div><br></div>
--<br>
<div dir="ltr">
<div>Larry Fahnoe, Fahnoe Technology Consulting, fahnoe@FahnoeTech.com</div>
<div>           Minneapolis, Minnesota       <a href="http://www.FahnoeTech.com" target="_blank">www.FahnoeTech.com</a></div>
</div>
</div>
</blockquote>
</div>
</div>

</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><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>
</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>