On Wed, 14 Apr 2004, Paul Wardell wrote:

> I want to have mon monitor the AC status line of a UPS (DTR or DSR) and send
> an alert via Qpage at the loss of AC Power.  Any suggestions on how I can do
> this or is there a module already available to do this?

check out "apcupsd" or "nut", since they most likely have all the
code to talk to the ups:

    http://sourceforge.net/projects/apcupsd

    http://us2.networkupstools.org/features/

i have an apc ups hooked into my workstation via usb (i suspect the apc
rs232 interface is simliar), and the output of "apcaccess" from apcupsd
tells me stuff like this, which you could easily use in a mon monitor:


APC      : 001,034,0827
DATE     : Wed Apr 14 13:42:46 EDT 2004
HOSTNAME : uplift
RELEASE  : 3.10.6
VERSION  : 3.10.6 (30 May 2003) redhat
UPSNAME  : uplift
CABLE    : USB Cable
MODEL    : Back-UPS RS 1000
UPSMODE  : Stand Alone
STARTTIME: Tue Apr 06 13:13:45 EDT 2004
STATUS   : ONLINE 
LINEV    : 121.0 Volts
LOADPCT  :  25.0 Percent Load Capacity
BCHARGE  : 100.0 Percent
TIMELEFT :  35.1 Minutes
MBATTCHG : 5 Percent
MINTIMEL : 3 Minutes
MAXTIME  : 0 Seconds
LOTRANS  : 097.0 Volts
HITRANS  : 138.0 Volts
ALARMDEL : Always
BATTV    : 26.8 Volts
NUMXFERS : 0
TONBATT  : 0 seconds
CUMONBATT: 0 seconds
XOFFBATT : N/A
SELFTEST : NO
STATFLAG : 0x02000008 Status Flag
MANDATE  : 2003-03-07
SERIALNO : JB0310043809  
BATTDATE : 2001-09-25
NOMBATTV :  24.0
FIRMWARE : .g3 .D USB FW:g3 
APCMODEL : Back-UPS RS 1000
END APC  : Wed Apr 14 13:42:59 EDT 2004


_______________________________________________
mon mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to