wombat.ch

your Partner for Network Design and CMS

Install APC UPS Pro 900 and Monitor with Munin

 

my Setup
Verbinden des APC UPS Pro 900 mit dem Linux Server (Debian 7.5 wheezy)
APC UPS Pro 900 hat einen RJ45/Seriellen Port
Server auf ein USB Port

Check it mit

# lsusb
Bus 003 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply

 

 

dann noch mehr Infos

# lsusb -v -s003:002

Bus 003 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
Device Descriptor:
  bDeviceClass            0 (Defined at Interface level)
  idVendor           0x051d American Power Conversion
  idProduct          0x0002 Uninterruptible Power Supply
  bcdDevice            0.90
  iManufacturer           1 American Power Conversion
  iProduct                2 Back-UPS RS 900G FW:879.L4 .I USB FW:L4

 

es kommen noch mehr Infos ... sind aber nicht relevant wir wissen das eine kommunikation stattfindet

# apt-get update
# apt-get upgrade
# apt-get install apcupsd




Dann muss die Datei apcupsd.conf angepasst werden

 

# vi /etc/apcupsd/apcupsd.conf

dabei sind die 3 Punkte wichtig:
UPSName deineUSVname
UPSCable usb
UPSTYPE usb

# vi /etc/default/apcupsd

anpassen von ISCONFIGURED von no auf yes wechseln

# /etc/init.d/apcupsd start

# apcaccess

APC      : 001,036,0898
DATE     : 2014-06-01 15:44:47 +0200
HOSTNAME : srv03
VERSION  : 3.14.10 (13 September 2011) debian
UPSNAME  : pro900
CABLE    : USB Cable
DRIVER   : USB UPS Driver
UPSMODE  : Stand Alone
STARTTIME: 2014-05-31 22:29:10 +0200
MODEL    : Back-UPS RS 900G
STATUS   : ONLINE
LINEV    : 238.0 Volts
LOADPCT  :   6.0 Percent Load Capacity
BCHARGE  : 100.0 Percent

und weitere Infos....

=================== ====

APC UPS Status mit Munin überwachen

Munin-node ist bereits installiert und läuft

cd /usr/share/munin/plugins/
sudo wget https://raw.githubusercontent.com/hirose31/munin-apcupsd/master/apcupsd_pct
sudo chmod 755 /usr/share/munin/plugins/apcupsd_pct

vi /usr/share/munin/plugins/




no you could be changeing the name of the UPS .....

 

sudo ln -s /usr/share/munin/plugins/apcupsd_pct /etc/munin/plugins/apcupsd_pct
sudo ln -s /usr/share/munin/plugins/apcupsd_pct /etc/munin/plugins/apcupsd_volt
sudo ln -s /usr/share/munin/plugins/apcupsd_pct /etc/munin/plugins/apcupsd_time
sudo ln -s /usr/share/munin/plugins/apcupsd_pct /etc/munin/plugins/apcupsd_pwr

 

 



cd /etc/munin/plugins/

./apcupsd_pct

./apcupsd_volt

./apcupsd_time

./apcupsd_pwr

 

---

:/etc/munin/plugins# ./apcupsd_time
timeleft.value 40.9

---


munin-node-configure


 

 

/etc/init.d/munin-node restart

 

 

 


more Information Links:
apcupsd - Debian Wiki
apcupsd - Community Help Wiki
Official website

 

RSS Feed


Warning: Invalid argument supplied for foreach() in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 39

neusten Links


Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/clients/client2/web2/web/j/modules/mod_quicklistweblinks/helper.php on line 78
many More Links »

part of ...

Linux Counter

Disqus

 

Learning Network

Seti@home & Boinc

myBonic

statistik

 


Who is Online

We have 338 guests and no members online

We have 315 guests, no bots and no members online