User Tools

Site Tools


notes:zabbix-apcupsd-without-snmp

This is an old revision of the document!


Zabbix: Monitor an APC UPS with apcupsd (no SNMP required)

UserParameter are

/etc/zabbix/zabbix_agentd.conf

UserParameter=apcupsd.linev,awk < /var/log/apcupsd.status '/^(LINEV).*:/ { print $3 }' UserParameter=apcupsd.loadpct,awk < /var/log/apcupsd.status '/^(LOADPCT).*:/ { print $3 }' UserParameter=apcupsd.battcharge,awk < /var/log/apcupsd.status '/^(BCHARGE).*:/ { print $3 }' UserParameter=apcupsd.timeleft,awk < /var/log/apcupsd.status '/^(TIMELEFT).*:/ { print $3 }' UserParameter=apcupsd.battv,awk < /var/log/apcupsd.status '/^(BATTV).*:/ { print $3 }'

/etc/apcupsd/apcupsd.conf ## apcupsd.conf v1.1 ## UPSNAME SmartUPS5000 UPSCABLE ether UPSTYPE pcnet 192.168.0.220:apc DEVICE LOCKFILE /var/lock UPSCLASS standalone UPSMODE disable

POLLTIME 60 ONBATTERYDELAY 15

# BATTERYLEVEL, MINUTES, and TIMEOUT work in conjunction, so # the first that occurs will cause the initation of a shutdown. BATTERYLEVEL 10 MINUTES 5 TIMEOUT 0 #set it to 0 for SmartUPS devices

STATTIME 50 STATFILE /var/log/apcupsd.status LOGSTATS off DATATIME 0

notes/zabbix-apcupsd-without-snmp.1409309292.txt.gz · Last modified: 2014/08/29 10:48 by admin