Hi Sergey, *** first, please keep the traffic on the list *** ie, keep nut-upsuser copied of our discussion!
2011/7/19 Sergey Talchuk <[email protected]> > Hi Arnaud, > > Sorry. My mistake. > > OB ups.status condition is handled correct (see attachment) > excellent, thanks. I still see that you're using timers. Have you also tried reaching the low battery (ups.status = OB LB) to trigger shutdown? Otherwise, please also test this: http://www.networkupstools.org/docs/user-manual.chunked/ar01s06.html#Shutdown_design finally, I've just added an entry in the development version of the HCL (r3140). It will show up in the next release. But I'm not sure about OL ups.status, since 'upsc powerex' output didn't > give me anything like 'battery.charge=?' > check the blazer manpage for the solution: http://www.networkupstools.org/docs/man/blazer.html and more specially the "BATTERY CHARGE" section. cheers, Arnaud -- Linux / Unix Expert R&D - Eaton - http://powerquality.eaton.com Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer - http://www.debian.org Free Software Developer - http://arnaud.quette.free.fr/
=== ON BATTERY $ upsc powerex battery.voltage: 26.50 battery.voltage.nominal: 24.0 beeper.status: enabled device.type: ups driver.name: blazer_usb driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.parameter.productid: 5161 driver.parameter.subdriver: cypress driver.parameter.vendorid: 0665 driver.version: 2.6.0 driver.version.internal: 0.03 input.current.nominal: 5.0 input.frequency: 50.1 input.frequency.nominal: 50 input.voltage: 7.4 input.voltage.fault: 7.4 input.voltage.nominal: 220 output.voltage: 220.4 ups.delay.shutdown: 30 ups.delay.start: 180 ups.load: 12.0 ups.productid: 5161 ups.status: OB ups.type: offline / line interactive ups.vendorid: 0665 --- Jul 19 20:36:24 openSuSE blazer_usb[1444]: Startup successful Jul 19 20:36:24 openSuSE upsd[1447]: listening on 127.0.0.1 port 3493 Jul 19 20:36:24 openSuSE upsd[1447]: Connected to UPS [powerex]: blazer_usb-powerex Jul 19 20:36:24 openSuSE upsd[1448]: Startup successful Jul 19 20:36:24 openSuSE upsmon[1451]: Startup successful Jul 19 20:36:24 openSuSE upsd[1448]: User [email protected] logged into UPS [powerex] Jul 19 20:37:24 openSuSE upsmon[1452]: UPS powerex@localhost on battery Jul 19 20:37:24 openSuSE upssched[1458]: Timer daemon started Jul 19 20:37:24 openSuSE upssched[1458]: New timer: onbatt1 (10 seconds) Jul 19 20:37:24 openSuSE upssched[1458]: New timer: earlyshutdown (120 seconds) Jul 19 20:37:34 openSuSE upssched[1458]: Event: onbatt1 Jul 19 20:37:34 openSuSE upssched-cmd: on battery. The UPS has been on battery for a while, logout right now! Jul 19 20:39:24 openSuSE upssched[1458]: Event: earlyshutdown Jul 19 20:39:24 openSuSE upssched-cmd: forced shutdown. UPS on battery too long, forced shutdown! Jul 19 20:39:24 openSuSE upsmon[1452]: Signal 10: User requested FSD Jul 19 20:39:24 openSuSE upsd[1448]: Client [email protected] set FSD on UPS [powerex] Jul 19 20:39:24 openSuSE upsmon[1452]: Executing automatic power-fail shutdown Jul 19 20:39:24 openSuSE upsmon[1452]: Auto logout and shutdown proceeding Jul 19 20:39:29 openSuSE shutdown[1470]: shutting down for system halt Jul 19 20:39:29 openSuSE init: Switching to runlevel: 0
_______________________________________________ Nut-upsuser mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser

