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.
 
 

429 lines
20 KiB

<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>5.0</version>
<date>2021-06-19T12:19:32Z</date>
<groups>
<group>
<name>Modèles</name>
</group>
</groups>
<templates>
<template>
<template>Template_Switch_Dell_PowerConnect</template>
<name>Template_Switch_Dell_PowerConnect</name>
<templates>
<template>
<name>Template_Switch_Generic</name>
</template>
</templates>
<groups>
<group>
<name>Modèles</name>
</group>
</groups>
<applications>
<application>
<name>Information(s)</name>
</application>
<application>
<name>Inventory</name>
</application>
<application>
<name>System</name>
</application>
</applications>
<items>
<item>
<name>Memory: Available</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.674.10895.5000.2.6132.1.1.1.1.4.2.0</snmp_oid>
<key>agentSwitchCpuProcessMemAvailable</key>
<delay>5m</delay>
<trends>1825d</trends>
<units>bytes</units>
<applications>
<application>
<name>System</name>
</application>
</applications>
<preprocessing>
<step>
<type>MULTIPLIER</type>
<params>1000</params>
</step>
</preprocessing>
<request_method>POST</request_method>
</item>
<item>
<name>Memory: Free</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.674.10895.5000.2.6132.1.1.1.1.4.1.0</snmp_oid>
<key>agentSwitchCpuProcessMemFree</key>
<delay>5m</delay>
<trends>1825d</trends>
<units>bytes</units>
<applications>
<application>
<name>System</name>
</application>
</applications>
<preprocessing>
<step>
<type>MULTIPLIER</type>
<params>1000</params>
</step>
</preprocessing>
<request_method>POST</request_method>
</item>
<item>
<name>CPU usage</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.674.10895.5000.2.6132.1.1.1.1.4.9.0</snmp_oid>
<key>agentSwitchCpuProcessTotalUtilization</key>
<delay>5m</delay>
<trends>1825d</trends>
<status>DISABLED</status>
<units>%</units>
<applications>
<application>
<name>System</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>Model</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.674.10895.3000.1.2.100.1.0</snmp_oid>
<key>productIdentificationDisplayName</key>
<delay>2h</delay>
<history>30d</history>
<trends>0</trends>
<value_type>CHAR</value_type>
<inventory_link>TYPE</inventory_link>
<applications>
<application>
<name>Information(s)</name>
</application>
<application>
<name>Inventory</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>Serial number</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.674.10895.3000.1.2.100.8.1.4.1</snmp_oid>
<key>productIdentificationServiceTag</key>
<delay>2h;50s/1-7,00:00-24:00</delay>
<history>30d</history>
<trends>0</trends>
<value_type>CHAR</value_type>
<inventory_link>SERIALNO_A</inventory_link>
<applications>
<application>
<name>Information(s)</name>
</application>
<application>
<name>Inventory</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>Firmware version</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.674.10895.3000.1.2.100.4.0</snmp_oid>
<key>productIdentificationVersion</key>
<delay>2h</delay>
<history>30d</history>
<trends>0</trends>
<value_type>CHAR</value_type>
<inventory_link>OS</inventory_link>
<applications>
<application>
<name>Information(s)</name>
</application>
</applications>
<request_method>POST</request_method>
<triggers>
<trigger>
<expression>{diff(0)}&gt;0</expression>
<name>Software version was changed</name>
<priority>INFO</priority>
</trigger>
</triggers>
</item>
</items>
<discovery_rules>
<discovery_rule>
<name>Fan</name>
<type>SNMP_AGENT</type>
<snmp_oid>discovery[{#SNMPVALUE},.1.3.6.1.4.1.674.10895.3000.1.2.110.7.1.1.2]</snmp_oid>
<key>envMonFanStatusDescr</key>
<delay>2h</delay>
<lifetime>1w</lifetime>
<item_prototypes>
<item_prototype>
<name>État du ventilateur $1</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.674.10895.3000.1.2.110.7.1.1.3.{#SNMPINDEX}</snmp_oid>
<key>envMonFanState[{#SNMPVALUE}]</key>
<delay>5m</delay>
<history>180d</history>
<trends>1825d</trends>
<applications>
<application>
<name>System</name>
</application>
</applications>
<valuemap>
<name>dellEnvMonState</name>
</valuemap>
<request_method>POST</request_method>
<trigger_prototypes>
<trigger_prototype>
<expression>{diff(0)}=1</expression>
<name>L'état du ventilateur {#SNMPVALUE} a changé</name>
<priority>HIGH</priority>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
<item_prototype>
<name>$1</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.674.10895.3000.1.2.110.7.1.1.2.{#SNMPINDEX}</snmp_oid>
<key>envMonFanStatusDescr[{#SNMPVALUE}]</key>
<delay>2h</delay>
<history>180d</history>
<trends>0</trends>
<value_type>CHAR</value_type>
<applications>
<application>
<name>System</name>
</application>
</applications>
<request_method>POST</request_method>
</item_prototype>
</item_prototypes>
<request_method>POST</request_method>
</discovery_rule>
<discovery_rule>
<name>Power suplly discovery</name>
<type>SNMP_AGENT</type>
<snmp_oid>discovery[{#SNMPVALUE},.1.3.6.1.4.1.674.10895.3000.1.2.110.7.2.1.2]</snmp_oid>
<key>envMonSupplyStatusDescr</key>
<delay>2h</delay>
<lifetime>1w</lifetime>
<item_prototypes>
<item_prototype>
<name>$1 État de l'alimentation</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.674.10895.3000.1.2.110.7.2.1.3.{#SNMPINDEX}</snmp_oid>
<key>envMonSupplyState[{#SNMPVALUE}]</key>
<delay>5m</delay>
<trends>1825d</trends>
<applications>
<application>
<name>System</name>
</application>
</applications>
<valuemap>
<name>dellEnvMonState</name>
</valuemap>
<request_method>POST</request_method>
<trigger_prototypes>
<trigger_prototype>
<expression>{last(0)}&lt;&gt; 1 and {last(0)} &lt;&gt; 5</expression>
<name>Défaut de l'alimentation {#SNMPVALUE} (état {ITEM.VALUE1})</name>
<priority>WARNING</priority>
</trigger_prototype>
<trigger_prototype>
<expression>{diff(0)}=1</expression>
<name>L'état de l'alimentation {#SNMPVALUE} a changé</name>
<priority>HIGH</priority>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
<item_prototype>
<name>$1 power supply</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.674.10895.3000.1.2.110.7.2.1.2.{#SNMPINDEX}</snmp_oid>
<key>envMonSupplyStatusDescr[{#SNMPVALUE}]</key>
<delay>2h</delay>
<trends>0</trends>
<value_type>CHAR</value_type>
<applications>
<application>
<name>System</name>
</application>
</applications>
<request_method>POST</request_method>
</item_prototype>
</item_prototypes>
<request_method>POST</request_method>
</discovery_rule>
<discovery_rule>
<name>Hardware inventory</name>
<type>SNMP_AGENT</type>
<snmp_oid>discovery[{#SNMPVALUE},.1.3.6.1.4.1.674.10895.3000.1.2.100.8.1.1]</snmp_oid>
<key>productIdentificationPerUnitTable</key>
<delay>1h</delay>
<lifetime>1w</lifetime>
<item_prototypes>
<item_prototype>
<name>Asset tag of unit $1</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.674.10895.3000.1.2.100.8.1.3.{#SNMPINDEX}</snmp_oid>
<key>productIdentificationAssetTag[{#SNMPVALUE}]</key>
<delay>2h</delay>
<trends>0</trends>
<value_type>CHAR</value_type>
<applications>
<application>
<name>Inventory</name>
</application>
</applications>
<request_method>POST</request_method>
</item_prototype>
<item_prototype>
<name>Bootrom version of unit $1</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.674.10895.3000.1.2.100.8.1.6.{#SNMPINDEX}</snmp_oid>
<key>productIdentificationBootromVersion[{#SNMPVALUE}]</key>
<delay>2h</delay>
<trends>0</trends>
<value_type>CHAR</value_type>
<applications>
<application>
<name>Inventory</name>
</application>
</applications>
<request_method>POST</request_method>
<trigger_prototypes>
<trigger_prototype>
<expression>{diff(0)}&gt;0</expression>
<name>La version du bootrom de l'unité {#SNMPVALUE} a changé</name>
<priority>WARNING</priority>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
<item_prototype>
<name>Chassis service tag of unit $1</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.674.10895.3000.1.2.100.8.1.5.{#SNMPINDEX}</snmp_oid>
<key>productIdentificationChassisServiceTag[{#SNMPVALUE}]</key>
<delay>2h</delay>
<trends>0</trends>
<value_type>CHAR</value_type>
<applications>
<application>
<name>Inventory</name>
</application>
</applications>
<request_method>POST</request_method>
</item_prototype>
<item_prototype>
<name>Serial number of unit $1</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.674.10895.3000.1.2.100.8.1.2.{#SNMPINDEX}</snmp_oid>
<key>productIdentificationSerialNumber[{#SNMPVALUE}]</key>
<delay>2h</delay>
<trends>0</trends>
<value_type>CHAR</value_type>
<applications>
<application>
<name>Inventory</name>
</application>
</applications>
<request_method>POST</request_method>
<trigger_prototypes>
<trigger_prototype>
<expression>{diff(0)}&gt;0</expression>
<name>Le numéro de série de l'unité {#SNMPVALUE} a changé</name>
<priority>AVERAGE</priority>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
<item_prototype>
<name>Service tag of unit $1</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.674.10895.3000.1.2.100.8.1.4.{#SNMPINDEX}</snmp_oid>
<key>productIdentificationServiceTag[{#SNMPVALUE}]</key>
<delay>2h</delay>
<trends>0</trends>
<value_type>CHAR</value_type>
<applications>
<application>
<name>Inventory</name>
</application>
</applications>
<request_method>POST</request_method>
</item_prototype>
</item_prototypes>
<request_method>POST</request_method>
</discovery_rule>
</discovery_rules>
</template>
</templates>
<triggers>
<trigger>
<expression>({Template_Switch_Dell_PowerConnect:agentSwitchCpuProcessMemAvailable.last(0)}-{Template_Switch_Dell_PowerConnect:agentSwitchCpuProcessMemFree.last(0)})&gt;0.8*{Template_Switch_Dell_PowerConnect:agentSwitchCpuProcessMemAvailable.last(0)}</expression>
<name>Memory usage exceeded 80%</name>
<status>DISABLED</status>
<priority>HIGH</priority>
</trigger>
</triggers>
<graphs>
<graph>
<name>Memory usage</name>
<graph_items>
<graph_item>
<drawtype>BOLD_LINE</drawtype>
<color>EACC00</color>
<item>
<host>Template_Switch_Dell_PowerConnect</host>
<key>agentSwitchCpuProcessMemAvailable</key>
</item>
</graph_item>
<graph_item>
<sortorder>1</sortorder>
<drawtype>FILLED_REGION</drawtype>
<color>FF0000</color>
<item>
<host>Template_Switch_Dell_PowerConnect</host>
<key>agentSwitchCpuProcessMemFree</key>
</item>
</graph_item>
</graph_items>
</graph>
</graphs>
<value_maps>
<value_map>
<name>dellEnvMonState</name>
<mappings>
<mapping>
<value>1</value>
<newvalue>normal</newvalue>
</mapping>
<mapping>
<value>2</value>
<newvalue>warning</newvalue>
</mapping>
<mapping>
<value>3</value>
<newvalue>critical</newvalue>
</mapping>
<mapping>
<value>4</value>
<newvalue>notPresent</newvalue>
</mapping>
<mapping>
<value>5</value>
<newvalue>notFunctioning</newvalue>
</mapping>
</mappings>
</value_map>
</value_maps>
</zabbix_export>