<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Hi Charles,</div><div><br data-mce-bogus="1"></div><div>I don't think "ignorelb" will work in my case because that is set on the master. I am using the nut package in pfSense as the master and I want pfSense to shutdown on LOWBATT as designed.</div><div><br data-mce-bogus="1"></div><div> <!--StartFragment-->I tried using upssched.conf with timers on the netclients but that's not appropriate because ONBATT by itself doesn't tell you how much capacity remains in the UPS. You still need to invoke a script to check.<!--EndFragment--></div><div><br data-mce-bogus="1"></div><div>The netclients are what I need shutdown in a particular order.</div><div><br data-mce-bogus="1"></div><div> I'm currently using upsc to get ups.status = "OB" and battery.runtime < n (seconds).</div><div><br data-mce-bogus="1"></div><div>My UPS has about 16 minutes capacity when fully charged and a 19% load with all hardware on.</div><div>8 minutes remaining (battery.runtime <= 480) shut down VMs and hypervisors (clients).</div><div>5 minutes remaining (battery.runtime <= 300) shut down FreeNAS (client).</div><div>2 minutes remaining LOWBATT shut down the master.<!--EndFragment--> </div><div><br></div><div>Even if it's a kludge I guess it gets the job done. I was looking for native support for battery.runtime triggers.</div><div><br data-mce-bogus="1"></div><div>Thanks</div><div>Danny</div><div><br data-mce-bogus="1"></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>From: </b>"Charles Lepple" <clepple@gmail.com><br><b>To: </b>"Danny Siminiuk" <daniel@siminiuk.com><br><b>Cc: </b>"nut-upsuser" <nut-upsuser@alioth-lists.debian.net><br><b>Sent: </b>Tuesday, December 4, 2018 12:07:48 PM<br><b>Subject: </b>Re: [Nut-upsuser] battery.runtime<br></div><br><div data-marker="__QUOTED_TEXT__">On Dec 4, 2018, at 10:12 AM, Danny Siminiuk <<a href="mailto:daniel@siminiuk.com" target="_blank">daniel@siminiuk.com</a>> wrote:<br><div dir="ltr"><br></div><blockquote><div dir="ltr"><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000;" data-mce-style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000;"><div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000;" data-mce-style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000;"><div>First time poster but I've been using NUT periodically for a long time.</div><br><div>I was looking for a way to initiate a shutdown on servers when UPS battery runtime drops to a certain threshold. I never found a published way after much searching.</div><br><br></div></div></div></div></blockquote><div>Does “ignorelb” do what you need? See the description here: <a href="https://networkupstools.org/docs/man/ups.conf.html" target="_blank">https://networkupstools.org/docs/man/ups.conf.html</a></div><br><blockquote><div dir="ltr"><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000;" data-mce-style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000;"><br></div></div></blockquote><blockquote><div dir="ltr"><span>_______________________________________________</span><br><span>Nut-upsuser mailing list</span><br><span><a href="mailto:Nut-upsuser@alioth-lists.debian.net" target="_blank">Nut-upsuser@alioth-lists.debian.net</a></span><br><span><a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a></span></div></blockquote><br></div></div></body></html>