Hi there, we have an APC SMART-UPS 2200 connected to a Debian system, and we would like apcupsd to shut the machine down if battery charge drops down a certain level (for testing purposes we are using a level of 99%.)
Unfortunately apcupsd doesn't shut the machine down. The serial connection to the UPS is definitely ok, because we receive meaningful info in /etc/apcupsd.status (a horrible place for a status file, BTW, I would rather place it in a more appropriate place like /var/run.) Example apcupsd.status read-out: APC : Dec 07 15:12:26 CABLE : APC Cable 940-0095A UPSMODEL : SMART-UPS 2200 UPSMODE : Stand Alone UPSNAME : UPS_IDEN ULINE : 226.2 Volts MLINE : 230.1 Volts NLINE : 226.2 Volts FLINE : 50.0 Hz VOUTP : 226.2 Volts LOUTP : 005.2 Load Capacity BOUTP : 55.0 Volts BCHAR : 100.0 Batt. Charge TIME : 202.0 Minutes SENSE : HIGH WAKEUP : 000 Cycles SLEEP : 020 Cycles LOTRANS : 196.0 Volts HITRANS : 253.0 Volts CHARGE : 000.0 Percent BFAIL : 0x08 Status Flag UTEMP : 39.6 C Internal ALARM : Always LASTEVNT : POWER FAILURE LOWBATT : 02 Minutes DIPSW : 0x0000 This is our apcupsd.conf file: ====================== 8x ======================== ## apcupsd.conf v1.0 ## # # "apcupsd" POSIX config file # Updated for Debian/GNU Linux by Leon Breedt ([EMAIL PROTECTED]) # CONTROL <string> CONTROL /usr/sbin/powersc # UPSCABLE [ simple | smart | # 940-00(20B,23A,24B,24C,24G,95A,95C) | # 940-15(24C) | # ether ] # UPSCABLE 940-0095A # UPSTYPE [ backups | sharebasic | netups | # backupspro | smartvsups | # newbackupspro | backupspropnp | # smartups | matrixups | sharesmart ] # UPSTYPE backupspropnp # UPSCLASS [ standalone | shareslave | sharemaster | netslave | netmaster ] #UPSCLASS standalone # 19991207/rabe UPSCLASS sharemaster # UPSMODE [ disable | share | net | sharenet ] UPSMODE disable #DEVICE <string> /dev/<serial port> DEVICE /dev/ttyS1 #LOCKFILE <path to lockfile> LOCKFILE /var/lock #ACCESS <string> [ true | false ] Enable Access Support #ACCESS true # 19991207/rabe ACCESS false # ANNOY <int> <30> <0> disables ANNOY 30 # DELAY <int> <60> <0> disables DELAY 60 # NOLOGON <string> [ disable | timeout | percent | minutes | always ] NOLOGON timeout # PROCFS <int> <120> <0> disables <update rate procfs-type of current status> PROCFS 30 # LOGGING <int> <500> <0> disables <rate update log file of current status> LOGGING 15 # TIMEOUT <time is seconds to run on UPS, powerfails> # TIMEOUT 900 TIMEOUT 90 # BATTERYLEVEL <precent of battery charge for shutdown> 10 #BATTERYLEVEL 90 # 19991207/rabe: testing BATTERYLEVEL 99 # MINUTES <time in minutes of remainning battery charge before shutdown> 5 #MINUTES 175 # SENSITIVITY <char> H,M,L default H SENSITIVITY H # WAKEUP <int> 0,60,180,300 Cycles default 0 WAKEUP 60 # SLEEP <int> 20,180,300,600 Cycles default 20 SLEEP 20 # LOTRANSFER <int> 0,1,2,3 default 2 LOTRANSFER 2 # HITRANSFER <int> 0,1,2,3 default 2 HITRANSFER 3 # RETURNCHARGE <int> 0,1,2,3 default 3 RETURNCHARGE 1 # BEEPSTATE <char> 0,T,L,N default 0 BEEPSTATE N # SELFTEST <string> 336,168,ON,OFF default 336 SELFTEST 336 # # UPSNAME <string> UPSNAME UPS_IDEN # REPLACE <string> date format mm/dd/yy #REPLACE 12/13/93 # BATTCMD <string> #BATTCMD # TIMECMD <string> #TIMECMD # LOADCMD <string> #LOADCMD # LIMITCMD <string> #LIMITCMD # PWRCMD <string> PWRCMD /usr/sbin/powersc DOSHUTDOWN # RETCMD <string> #RETCMD # REMOTECMD <string> #REMOTECMD # NETTIME <int> #NETTIME 100 # NETPORT <int> #NETPORT 6666 # MASTER <string> #MASTER # SLAVE <string> #SLAVE #SLAVE #SLAVE #SLAVE #SLAVE #SLAVE #SLAVE #SLAVE #SLAVE #SLAVE # USERMAGIC <string> #USERMAGIC # HTTPACCESS [ true | false ] enable web-interface - defaults to false HTTPACCESS true # HTTPPORT <port> port to use for interface - defaults to 1999 HTTPPORT 1999 ====================== 8x ======================== Any idea what could be going wrong or what we could be doing wrong? apcupsd is not exactly very easy to debug, since debugging option "-d" seems only to debug networking stuff. :-( Thanks for your time and possibly help, Ralf -- Sign the EU petition against SPAM: L I N U X .~. http://www.politik-digital.de/spam/ The Choice /V\ of a GNU /( )\ Generation ^^-^^

