Hi Dan,<br><br>first, just to be sure: are you using newmge-shut from NUT 2.6.4?<br><br><div class="gmail_quote">2012/8/3 Daniel O'Connor <span dir="ltr"><<a href="mailto:doconnor@gsoft.com.au" target="_blank">doconnor@gsoft.com.au</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On 03/08/2012, at 17:31, Arnaud Quette <<a href="mailto:aquette.dev@gmail.com">aquette.dev@gmail.com</a>> wrote:<br>
>> > I tried mge-shut in 2.6 with no change, but newmge-shut with 2.6 showed this parameter, thanks!<br>
>><br>
>><br>
>> Unfortunately it doesn't appear to have any effect, ie..<br>
>> Aug 02 11:34:04 ups1@localhost upslog[1524] load: 18 temp: NA voltage: 0.0 recharge: 65 frequency: 0.0 status: OB DISCHRG<br>
>> Aug 02 11:39:04 ups1@localhost upslog[1524] load: 18 temp: NA voltage: 0.0 recharge: 50 frequency: 0.0 status: OB DISCHRG<br>
>> Aug 02 11:39:14 ups1@localhost upslog[1524] load: 18 temp: NA voltage: 0.0 recharge: 50 frequency: 0.0 status: FSD OB DISCHRG LB<br>
>> Aug 02 11:53:01 ups1@localhost upslog[1524] load: 17 temp: NA voltage: 225.0 recharge: 8 frequency: 49.0 status: OL CHRG<br>
>> Aug 02 11:58:01 ups1@localhost upslog[1524] load: 18 temp: NA voltage: 225.0 recharge: 11 frequency: 50.0 status: OL CHRG<br>
>><br>
>> [battery.charge.low]<br>
>> Remaining battery level when UPS switches to LB (percent)<br>
>> Type: STRING<br>
>> Value: 50<br>
>><br>
>> [battery.charge.restart]<br>
>> Minimum battery level for restart after power off (percent)<br>
>> Type: STRING<br>
>> Value: 60<br>
>><br>
> as stated in the description, you must go through a "power off" or status off, for this to work<br>
> Ie, once you reach "FSD OB LB", the shutoff (UPS poweroff) command must be applied to the UPS.<br>
> once off, and the power is back, it will wait for battery.charge.restart level to be reached before reapplying power to its output.<br>
> for manual / unit testing, you must issue an "upscmd ... load.off | shutdown.return" or equivalent, to get the OFF ups.status<br>
<br>
</div>The power was removed and the shutdown script calls 'upsdrvctl stop' and then 'upsdrvctl shutdown' - is that the right thing to do?<br></blockquote><div><br>the very right thing to do is to first fully stop NUT (including driver(s), upsd and upsmon).<br>
then call 'upsdrvctl shutdown'.<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It seems the UPS does not turn itself off properly.<br></blockquote><div><br>
depending on the exact timing of your sequence, you may be running into a
 race condition, where the previous shut driver is not yet stop, and the
 new ('shutdown') instance is already started.<br>
<br>
also, it seems your battery.charge.low is set to 50. can you please 
confirm it, since it's not in ups.conf (so probably done through upsrw)?<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">
>> I have the following ups.conf entry..<br>
>> [ups1]<br>
>>         driver = newmge-shut<br>
>>         port = /dev/cuau1<br>
>>         ondelay = 190<br>
>>         offdelay = 120<br>
>><br>
>> The delay is because I am using FreeBSD and it does not remount the disks read only - the shutdown script calls 'upsdrvctl sutdown' when everything is still mounted read/write.<br>
>><br>
> isn't 'upsdrvctl shutdown' called around the end of the halt script, once HD are in RO mode, or just before?<br>
<br>
</div>Just before, the script is called during shutdown but everything is still RW. FreeBSD does not remount things RO and run some scripts, hence the offdelay/ondelay being relatively large.<br></blockquote></div><br>so there are 2 things:<br>
1) fix the shutoff sequence to have the UPS powered off when needed<br>2) solve the battery.charge.restart issue<br clear="all"><br>@Fred: could you please test the following with an EX 11 RT:<br>1) simple shutoff (Ie, just call "newmge-shut -k..." or "upsdrvctl shutdown") and check that the UPS is powered off,<br>
2) check that "battery.charge.restart" variable is available on this unit, and behaving correctly (Ie, if set to 30, the UPS will restart only once battery.charge reaches 30 %).<br><br>cheers,<br>Arnaud<br>-- <br>
Linux / Unix / Opensource Engineering Expert - Eaton - <a href="http://opensource.eaton.com" target="_blank">http://opensource.eaton.com</a><br>Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org" target="_blank">http://www.networkupstools.org</a><br>
Debian Developer - <a href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>Free Software Developer - <a href="http://arnaud.quette.fr" target="_blank">http://arnaud.quette.fr</a><br><br>