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.
 
 

302 lines
15 KiB

<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>5.0</version>
<date>2021-06-19T10:41:59Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
<template>
<template>Template_SNMP_Interface_Basic</template>
<name>Template_SNMP_Interface_Basic</name>
<description>For basic SNMP devices, without IfName, nor 64 bit counters</description>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<applications>
<application>
<name>Interface(s)</name>
</application>
</applications>
<discovery_rules>
<discovery_rule>
<name>Interfaces</name>
<type>SNMP_AGENT</type>
<snmp_oid>discovery[{#IFINDEX},IF-MIB::ifIndex,{#IFDESCR},IF-MIB::ifDescr,{#IFSTATUS},IF-MIB::ifOperStatus,{#IFTYPE},IF-MIB::ifType]</snmp_oid>
<key>ifIndex.discovery</key>
<delay>1h</delay>
<filter>
<evaltype>AND</evaltype>
<conditions>
<condition>
<macro>{#IFSTATUS}</macro>
<value>^(1|2)$</value>
<formulaid>A</formulaid>
</condition>
<condition>
<macro>{#IFTYPE}</macro>
<value>^(6|161|200|169|56|23)$</value>
<formulaid>B</formulaid>
</condition>
</conditions>
</filter>
<lifetime>2d</lifetime>
<item_prototypes>
<item_prototype>
<name>Admin status of {#IFDESCR}</name>
<type>SNMP_AGENT</type>
<snmp_oid>IF-MIB::ifAdminStatus.{#SNMPINDEX}</snmp_oid>
<key>ifAdminStatus[{#IFINDEX},{#SNMPINDEX}]</key>
<delay>6h</delay>
<history>30d</history>
<trends>0</trends>
<applications>
<application>
<name>Interface(s)</name>
</application>
</applications>
<preprocessing>
<step>
<type>DISCARD_UNCHANGED_HEARTBEAT</type>
<params>1d</params>
</step>
</preprocessing>
</item_prototype>
<item_prototype>
<name>Rejected inbound packets on {#IFDESCR}</name>
<type>SNMP_AGENT</type>
<snmp_oid>IF-MIB::ifInDiscards.{#SNMPINDEX}</snmp_oid>
<key>ifInDiscards[{#IFINDEX},{#SNMPINDEX}]</key>
<delay>1h</delay>
<history>30d</history>
<trends>730d</trends>
<units>bps</units>
<applications>
<application>
<name>Interface(s)</name>
</application>
</applications>
<preprocessing>
<step>
<type>SIMPLE_CHANGE</type>
<params/>
</step>
<step>
<type>DISCARD_UNCHANGED_HEARTBEAT</type>
<params>1d</params>
</step>
</preprocessing>
</item_prototype>
<item_prototype>
<name>Inbound errors on {#IFDESCR}</name>
<type>SNMP_AGENT</type>
<snmp_oid>IF-MIB::ifInErrors.{#SNMPINDEX}</snmp_oid>
<key>ifInErrors[{#IFINDEX},{#SNMPINDEX}]</key>
<delay>15m</delay>
<history>30d</history>
<trends>730d</trends>
<applications>
<application>
<name>Interface(s)</name>
</application>
</applications>
<preprocessing>
<step>
<type>SIMPLE_CHANGE</type>
<params/>
</step>
<step>
<type>DISCARD_UNCHANGED_HEARTBEAT</type>
<params>1d</params>
</step>
</preprocessing>
</item_prototype>
<item_prototype>
<name>Inbound trafic on {#IFDESCR}</name>
<type>SNMP_AGENT</type>
<snmp_oid>IF-MIB::ifInOctets.{#SNMPINDEX}</snmp_oid>
<key>ifInOctets[{#IFINDEX},{#SNMPINDEX}]</key>
<delay>3m</delay>
<history>30d</history>
<trends>730d</trends>
<units>bps</units>
<applications>
<application>
<name>Interface(s)</name>
</application>
</applications>
<preprocessing>
<step>
<type>CHANGE_PER_SECOND</type>
<params/>
</step>
<step>
<type>MULTIPLIER</type>
<params>8</params>
</step>
<step>
<type>DISCARD_UNCHANGED_HEARTBEAT</type>
<params>3200</params>
</step>
</preprocessing>
</item_prototype>
<item_prototype>
<name>Last state change for {#IFDESCR}</name>
<type>SNMP_AGENT</type>
<snmp_oid>IF-MIB::ifLastChange.{#SNMPINDEX}</snmp_oid>
<key>ifLastChange[{#IFINDEX},{#SNMPINDEX}]</key>
<delay>10m</delay>
<history>30d</history>
<trends>0</trends>
<units>s</units>
<applications>
<application>
<name>Interface(s)</name>
</application>
</applications>
<preprocessing>
<step>
<type>MULTIPLIER</type>
<params>0.01</params>
</step>
</preprocessing>
</item_prototype>
<item_prototype>
<name>Operational status of {#IFDESCR}</name>
<type>SNMP_AGENT</type>
<snmp_oid>IF-MIB::ifOperStatus.{#SNMPINDEX}</snmp_oid>
<key>ifOperStatus[{#IFINDEX},{#SNMPINDEX}]</key>
<delay>10m</delay>
<history>30d</history>
<trends>0</trends>
<applications>
<application>
<name>Interface(s)</name>
</application>
</applications>
<preprocessing>
<step>
<type>DISCARD_UNCHANGED_HEARTBEAT</type>
<params>1d</params>
</step>
</preprocessing>
</item_prototype>
<item_prototype>
<name>Rejected outbound packets on {#IFDESCR}</name>
<type>SNMP_AGENT</type>
<snmp_oid>IF-MIB::ifOutDiscards.{#SNMPINDEX}</snmp_oid>
<key>ifOutDiscards[{#IFINDEX},{#SNMPINDEX}]</key>
<delay>1h</delay>
<history>30d</history>
<trends>730d</trends>
<units>bps</units>
<applications>
<application>
<name>Interface(s)</name>
</application>
</applications>
<preprocessing>
<step>
<type>SIMPLE_CHANGE</type>
<params/>
</step>
<step>
<type>DISCARD_UNCHANGED_HEARTBEAT</type>
<params>1d</params>
</step>
</preprocessing>
</item_prototype>
<item_prototype>
<name>Outbound errors on {#IFDESCR}</name>
<type>SNMP_AGENT</type>
<snmp_oid>IF-MIB::ifOutErrors.{#SNMPINDEX}</snmp_oid>
<key>ifOutErrors[{#IFINDEX},{#SNMPINDEX}]</key>
<delay>15m</delay>
<history>30d</history>
<trends>0</trends>
<applications>
<application>
<name>Interface(s)</name>
</application>
</applications>
<preprocessing>
<step>
<type>SIMPLE_CHANGE</type>
<params/>
</step>
<step>
<type>DISCARD_UNCHANGED_HEARTBEAT</type>
<params>1d</params>
</step>
</preprocessing>
</item_prototype>
<item_prototype>
<name>Outbound trafic on {#IFDESCR}</name>
<type>SNMP_AGENT</type>
<snmp_oid>IF-MIB::ifOutOctets.{#SNMPINDEX}</snmp_oid>
<key>ifOutOctets[{#IFINDEX},{#SNMPINDEX}]</key>
<delay>3m</delay>
<history>30d</history>
<trends>730d</trends>
<units>bps</units>
<applications>
<application>
<name>Interface(s)</name>
</application>
</applications>
<preprocessing>
<step>
<type>CHANGE_PER_SECOND</type>
<params/>
</step>
<step>
<type>MULTIPLIER</type>
<params>8</params>
</step>
<step>
<type>DISCARD_UNCHANGED_HEARTBEAT</type>
<params>3200</params>
</step>
</preprocessing>
</item_prototype>
</item_prototypes>
<graph_prototypes>
<graph_prototype>
<name>Trafic on {#IFDESCR} ({#IFINDEX})</name>
<graph_items>
<graph_item>
<drawtype>GRADIENT_LINE</drawtype>
<color>00CF00</color>
<item>
<host>Template_SNMP_Interface_Basic</host>
<key>ifInOctets[{#IFINDEX},{#SNMPINDEX}]</key>
</item>
</graph_item>
<graph_item>
<sortorder>1</sortorder>
<drawtype>GRADIENT_LINE</drawtype>
<color>002A97</color>
<yaxisside>RIGHT</yaxisside>
<item>
<host>Template_SNMP_Interface_Basic</host>
<key>ifOutOctets[{#IFINDEX},{#SNMPINDEX}]</key>
</item>
</graph_item>
</graph_items>
</graph_prototype>
</graph_prototypes>
</discovery_rule>
</discovery_rules>
<macros>
<macro>
<macro>{$SNMP_COMMUNITY}</macro>
<value>public</value>
</macro>
</macros>
</template>
</templates>
</zabbix_export>