Coach Thrasher

Monday Sep 12, 2005

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:

  1. OS: Fedora Core 3 - heavily customized
  2. System Board: Tyan Tiger MPX, Serial port 2
  3. 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

Comments:

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 #

A guy was driving when a policeman pulled him over. He rolled down his window and said to the officer, "Is there a problem, Officer?" "No problem at all. I just observed your safe driving and am pleased to award you a $5,000 Safe Driver Award. Congratulations. What do you think you're going to do with the money?" He thought for a minute and said, "Well, I guess I'll go get that drivers' license." The lady sitting in the passenger seat said to the policeman, "Oh, don't pay attention to him - he's a smartass when he's drunk and stoned." The guy from the back seat said, "I TOLD you guys we wouldn't get far in a stolen car!" At that moment, there was a knock from the trunk and a muffled voice said, "Are we over the border yet?"

Posted by Wholesale Shoes on April 25, 2010 at 08:21 PM PDT #

Seeing your post come accorss in the online,form it remind me a large number of languge knowledge.Thank you.

Posted by Nike Shox R4 on June 21, 2010 at 07:45 PM PDT #

I'm a very faithful <a href="http://www.sneakers4sales.com/"> Nike Shox Shoes </a> admirers, therefore I am so love the standpoint from the good blog. Maybe we are wear <a href="http://www.sneakers4sales.com/air-jordan-1/"> New Air Jordans </a> in the everyday life. Because of the article that gives me different feeling concerning this Air Jordans. How grateful to see what you have been shared on the internet. Hope you better.

Posted by Nike Shox Shoes on July 28, 2010 at 08:20 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

Calendar

Feeds

Search

Links

Navigation

Referrers