Coach Thrasher
Adding Cyber Power 1500AVR UPS Monitoring to my Fedora
Oi! Yet another note set for my Fedora machine. This time I'm trying to configure support for smart UPS monitoring so if there's a power outage, the machine will shut itself down while the UPS has enough juice.
Some details:
- OS: Fedora Core 3 - heavily customized
- System Board: Tyan Tiger MPX, Serial port 2
- UPS: Cyber Power Systems 1500AVR
References:
Excellent HOWTO
NUT documentation
Cyber Power 1500AVR Documentation
Cyber Power Linux Documentation
In a nutshell, here's what's important:
Network UPS tools is comprehensive UPS managing and monitoring daemon can be used with various UPS. In the Fedora Core (and also in the Red Hat Linux) nut is included as two packages, "nut" and "nut-client". Both is requred. You can install nut and nut-client packages with yum as like:
Installing NUT
su - root yum -y install nut nut-client
Fix NUT file permissions
[root@gemini ~]# cd /etc/ups [root@gemini ups]# chown root:nut ups* [root@gemini ups]# chmod 640 ups*
Configuring NUT
vi /etc/sysconfig/ups SERVER=yes MODEL=cyberpower DEVICE=/dev/ttyS1 OPTIONS= UPSD_OPTIONS=vi /etc/ups/ups.conf
[powerbar]
driver=cyberpower
port=/dev/ttyS1
desc="Gemini Dev Server"
mfr="Cyber Power Systems"
model="1500AVR"
vi /etc/ups/upsd.users
[monuser]
password = upspassword
allowfrom = localhost
upsmon master
vi /etc/ups/upsmon.conf
MONITOR powerbar@localhost 1 monuser upspassword master
Start the NUT UPS daemon
/etc/init.d/ups start
Verify that it's running
ps ax|grep ups
Query the UPS status
upsc powerbar@localhost
Set the UPS monitor to auto-start on boot
chkconfig --level 3 ups on chkconfig --level 5 ups on chkconfig --list | grep ups
Posted at 09:23AM Sep 12, 2005 by jason in Software | Comments[1]
Good post!As i was passing by here and i read your post.
It's quite interesting.I will look around for more such post.Thanks for sharing.
Posted by nike outlet on January 16, 2010 at 08:08 AM PST #