/*
 * Permission is hereby granted, without written agreement and without
 * license or royalty fees, to use, copy, modify, and distribute this
 * software and its documentation for any purpose, provided that the
 * above copyright notice and the following two paragraphs appear in
 * all copies of this software.
 *
 * IN NO EVENT SHALL TOM KNIENIEDER BE LIABLE TO ANY PARTY FOR
 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
 * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF TOM
 * KNIENIEDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * TOM KNIENIEDER SPECIFICALLY DISCLAIMS ANY WARRANTIES,
 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
 * AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
 * ON AN "AS IS" BASIS, AND TOM KNIENIEDER HAS NO OBLIGATION TO
 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 */


Sun Nov 28 18:01:51 CET 1999 changed the name to apc-upsd tue
to a nameing conflict with another upsd package.

=================================================================

UPS daemon for APC ups.

Tested with:

Model:                   cable:              mode:	remark: 
------------------------------------------------------------
APC Smart-UPS 1000       "black" 940-0024C   smart		-
APC Smart-UPS 1000 v/s   "black" 940-0024C   smart		2
APC Back-UPS Pro 650     "gray"              dumb		1
APC Back-UPS ???         "gray"              dumb		1

[1] Attention. There are 2 different "gray" cables from
APC. I don't know the partnumber and i don't have anymore 
access to a "gray"-wired System.

[2] According to Chris Cappuccio, the v/s series
does not answer any extended info, it returns the 
status flag only (battery or ac powered). 

Configuration:

Model:                   smartmode: extendedsmart: 
--------------------------------------------------
APC Smart-UPS 1000       ON			ON
APC Smart-UPS 1000 v/s   ON			OFF
APC Back-UPS Pro 650     OFF		OFF
APC Back-UPS 			 OFF		OFF

--------------------------------------------------

Installation:

cd to src directory and do a make. edit upsd.conf
and copy it to /etc, copy upsd to /sbin.

start upsd in debug mode to test things.

put upsd in your prefered rc startup file.

usage:

upsd <filename>

if filename is missing it defaults to /etc/upsd.conf.

--------------------------------------------------------

when debug is set ON result will be something like this:

/etc/upsd.conf, 38 lines:
==========================================
device ............... /dev/tty00
pidfile .............. /var/run/upsd.pid
exec script .......... /sbin/halt
debug mode ........... 1
wait seconds ......... 15
infotime seconds ..... 3600
smartmode ............ 1


not forking in debug mode ...
battery load  : 100.00 %
voltage       : 228.80 volt
line min.     : 227.50 volt
line max.     : 230.10 volt
load          :  16.10 %
line freq     :  50.00 HZ
output voltage: 228.80 volt
temperature   :  36.00 degrees celsius
battery volt. :  27.74 volt
status        : 8

--------------------------------------------------------

stuff taken from:

upsd

Copyright 1997 Slavik Terletsky. All rights reserved.
Author: Slavik Terletsky <ts@polynet.lviv.ua>

apcd

- Daemon for the APC Smart UPS
Copyright (c) 1995 Pavel Korensky
All rights reserved.

---------------------------------------------------------

