Friday, September 08, 2006

Take The Power Back

At work we got a brand new apc ups so I had to connect our 2 linux servers to the ups. I decided to connect the websever as master controller for the ups and the samba server as the client controller. The following are the basic configurations to create this situation.

Master

## apcupsd.conf v1.1 ##
UPSCABLE simple
UPSTYPE smartups
DEVICE /dev/ttyS1
UPSCLASS netmaster
UPSMODE net
NETTIME 10
NETPORT 6666
SLAVE


Client

## apcupsd.conf v1.1 ##
UPSCABLE ether
UPSTYPE smartups
LOCKFILE /var/lock
UPSCLASS netslave
UPSMODE net
NETPORT 6666
MASTER