<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">On Mar 26, 2015, at 11:16 AM, Eric Cobb <<a href="mailto:Eric_Cobb@tripplite.com">Eric_Cobb@tripplite.com</a>> wrote:<br><div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin: 0in 0in 0.0001pt 0.5in; font-size: 12pt; font-family: 'Times New Roman', serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">The init script no longer works so a new script needs to be written to enable and disable the ups functionality, however it is communicating with the UPS properly. The question I have at this point is, is there a way I can set this so that once Line Power is disrupted it starts the shutdown command on the system versus waiting for the UPS battery to be “critical”?</span><o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p></o:p></span></div><br class="Apple-interchange-newline"></blockquote></div><div><br></div><div>I would probably just raise the low battery threshold, but to trigger the shutdown immediately, you could write a NOTIFYCMD script for upsmon that looks for the ONBATT event (corresponds to "OB" for ups.status):</div><div><br></div><div><a href="http://www.networkupstools.org/docs/man/upsmon.html">http://www.networkupstools.org/docs/man/upsmon.html</a></div><div><br></div><div><a href="http://www.networkupstools.org/docs/man/upsmon.conf.html">http://www.networkupstools.org/docs/man/upsmon.conf.html</a></div><div><br></div><div><br></div><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><div>-- </div><div>Charles Lepple</div><div>clepple@gmail</div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br></body></html>