Last active
August 23, 2020 19:12
-
-
Save jp7fkf/73a43820ceb224d410b28657ae407d59 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<zabbix_export> | |
<version>4.4</version> | |
<date>2020-08-23T19:11:51Z</date> | |
<groups> | |
<group> | |
<name>Templates</name> | |
</group> | |
<group> | |
<name>Templates/Applications</name> | |
</group> | |
</groups> | |
<templates> | |
<template> | |
<template>Template Network UPS Tools</template> | |
<name>Template Network UPS Tools</name> | |
<groups> | |
<group> | |
<name>Templates</name> | |
</group> | |
<group> | |
<name>Templates/Applications</name> | |
</group> | |
</groups> | |
<applications> | |
<application> | |
<name>Network UPS Tools</name> | |
</application> | |
</applications> | |
<items> | |
<item> | |
<name>Battery voltage high</name> | |
<key>ups.nut.battery.voltage.high[{$UPS_NAME}]</key> | |
<delay>1h</delay> | |
<value_type>FLOAT</value_type> | |
<units>Volt</units> | |
<applications> | |
<application> | |
<name>Network UPS Tools</name> | |
</application> | |
</applications> | |
</item> | |
<item> | |
<name>Battery voltage low</name> | |
<key>ups.nut.battery.voltage.low[{$UPS_NAME}]</key> | |
<delay>1h</delay> | |
<value_type>FLOAT</value_type> | |
<units>Volt</units> | |
<applications> | |
<application> | |
<name>Network UPS Tools</name> | |
</application> | |
</applications> | |
</item> | |
<item> | |
<name>Battery voltage</name> | |
<key>ups.nut.battery.voltage[{$UPS_NAME}]</key> | |
<delay>5m</delay> | |
<value_type>FLOAT</value_type> | |
<units>Volt</units> | |
<applications> | |
<application> | |
<name>Network UPS Tools</name> | |
</application> | |
</applications> | |
<triggers> | |
<trigger> | |
<expression>{last()}<{$BATT_LOW}</expression> | |
<name>{$UPS_NAME}: Battery voltage is too low</name> | |
<priority>AVERAGE</priority> | |
<type>MULTIPLE</type> | |
</trigger> | |
</triggers> | |
</item> | |
<item> | |
<name>Input frequency</name> | |
<key>ups.nut.input.frequency[{$UPS_NAME}]</key> | |
<delay>5m</delay> | |
<value_type>FLOAT</value_type> | |
<units>Hz</units> | |
<applications> | |
<application> | |
<name>Network UPS Tools</name> | |
</application> | |
</applications> | |
<triggers> | |
<trigger> | |
<expression>{last()}< {$REF_FREQ}-{$VOLT_DIFF} or {last()}>{$REF_FREQ}+{$VOLT_DIFF}</expression> | |
<name>{$UPS_NAME}: Input frequency is outside of range</name> | |
<priority>AVERAGE</priority> | |
<type>MULTIPLE</type> | |
</trigger> | |
</triggers> | |
</item> | |
<item> | |
<name>Input voltage</name> | |
<key>ups.nut.input.voltage[{$UPS_NAME}]</key> | |
<delay>5m</delay> | |
<value_type>FLOAT</value_type> | |
<units>Volt</units> | |
<applications> | |
<application> | |
<name>Network UPS Tools</name> | |
</application> | |
</applications> | |
<triggers> | |
<trigger> | |
<expression>{last()}<{$VOLT_LOW} or {last()}>{$VOLT_HIGH}</expression> | |
<name>{$UPS_NAME}: Input voltage is outside of range</name> | |
<priority>AVERAGE</priority> | |
<type>MULTIPLE</type> | |
</trigger> | |
</triggers> | |
</item> | |
<item> | |
<name>Output voltage</name> | |
<key>ups.nut.output.voltage[{$UPS_NAME}]</key> | |
<delay>5m</delay> | |
<value_type>FLOAT</value_type> | |
<units>Volt</units> | |
<applications> | |
<application> | |
<name>Network UPS Tools</name> | |
</application> | |
</applications> | |
<triggers> | |
<trigger> | |
<expression>{last()}<{$VOLT_LOW} or {last()}>{$VOLT_HIGH}</expression> | |
<name>{$UPS_NAME}: Output voltage is outside of range</name> | |
<priority>AVERAGE</priority> | |
<type>MULTIPLE</type> | |
</trigger> | |
</triggers> | |
</item> | |
<item> | |
<name>Load</name> | |
<key>ups.nut.ups.load[{$UPS_NAME}]</key> | |
<delay>5m</delay> | |
<value_type>FLOAT</value_type> | |
<units>%</units> | |
<applications> | |
<application> | |
<name>Network UPS Tools</name> | |
</application> | |
</applications> | |
<triggers> | |
<trigger> | |
<expression>{last()}>80</expression> | |
<name>{$UPS_NAME}: Load over 80%</name> | |
<priority>WARNING</priority> | |
<type>MULTIPLE</type> | |
</trigger> | |
</triggers> | |
</item> | |
<item> | |
<name>Status</name> | |
<key>ups.nut.ups.status[{$UPS_NAME}]</key> | |
<delay>5m</delay> | |
<applications> | |
<application> | |
<name>Network UPS Tools</name> | |
</application> | |
</applications> | |
<valuemap> | |
<name>UPS_OMRON_STATUS</name> | |
</valuemap> | |
<preprocessing> | |
<step> | |
<type>REGEX</type> | |
<params>(.*) | |
\1:OL BYPASS=0:OB=1</params> | |
</step> | |
<step> | |
<type>REGEX</type> | |
<params>(OL BYPASS|OB)(?=.*:\1=(\d)) | |
\2</params> | |
</step> | |
</preprocessing> | |
<triggers> | |
<trigger> | |
<expression>{last()}<>0</expression> | |
<name>{$UPS_NAME} status is abnormal</name> | |
<priority>HIGH</priority> | |
<type>MULTIPLE</type> | |
</trigger> | |
</triggers> | |
</item> | |
<item> | |
<name>Temperature</name> | |
<key>ups.nut.ups.temperature[{$UPS_NAME}]</key> | |
<delay>5m</delay> | |
<value_type>FLOAT</value_type> | |
<units>degree</units> | |
<applications> | |
<application> | |
<name>Network UPS Tools</name> | |
</application> | |
</applications> | |
<triggers> | |
<trigger> | |
<expression>{avg(15m)}>{$TEMP_WARN}</expression> | |
<name>{$UPS_NAME}: Temperature is above warning threshold</name> | |
<priority>WARNING</priority> | |
<type>MULTIPLE</type> | |
</trigger> | |
</triggers> | |
</item> | |
</items> | |
<macros> | |
<macro> | |
<macro>{$BATT_LOW}</macro> | |
<value>12</value> | |
</macro> | |
<macro> | |
<macro>{$REF_FREQ}</macro> | |
<value>50</value> | |
</macro> | |
<macro> | |
<macro>{$TEMP_WARN}</macro> | |
<value>60</value> | |
</macro> | |
<macro> | |
<macro>{$UPS_NAME}</macro> | |
<value>by50s</value> | |
</macro> | |
<macro> | |
<macro>{$VOLT_DIFF}</macro> | |
<value>0.2</value> | |
</macro> | |
<macro> | |
<macro>{$VOLT_HIGH}</macro> | |
<value>107</value> | |
</macro> | |
<macro> | |
<macro>{$VOLT_LOW}</macro> | |
<value>95</value> | |
</macro> | |
</macros> | |
</template> | |
</templates> | |
<value_maps> | |
<value_map> | |
<name>UPS_OMRON_STATUS</name> | |
<mappings> | |
<mapping> | |
<value>0</value> | |
<newvalue>OL BYPASS</newvalue> | |
</mapping> | |
<mapping> | |
<value>1</value> | |
<newvalue>OB</newvalue> | |
</mapping> | |
</mappings> | |
</value_map> | |
</value_maps> | |
</zabbix_export> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment