<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><blockquote type="cite" class="">Yes, See the User Manual <a href="http://networkupstools.org/docs/user-manual.pdf" class="">http://networkupstools.org/docs/user-manual.pdf</a> chapter 6.3 "Configuring automatic shutdowns for low battery events”.</blockquote><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><blockquote type="cite" class="">The NUT documentation is not always clear, and it looks as if the Synology is even less clear.  You must distinguish carefully between "system shutdown" and "(delayed) UPS shutdown".  The UPS is turned off _after_ the system.  There is a delay between the moment the upsdrvctl shutdown command is given and the moment the UPS shuts down.  The default is 20 seconds, but you may have to increase this.</blockquote><br class=""></div><div class="">I have read 6.3. I don’t see the delayed shutdown here, more about low battery events </div><div class=""><br class=""></div><div class="">What I notice in the upsmon.conf on the Mac which is the slave:</div><div class=""><br class=""></div><span class="">POWERDOWNFLAG /etc/killpower </span><div class=""><span class=""><br class=""></span></div><div class=""><span class="">I don’t think this is necessary? </span></div><div class=""><span class=""><br class=""></span></div><div class=""><span class="">When I start on the Mac : sudo upsmon -D </span></div><div class=""><span class=""><br class=""></span></div><div class=""><span class="">I can see: </span></div><div class=""><span class=""><br class=""></span></div><span class="">sudo upsmon -D<br class="">Network UPS Tools upsmon 2.7.4<br class="">kill: No such process<br class="">   0.000000<span class="Apple-tab-span" style="white-space:pre">  </span>UPS: ups@<ip address> (slave) (power value 1)<br class="">   0.000791<span class="Apple-tab-span" style="white-space:pre">       </span>Using power down flag file /etc/killpower<br class="">   0.001240<span class="Apple-tab-span" style="white-space:pre"> </span>debug level is '1'<br class="">   0.013266<span class="Apple-tab-span" style="white-space:pre">        </span>Trying to connect to UPS [ups@<ip address>]<br class="">   0.014898<span class="Apple-tab-span" style="white-space:pre"> </span>Logged into UPS ups@<ip address><br class=""><br class="">There is also a message:<br class=""><br class="">kill: no such process. what does it mean? <br class=""><br class="">Also I changed on the Mac, upsmon.conf :<br class=""><br class="">SHUTDOWNCMD "/sbin/shutdown -h +0” which was before SHUTDOWNCMD ""<br class=""><br class="">SHUTDOWNCMD “” Didn’t make sense to me. <br class=""><br class=""><blockquote type="cite" style="font-family: Arial; font-size: 14px;" class="">You will need the utility programs upsrw and upscom which are part of NUT, but they should be available in the Mac.<br class=""></blockquote><br class="">upsrw is available on the Mac:</span><div class=""><span class=""><br class=""></span></div><div class=""><span class=""><br class=""></span></div><div class=""><span style="font-family: Menlo; font-size: 11px; background-color: rgb(255, 255, 255);" class="">upsrw -s battery.charge.low=80 -u upsmaster -s sekret UPS</span></div><div class=""><span class=""><br class=""></span></div><div class=""><span class="">I suppose I have to use -u for user? Which user? and -p  for password? </span></div><div class=""><span class="">What does -s sekret UPS means? -s means variable to be changed but I don’t know which variable this is, sekret. </span></div><div class=""><span class=""><br class=""><br class="">Kind regards,<br class=""><br class="">Rob <br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><blockquote type="cite" class="">On 8 Jun 2017, at 11:30, Roger Price <<a href="mailto:roger@rogerprice.org" class="">roger@rogerprice.org</a>> wrote:<br class=""><br class="">On Wed, 7 Jun 2017, Robbie van der Walle wrote:<br class=""><br class=""><blockquote type="cite" class="">     Out of curiosity, when you shut down the NAS, do you run the<br class="">     command "upsdrvctl shutdown" ?  Do you see or hear anything to<br class="">     suggest that the delayed UPS shutdown has happened?<br class="">I don’t know where to search to answer this. The delayed UPS shutdown means that Synology NAS will turn off the UPS after the delay? <br class=""></blockquote><br class="">Yes, See the User Manual <a href="http://networkupstools.org/docs/user-manual.pdf" class="">http://networkupstools.org/docs/user-manual.pdf</a> chapter 6.3 "Configuring automatic shutdowns for low battery events".<br class=""><br class=""><blockquote type="cite" class="">ups.delay.shutdown Interval to wait after shutdown with delay command (seconds). <br class="">Shutdown of what?  I don’t know what is means. <br class=""></blockquote><br class="">The NUT documentation is not always clear, and it looks as if the Synology is even less clear.  You must distinguish carefully between "system shutdown" and "(delayed) UPS shutdown".  The UPS is turned off _after_ the system.  There is a delay between the moment the upsdrvctl shutdown command is given and the moment the UPS shuts down.  The default is 20 seconds, but you may have to increase this.<br class=""><br class=""><blockquote type="cite" class="">The commando upsrw cannot be found on the Synology NAS? <br class=""></blockquote><br class="">I understand from <a href="https://tellini.info/2014/09/connecting-a-synology-diskstation-to-a-nut-server/" class="">https://tellini.info/2014/09/connecting-a-synology-diskstation-to-a-nut-server/</a> that the NUT configuration is hard coded into the NAS, and I suspect that the configuration is more or less broken.<br class=""><br class="">You will need the utility programs upsrw and upscom which are part of NUT, but they should be available in the Mac.<br class=""><br class="">Roger<br class="">_______________________________________________<br class="">Nut-upsuser mailing list<br class=""><a href="mailto:Nut-upsuser@lists.alioth.debian.org" class="">Nut-upsuser@lists.alioth.debian.org</a><br class="">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser<br class=""></blockquote><br class=""></span></div></body></html>