2 minutes
Connecting more than one computer to the USV (IV)
This is the last step of the “multiple machines running from one USV” set up. So we have configured the master and the slave(s) and they are nicely talking to each other. But the software can do more than just monitor the state of the batteries and initiationg a shut down if necessary. apcupsd
is able to display the (power) status informations of several computers on one central website. To enable this feature, one has to set up the Network Information Service in apcupsd
. This is done via the NETSERVER
and the NISPORT
directives. The standard (IANA assigned) port is 3551, so it’s a good idea to leave it at that value. Next, make sure that apcupsd
is running on the web server (probably one of the servers protected by the USV anyway). Then you have to tell the web server that the cgi
directory contains CGI scripts (use the ScriptAlias
directive for Apache’s httpd) and that it’s safe to execute them. Finally, you create one line per host you want to monitor in the hosts.conf
file in the directory containing the other config files in the following form: MONITOR 10.64.1.1 "Finance department"
You have to modify the entries for your purposes, of course. After restarting the apcupsd
daemon and the web server you should get a similar result calling the multimon.cgi
script with your browser: Enjoy your newly won independence from the power lines!