UPSD is a Unix based daemon for monitoring an uninterruptable power supply from the APC Smart UPS range. It will provide unattended system shutdown in the event of a power failure beyond the range of the UPS battery capacity.
The current version is 1.2.2 and is available here. It is free to download for public and commercial use.
| Supported platforms | Available for Solaris (SPARC & x86), Linux and FreeBSD. | |
|---|---|---|
| Invocation | UPSD is intended to be run a daemon process invoked on system startup by a suitable startup script (eg., /etc/rc2.d/S82upsd). | |
| Serial port | Can be configured to run on any serial port. | |
| Customisable shutdown | The processing to be performed in the event of a shutdown can be customised to suit site requirements. A default shutdown script is provided which will simply record the situation and cleanly shutdown the system. | |
| Shutdown threshold | The level of battery capacity remaining before the system is shutdown. The default is 2 minutes, however system configuration will dictate the amount of time necessary for a clean shutdown to be completed. | |
| Safety mode | Disables the actual execution of the shutdown script on reaching the configured threshold. This is so that the shutdown time, command and operation can be tested without an actual shutdown. Once satisfied that all is correct then the safety mode can be disabled. | |
| Logging Level | Allows various levels of logging from none to informational messages only to full logging of all actions taken by the daemon. The logging level can also be changed on a running daemon by the use of the signal SIGHUP. | |
| Logging Facility | This selects the syslog facility that the daemon will log to. By default the daemon will log to facility LOCAL7. | |
| Status Interval | Under normal operation the daemon will continually poll the UPS to determine its status, however in order to ensure the process will never hang waiting for a response from the UPS a timeout can be introduced. |
Copyright © 1998-2000 Tortuga Technologies Pty Ltd. All rights reserved.
last updated 27-October-2000