From 350acea4d04e3fefbca346d898a8a5f0159cba3f Mon Sep 17 00:00:00 2001 From: Gerard Stanczak Date: Thu, 1 Oct 2015 13:07:39 +0200 Subject: [PATCH] Added monitoring for APC Back-UPS ES 700G --- .../Template Device Back-UPS ES 700G.xml | 699 ++++++++++++++++++ zabbix_agentd.conf.d/ups.conf | 2 + 2 files changed, 701 insertions(+) create mode 100644 templates/Template Device Back-UPS ES 700G.xml create mode 100644 zabbix_agentd.conf.d/ups.conf diff --git a/templates/Template Device Back-UPS ES 700G.xml b/templates/Template Device Back-UPS ES 700G.xml new file mode 100644 index 0000000..9efd69b --- /dev/null +++ b/templates/Template Device Back-UPS ES 700G.xml @@ -0,0 +1,699 @@ + + + 2.0 + 2015-10-01T11:02:21Z + + + Templates + + + + + + + + {Template Device Back-UPS ES 700G:ups.apcacces[BCHARGE].last()}<30.0 + Battery capacity less than 30% + + 0 + 4 + + 0 + + + + {Template Device Back-UPS ES 700G:ups.apcacces[LOADPCT].last()}>80.0 + Load capacity over 80 % + + 0 + 3 + + 0 + + + + {Template Device Back-UPS ES 700G:ups.apcacces[NUMXFERS].abschange()}=1 + Power outtage occured + + 0 + 1 + + 0 + + + + {Template Device Back-UPS ES 700G:ups.apcacces[TIMELEFT].last()}<5.0 + Runtime on battery less than 5 min + + 0 + 4 + + 0 + + + + {Template Device Back-UPS ES 700G:ups.apcacces[STATUS].str("ONLINE")}<>1 + Status {ITEM.VALUE} + + 0 + 2 + + 0 + + + + {Template Device Back-UPS ES 700G:ups.apcacces[VERSION].diff(0)}=1 + Version UPS was changed + + 0 + 1 + + 0 + + + + + + [UPS] Battery capacity + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 1 + 1 + 0 + 0 + + + 0 + 5 + 008800 + 0 + 2 + 0 + + Template Device Back-UPS ES 700G + ups.apcacces[BCHARGE] + + + + + + [UPS] Battery Voltage + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + C80000 + 0 + 2 + 0 + + Template Device Back-UPS ES 700G + ups.apcacces[BATTV] + + + + 1 + 0 + 0000C8 + 0 + 2 + 0 + + Template Device Back-UPS ES 700G + ups.apcacces[NOMBATTV] + + + + + + [UPS] Input Voltage + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + 00C800 + 0 + 2 + 0 + + Template Device Back-UPS ES 700G + ups.apcacces[LINEV] + + + + + + [UPS] Load capacity + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 1 + 1 + 0 + 0 + + + 0 + 1 + C80000 + 0 + 2 + 0 + + Template Device Back-UPS ES 700G + ups.apcacces[LOADPCT] + + + + + + [UPS] Remaining runtime on battery + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 1 + 0 + 0 + 0 + + + 0 + 1 + C80000 + 0 + 2 + 0 + + Template Device Back-UPS ES 700G + ups.apcacces[TIMELEFT] + + + + + + diff --git a/zabbix_agentd.conf.d/ups.conf b/zabbix_agentd.conf.d/ups.conf new file mode 100644 index 0000000..4a20cad --- /dev/null +++ b/zabbix_agentd.conf.d/ups.conf @@ -0,0 +1,2 @@ +UserParameter=ups.apcacces[*],apcaccess | grep "^$1" |cut -d ":" -f2 | sed 's/^[\ ]*//g '| cut -d " " -f1 +UserParameter=ups.lastdate, apcaccess | grep XONBATT | cut -d ":" -f 2,3 | sed 's/^[\ ]//g' \ No newline at end of file