[Nut-upsuser] Upssched timers

Alessandro Vesely vesely at tana.it
Wed Sep 3 11:41:33 UTC 2008


Hi all,
I've installed the current debian nut package, i.e. version 2.0.4.

I've configured upssched with timers as follows:

AT ONBATT   black at localhost START-TIMER  runonbattery 5
AT ONLINE   black at localhost CANCEL-TIMER runonbattery
AT ONLINE   black at localhost START-TIMER  backonline 5
AT ONBATT   black at localhost CANCEL-TIMER backonline

The idea is to send alerts in case of "serious" power failures.
In facts, when I pull the plug I get the following:

Sep  2 21:01:20 north upsmon[25026]: UPS black at localhost on battery
Sep  2 21:01:20 north upssched[23063]: Timer daemon started
Sep  2 21:01:20 north upssched[23063]: New timer: runonbattery (5 seconds)
Sep  2 21:01:25 north upssched[23063]: Event: runonbattery

However, reinserting the plug I got no "backonline" event:

Sep  2 21:01:40 north upsmon[25026]: UPS black at localhost on line power
Sep  2 21:01:40 north upssched[23063]: Timer queue empty, exiting

Any idea what am I doing wrong?

TIA
Ale




More information about the Nut-upsuser mailing list