Additional scripts for Zabbix agent on Linux to discover and monitor several services
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

183 lines
7.4 KiB

<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>5.0</version>
<date>2021-06-19T12:20:39Z</date>
<groups>
<group>
<name>Modèles</name>
</group>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
<template>
<template>Template_UPS_APC_SNMP</template>
<name>Template_UPS_APC_SNMP</name>
<groups>
<group>
<name>Modèles</name>
</group>
<group>
<name>Templates</name>
</group>
</groups>
<items>
<item>
<name>Température de la batterie</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.318.1.1.1.2.2.2.0</snmp_oid>
<key>upsAdvBatteryTemperature</key>
<delay>5m</delay>
<history>30d</history>
<trends>1095d</trends>
<request_method>POST</request_method>
<triggers>
<trigger>
<expression>{last(0)}&gt;40</expression>
<name>Température élevée</name>
<priority>HIGH</priority>
</trigger>
</triggers>
</item>
<item>
<name>Charge actuelle (ampères)</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.318.1.1.1.4.2.4.0</snmp_oid>
<key>upsAdvOutputCurrent</key>
<delay>5m</delay>
<history>30d</history>
<trends>1095d</trends>
<value_type>FLOAT</value_type>
<units>a</units>
<request_method>POST</request_method>
</item>
<item>
<name>Charge (%)</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.318.1.1.1.4.2.3.0</snmp_oid>
<key>upsAdvOutputLoad</key>
<delay>5m</delay>
<history>30d</history>
<trends>1095d</trends>
<value_type>FLOAT</value_type>
<request_method>POST</request_method>
<triggers>
<trigger>
<expression>{last(0)}&gt;95</expression>
<name>APC: Output Load Too High - {HOSTNAME}</name>
<status>DISABLED</status>
<priority>DISASTER</priority>
</trigger>
<trigger>
<expression>{last(0)}&gt;90</expression>
<name>Onduleur en surcharge</name>
<priority>HIGH</priority>
</trigger>
</triggers>
</item>
<item>
<name>Témoin de remplacement de la batterie</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.318.1.1.1.2.2.4.0</snmp_oid>
<key>upsAdvReplaceBatteryIndicator</key>
<delay>10m</delay>
<history>30d</history>
<trends>1095d</trends>
<valuemap>
<name>APC Battery Replacement Status</name>
</valuemap>
<request_method>POST</request_method>
<triggers>
<trigger>
<expression>{last(0)}&lt;&gt;1</expression>
<name>Batterie défectueuse</name>
<priority>DISASTER</priority>
</trigger>
</triggers>
</item>
<item>
<name>Temps restant</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.318.1.1.1.2.2.3.0</snmp_oid>
<key>upsAdvRunTimeRemaining</key>
<delay>3m</delay>
<history>30d</history>
<trends>1095d</trends>
<units>s</units>
<preprocessing>
<step>
<type>MULTIPLIER</type>
<params>0.01</params>
</step>
</preprocessing>
<request_method>POST</request_method>
<triggers>
<trigger>
<expression>{last(0)}&lt;5</expression>
<name>APC: Run Time Remaining Critical Level - {HOSTNAME}</name>
<status>DISABLED</status>
<priority>DISASTER</priority>
</trigger>
<trigger>
<expression>{last(0)}&lt;10</expression>
<name>Niveau d'énergie faible</name>
<priority>HIGH</priority>
</trigger>
</triggers>
</item>
<item>
<name>État de la batterie</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.318.1.1.1.2.1.1.0</snmp_oid>
<key>upsBasicBatteryStatus</key>
<delay>3m</delay>
<history>30d</history>
<trends>1095d</trends>
<valuemap>
<name>APC Battery Status</name>
</valuemap>
<request_method>POST</request_method>
<triggers>
<trigger>
<expression>{last(0)}&lt;&gt;2</expression>
<name>Perte de l'alimentation</name>
<priority>DISASTER</priority>
</trigger>
</triggers>
</item>
<item>
<name>Durée sur batterie</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.318.1.1.1.2.1.2.0</snmp_oid>
<key>upsBasicBatteryTimeOnBattery</key>
<delay>3m</delay>
<history>30d</history>
<trends>1095d</trends>
<units>s</units>
<preprocessing>
<step>
<type>MULTIPLIER</type>
<params>0.01</params>
</step>
</preprocessing>
<request_method>POST</request_method>
</item>
</items>
<macros>
<macro>
<macro>{$COMMUNITY}</macro>
<value>public</value>
</macro>
</macros>
</template>
</templates>
<value_maps>
<value_map>
<name>APC Battery Replacement Status</name>
</value_map>
<value_map>
<name>APC Battery Status</name>
</value_map>
</value_maps>
</zabbix_export>