<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="" style="font-family: ArialMT;"><blockquote type="cite" class="">After the first test and the NAS is restarted I had to change the setting battery.charge.low again to 80 <br class=""></blockquote><br class="">Does the NAS DSM reset battery.charge.low to 10 or is it internal to the UPS?  You will have to experiment by disconnecting the UPS control lead from the NAS and connecting it (if possible) to the Mac.  After setting to 80 and a power off-on cycle is the value 80 or 10?</blockquote><br class="" style="font-family: ArialMT;"></div><div class="">Ok I will have try this.  I am also searching on the NAS if it set somehow. </div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><blockquote type="cite" class="">3. Users from the NAS are warned, not yet the Mac user.  Only when executing automatic power-fail shutdown. <br class=""></blockquote><br class="">In upsmon.conf on the Mac, what are the values of NOTIFYMSG ONBATT and NOTIFYFLAG ONBATT?  Does program wall work on the Mac? It fails on a lot of Linux boxes with graphical interfaces - to get a message to the user, you have to use notify-send, which means setting up upssched.</blockquote><br class=""></div><div class=""><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><br class=""></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;"># NOTIFYMSG ONLINE<span class="Apple-tab-span" style="white-space: pre;">    </span>"UPS %s on line power"</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;"># NOTIFYMSG ONBATT<span class="Apple-tab-span" style="white-space: pre;">    </span>"UPS %s on battery"</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;"># NOTIFYMSG LOWBATT<span class="Apple-tab-span" style="white-space: pre;">      </span>"UPS %s battery is low"</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;"># NOTIFYMSG FSD<span class="Apple-tab-span" style="white-space: pre;">              </span>"UPS %s: forced shutdown in progress"</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;"># NOTIFYMSG COMMOK<span class="Apple-tab-span" style="white-space: pre;">     </span>"Communications with UPS %s established"</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;"># NOTIFYMSG COMMBAD<span class="Apple-tab-span" style="white-space: pre;"> </span>"Communications with UPS %s lost"</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;"># NOTIFYMSG SHUTDOWN<span class="Apple-tab-span" style="white-space: pre;">       </span>"Auto logout and shutdown proceeding"</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;"># NOTIFYMSG REPLBATT<span class="Apple-tab-span" style="white-space: pre;">   </span>"UPS %s battery needs to be replaced"</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;"># NOTIFYMSG NOCOMM<span class="Apple-tab-span" style="white-space: pre;">     </span>"UPS %s is unavailable"</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;"># NOTIFYMSG NOPARENT<span class="Apple-tab-span" style="white-space: pre;"> </span>"upsmon parent process died - shutdown impossible"</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><br class=""></div></div><div class=""><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><br class=""></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255); min-height: 13px;"><span class="" style="font-variant-ligatures: no-common-ligatures;"></span><br class=""></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;">NOTIFYFLAG ONLINE EXEC</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;">NOTIFYFLAG ONBATT EXEC</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;">NOTIFYFLAG LOWBATT EXEC</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;">NOTIFYFLAG NOCOMM EXEC</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;">NOTIFYFLAG COMMBAD IGNORE </span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;">NOTIFYFLAG COMMOK IGNORE</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;">NOTIFYFLAG SHUTDOWN IGNORE</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;">NOTIFYFLAG FSD EXEC</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;">NOTIFYFLAG NOPARENT SYSLOG</span></div></div><div class=""><span class="" style="font-variant-ligatures: no-common-ligatures;"><br class=""></span></div><div class=""><br class=""></div><div class=""><blockquote type="cite" class="">Does program wall work on the Mac?</blockquote><br class=""></div><div class="">file testwall:</div><div class=""><br class=""></div><div class="">hallo </div><div class=""><br class=""></div><div class="">tried: wall testwall and result:</div><div class=""><br class=""></div><div class=""><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;">Broadcast Message from                                        </span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;">        (/dev/ttys002) at 11:28 CEST...                                        </span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255); min-height: 13px;" class=""><span class="" style="font-variant-ligatures: no-common-ligatures;">                                                                               </span><br class="webkit-block-placeholder"></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;">hallo<span class="Apple-tab-span" style="white-space: pre;">        </span>                          </span></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">So wall work in a terminal only. </div><div class=""><br class=""></div><div class=""><blockquote type="cite" class="">It fails on a lot of Linux boxes with graphical interfaces - to get a message to the user, you have to use notify-send, which means setting up upssched.<br class=""></blockquote><br class=""></div><div class=""><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;"># NOTIFYCMD <command></span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;">#</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;"># upsmon calls this to send messages when things happen</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;">#</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;"># This command is called with the full text of the message as one argument.</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;"># The environment string NOTIFYTYPE will contain the type string of</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;"># whatever caused this event to happen.</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;">#</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;"># Note that this is only called for NOTIFY events that have EXEC set with</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;"># NOTIFYFLAG.  See NOTIFYFLAG below for more details.</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;">#</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;"># Making this some sort of shell script might not be a bad idea.  For more</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;"># information and ideas, see pager.txt in the docs directory.</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;">#</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;"># Example:</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;"># NOTIFYCMD /usr/local/ups/bin/notifyme</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255); min-height: 13px;"><span class="" style="font-variant-ligatures: no-common-ligatures;"></span><br class=""></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;">NOTIFYCMD /sw/sbin/upssched</span></div></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;"><br class=""></span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;"><br class=""></span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;"><br class=""></span></div><span class="">Results second test 1 after changing on NAS, Control Panel Hardware & Power, Power recovery, Restart automatically after a power failure. And changing on the Mac, system preferences, energy saver, start up automatically after a power failure. </span><div class=""><br class=""></div><div class=""><div class=""><span class=""><br class=""></span></div><div class=""><span class="">1 Pull power cord</span></div><div class=""><span class=""><br class=""></span></div><div class=""><span class="">2 Ups beeps NAS and Mac work</span></div><div class=""><span class=""><br class=""></span></div><div class=""><span class="">3 NAS users warned. Mac not</span></div><div class=""><span class=""><br class=""></span></div><div class=""><span class="">4 low bat, first slave Mac shutdown.  Than Master NAS shutdown. ( report in log NAS, server is on battery, server going to safe shutdown) </span></div><div class=""><span class=""><br class=""></span></div><div class=""><span class="">5 UPS shutdown after 29 seconds. </span></div><div class=""><span class=""><br class=""></span></div><div class=""><span class="">6 reconnect power </span></div><div class=""><span class=""><br class=""></span></div><div class=""><span class="">7 NAS now starts up but Mac doesn’t </span></div><div class=""><span class=""><br class=""></span></div><div class=""><span class=""><br class=""></span><span class=""><br class=""></span><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class="">Kind Regards,</div><div class=""><br class=""></div></div></div></div>Rob<br class=""></body></html>