zabbix_export: version: '5.4' date: '2021-11-21T21:39:32Z' groups: - uuid: f1537448b0da4ebb870d18790c1cec56 name: 'Templates SNMP Devices' templates: - uuid: 5fecdbbfbb8140488bf9d746be59a345 template: 'Cisco IPsec VPN discovering' name: 'Cisco IPsec VPN discovering' description: | ## Overview Zabbix SNMP template for discovering and monitoring cisco IPsec tunnels [github](https://github.com/Denis1215/Zabbix "This project on the github") howto: 1. Import template to zabbix 2. Put MIB files to the folder /usr/share/snmp/mibs/ 3. Add host (cisco router) to zabbix (snmp) 4. Add template to the host Required MIB files: CISCO-IPSEC-FLOW-MONITOR-MIB.my SNMPv2-SMI.my SNMPv2-CONF.my SNMPv2-TC.my CISCO-MEDIA-GATEWAY-MIB.my CISCO-SMI.my ## Author Denis Pavlov groups: - name: 'Templates SNMP Devices' discovery_rules: - uuid: 339762576ece4efa9cec76b4ab65ef62 name: 'VPN Tunnels' type: SNMP_AGENT snmp_oid: 'discovery[{#LOCAL},CISCO-IPSEC-FLOW-MONITOR-MIB::cikeTunLocalValue,{#REMOTE},CISCO-IPSEC-FLOW-MONITOR-MIB::cikeTunRemoteValue]' key: cikeTunActiveTime delay: 10m lifetime: 3d item_prototypes: - uuid: f20d75136a07494c9532ac84aeb3d7c4 name: 'Active time of tunnel {#LOCAL}---{#REMOTE}' type: SNMP_AGENT snmp_oid: 'CISCO-IPSEC-FLOW-MONITOR-MIB::cikeTunActiveTime.{#SNMPINDEX}' key: 'cikeTunActiveTime[{#LOCAL}---{#REMOTE}]' history: 1w trends: 90d units: 'hundredths of seconds' tags: - tag: Application value: 'IPsec VPN items' - uuid: bd4d2870c5a6481bac80f935bd12c925 name: 'In bytes of tunnel {#LOCAL}---{#REMOTE}' type: SNMP_AGENT snmp_oid: 'CISCO-IPSEC-FLOW-MONITOR-MIB::cikeTunInOctets.{#SNMPINDEX}' key: 'cikeTunInOctets[{#LOCAL}---{#REMOTE}]' history: 1w trends: 90d units: bytes tags: - tag: Application value: 'IPsec VPN items' - uuid: f507c289de94409ab5975daeadccba4e name: 'In packets of tunnel {#LOCAL}---{#REMOTE}' type: SNMP_AGENT snmp_oid: 'CISCO-IPSEC-FLOW-MONITOR-MIB::cikeTunInPkts.{#SNMPINDEX}' key: 'cikeTunInPkts[{#LOCAL}---{#REMOTE}]' history: 1w trends: 90d units: Packets tags: - tag: Application value: 'IPsec VPN items' - uuid: 625374baf2cb43fa908e5bef6d132f97 name: 'Out bytes of tunnel {#LOCAL}---{#REMOTE}' type: SNMP_AGENT snmp_oid: 'CISCO-IPSEC-FLOW-MONITOR-MIB::cikeTunOutOctets.{#SNMPINDEX}' key: 'cikeTunOutOctets[{#LOCAL}---{#REMOTE}]' history: 1w trends: 90d units: bytes tags: - tag: Application value: 'IPsec VPN items' - uuid: ae87b6bd1ef941218d016a13e86a76c3 name: 'Out packets of tunnel {#LOCAL}---{#REMOTE}' type: SNMP_AGENT snmp_oid: 'CISCO-IPSEC-FLOW-MONITOR-MIB::cikeTunOutPkts.{#SNMPINDEX}' key: 'cikeTunOutPkts[{#LOCAL}---{#REMOTE}]' history: 1w trends: 90d units: Packets tags: - tag: Application value: 'IPsec VPN items' - uuid: 2e25f098b4474de5a1a7c3fa0b3b43cc name: 'Status of tunnel {#LOCAL}---{#REMOTE}' type: SNMP_AGENT snmp_oid: 'CISCO-IPSEC-FLOW-MONITOR-MIB::cikeTunStatus.{#SNMPINDEX}' key: 'cikeTunStatus[{#LOCAL}---{#REMOTE}]' history: 1w trends: 90d request_method: POST tags: - tag: Application value: 'IPsec VPN items' trigger_prototypes: - uuid: 623fb4b82f4e460bacf8637ccb09b872 expression: 'last(/Cisco IPsec VPN discovering/cikeTunStatus[{#LOCAL}---{#REMOTE}])=0 or nodata(/Cisco IPsec VPN discovering/cikeTunStatus[{#LOCAL}---{#REMOTE}],3m)=1' name: 'Status of tunnel {#LOCAL}---{#REMOTE} not up or no data received' priority: WARNING request_method: POST