[Nut-upsuser] UPSSched UPSNAME env variable

Alberto Di Fede alberto.difede at gmail.com
Wed Nov 14 09:41:20 UTC 2007


Hi,

here's a snippet of the configuration (on the server):

*upsmon.conf*

.................
*MONITOR UPS1 1 user pass master
MONITOR UPS2 1 user pass master
...........
NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC
NOTIFYFLAG ONLINE SYSLOG+WALL+EXEC
NOTIFYFLAG LOWBATT SYSLOG+WALL+EXEC
NOTIFYFLAG SHUTDOWN SYSLOG+WALL+EXEC
NOTIFYFLAG REPLBATT SYSLOG+WALL+EXEC
NOTIFYFLAG NOCOMM SYSLOG+WALL+EXEC
NOTIFYFLAG COMMOK SYSLOG+WALL+EXEC
NOTIFYFLAG COMMBAD SYSLOG+WALL+EXEC
.....
*

*upssched.conf*

*.........
AT ONBATT * START-TIMER onbattwarn 20
AT LOWBATT * EXECUTE onlowbattwarn
AT SHUTDOWN * EXECUTE onshutdown
AT REPLBATT * EXECUTE replacebattery
AT ONLINE * CANCEL-TIMER onbattwarn
AT ONLINE * EXECUTE onlineback
AT COMMBAD * START-TIMER oncommgone 45
AT NOCOMM * EXECUTE onnocomm
AT COMMOK * CANCEL-TIMER oncommgone
AT COMMOK * EXECUTE oncommback
.........
*

Alberto




On Nov 9, 2007 10:12 PM, Charles Lepple <clepple at gmail.com> wrote:

> On Nov 9, 2007 2:01 PM, Alberto Di Fede < alberto.difede at gmail.com> wrote:
> > To be more precise i'm monitoring 2 UPSes and using AT EVENT * OPERATION
> > handle  to manage events in upssched.conf.
> >
> > Am i wrong somewhere?
>
> Which events are you trying to catch?
>
> Can you post some of your configuration files?
>
> --
> - Charles Lepple
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20071114/0038b226/attachment.htm 


More information about the Nut-upsuser mailing list