zabbix_export: version: '6.0' date: '2021-11-21T21:43:50Z' groups: - uuid: fd49e497e9214728aa33c257a0573318 name: MakroSwitches templates: - uuid: cd9ec682fdd84ee797b9da379f422700 template: 'Basic HUAWEI SNMP with traps AR161 and S2220E' name: 'Basic HUAWEI SNMP with traps AR161 and S2220E' description: | ## Author rkarepanov@gmail.com groups: - name: MakroSwitches items: - uuid: 721fc60cba9d4cbe9f2bf58237d53dbf name: 'CPU Usage' type: SNMP_AGENT snmp_oid: 1.3.6.1.4.1.2011.5.25.31.1.1.1.1.45.9 key: cpmCPUTotal5min delay: '300' history: 10d units: '%' tags: - tag: Application value: 'Enterprise MIB' triggers: - uuid: 09d6ddd1438843cf8af4b4fc3c35befa expression: 'last(/Basic HUAWEI SNMP with traps AR161 and S2220E/cpmCPUTotal5min)>70' name: 'High CPU load on {HOST.NAME}' url: 'events.php?triggerid={TRIGGER.ID}' priority: HIGH - uuid: d1fd2530f21c41ef9d17b286f5b527b7 name: 'Memory usage' type: SNMP_AGENT snmp_oid: 1.3.6.1.4.1.2011.5.25.31.1.1.1.1.7.9 key: MemoryPoolUsed delay: '300' history: 10d units: '%' tags: - tag: Application value: 'Enterprise MIB' - uuid: b718b78ff7a747dd8a8611883f626530 name: MIB-trap-BGP type: SNMP_TRAP key: 'snmptrap["(CISCO.*MIB)((.|[[:space:]])*)(BGP)"]' delay: '0' history: 10d trends: '0' value_type: LOG logtimefmt: 'hh:mm:ss yyyy/MM/dd' tags: - tag: Application value: 'SNMP trap' triggers: - uuid: c12b7f78e78246f79136f7fdaac7bb67 expression: 'find(/Basic HUAWEI SNMP with traps AR161 and S2220E/snmptrap["(CISCO.*MIB)((.|[[:space:]])*)(BGP)"],,"regexp","hold time expired") and nodata(/Basic HUAWEI SNMP with traps AR161 and S2220E/snmptrap["(CISCO.*MIB)((.|[[:space:]])*)(BGP)"],1h)=0' name: 'BGP hold time expired on {HOST.NAME}' url: 'events.php?triggerid={TRIGGER.ID}' priority: HIGH - uuid: ebad2da98a934065b965f582181c4dae name: MIB-trap-LOGIN type: SNMP_TRAP key: 'snmptrap["(CISCO.*MIB)((.|[[:space:]])*)(LOGIN)"]' delay: '0' history: 10d trends: '0' value_type: LOG logtimefmt: 'hh:mm:ss yyyy/MM/dd' tags: - tag: Application value: 'SNMP trap' triggers: - uuid: 8ae0a0fce87f4800b2310520bf57e01d expression: 'find(/Basic HUAWEI SNMP with traps AR161 and S2220E/snmptrap["(CISCO.*MIB)((.|[[:space:]])*)(LOGIN)"],,"regexp","LOGIN_FAILED") and nodata(/Basic HUAWEI SNMP with traps AR161 and S2220E/snmptrap["(CISCO.*MIB)((.|[[:space:]])*)(LOGIN)"],1h)=0' name: 'Login Auth Error on {HOST.NAME}' url: 'events.php?triggerid={TRIGGER.ID}' priority: WARNING - uuid: c1681645d5e1426596a23bf123572f53 expression: 'find(/Basic HUAWEI SNMP with traps AR161 and S2220E/snmptrap["(CISCO.*MIB)((.|[[:space:]])*)(LOGIN)"],,"regexp","LOGIN_SUCCESS") and nodata(/Basic HUAWEI SNMP with traps AR161 and S2220E/snmptrap["(CISCO.*MIB)((.|[[:space:]])*)(LOGIN)"],1h)=0' name: 'Login Auth Success on {HOST.NAME}' url: 'events.php?triggerid={TRIGGER.ID}' - uuid: 0125ee96192f4f668a306c4cae435f88 name: MIB-trap-SLA type: SNMP_TRAP key: 'snmptrap["(CISCO.*MIB)((.|[[:space:]])*)(SLA)"]' delay: '0' history: 10d trends: '0' value_type: LOG logtimefmt: 'hh:mm:ss yyyy/MM/dd' tags: - tag: Application value: 'SNMP trap' triggers: - uuid: bf04cbd0a98b499f98effd110e5fcebe expression: 'find(/Basic HUAWEI SNMP with traps AR161 and S2220E/snmptrap["(CISCO.*MIB)((.|[[:space:]])*)(SLA)"],,"regexp","IPSLATHRESHOLD") and find(/Basic HUAWEI SNMP with traps AR161 and S2220E/snmptrap["(CISCO.*MIB)((.|[[:space:]])*)(SLA)"],,"regexp","Threshold Cleared|below") and nodata(/Basic HUAWEI SNMP with traps AR161 and S2220E/snmptrap["(CISCO.*MIB)((.|[[:space:]])*)(SLA)"],1h)=0' name: 'IP SLA restored on {HOST.NAME}' url: 'events.php?triggerid={TRIGGER.ID}' priority: INFO - uuid: 8aa28b45d5de4578812973abb91c47d5 expression: 'find(/Basic HUAWEI SNMP with traps AR161 and S2220E/snmptrap["(CISCO.*MIB)((.|[[:space:]])*)(SLA)"],,"regexp","IPSLATHRESHOLD") and find(/Basic HUAWEI SNMP with traps AR161 and S2220E/snmptrap["(CISCO.*MIB)((.|[[:space:]])*)(SLA)"],,"regexp","Threshold Occurred|exceeded") and nodata(/Basic HUAWEI SNMP with traps AR161 and S2220E/snmptrap["(CISCO.*MIB)((.|[[:space:]])*)(SLA)"],1h)=0' name: 'IP SLA violated on {HOST.NAME}' url: 'events.php?triggerid={TRIGGER.ID}' priority: AVERAGE - uuid: 7207bde97b9b4a0093b1f22eef27a614 name: CONFIG-MAN-MIB-trap type: SNMP_TRAP key: 'snmptrap["CISCO-CONFIG-MAN-MIB"]' delay: '0' history: 10d trends: '0' value_type: LOG logtimefmt: 'hh:mm:ss yyyy/MM/dd' tags: - tag: Application value: 'SNMP trap' triggers: - uuid: c6b91c94329d42459348de0bf0184027 expression: 'find(/Basic HUAWEI SNMP with traps AR161 and S2220E/snmptrap["CISCO-CONFIG-MAN-MIB"],,"regexp","ccmHistoryEventConfigDestination.*value=INTEGER: 2") and nodata(/Basic HUAWEI SNMP with traps AR161 and S2220E/snmptrap["CISCO-CONFIG-MAN-MIB"],1h)=0' name: '"Show run" executed on {HOST.NAME}' url: 'events.php?triggerid={TRIGGER.ID}' description: | WORK! events.php?triggerid={TRIGGER.ID} events.php?triggerid={TRIGGER.ID}&period=3600 - uuid: 3192abf2d1314fbd937f2085e21879db expression: 'find(/Basic HUAWEI SNMP with traps AR161 and S2220E/snmptrap["CISCO-CONFIG-MAN-MIB"],,"regexp","ccmHistoryEventConfigDestination.*value=INTEGER: 3") and nodata(/Basic HUAWEI SNMP with traps AR161 and S2220E/snmptrap["CISCO-CONFIG-MAN-MIB"],1h)=0' name: 'Enter to config mode on {HOST.NAME}' url: 'events.php?triggerid={TRIGGER.ID}' - uuid: c33b99f6c6494c5abedf55c7667ebc0c expression: 'find(/Basic HUAWEI SNMP with traps AR161 and S2220E/snmptrap["CISCO-CONFIG-MAN-MIB"],,"regexp","ccmHistoryEventConfigDestination.*value=INTEGER: 4") and nodata(/Basic HUAWEI SNMP with traps AR161 and S2220E/snmptrap["CISCO-CONFIG-MAN-MIB"],1h)=0' name: 'startup config changed on {HOST.NAME}' url: 'events.php?triggerid={TRIGGER.ID}' - uuid: 00edbf706fd04e84bcee25957d5619c7 name: Temperature type: SNMP_AGENT snmp_oid: 1.3.6.1.4.1.2011.5.25.31.1.1.1.1.11.9 key: tempofhuawei delay: '300' units: '° C' triggers: - uuid: 4e06916841df40609c3ab1e9660bb815 expression: 'last(/Basic HUAWEI SNMP with traps AR161 and S2220E/tempofhuawei,#1:now-60s)>60' name: 'Temperature to high on: {HOST.NAME}:{#SNMPVALUE}' url: 'events.php?triggerid={TRIGGER.ID}' priority: DISASTER - uuid: badf7226cf5e4b28a7025df63d384e40 name: uptime type: SNMP_AGENT snmp_oid: 'SNMP-FRAMEWORK-MIB::snmpEngineTime.0' key: uptime delay: '30' units: uptime tags: - tag: Application value: 'Uptime device' discovery_rules: - uuid: 3f0c20ce5ec44f71afbd5b57aee70a73 name: 'Huawei chassis component' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},.1.3.6.1.4.1.9.9.92.1.1.1.3]' key: ceAssetOrderablePartNumber delay: '60' lifetime: 10d description: 'Searches the Cisco MIB for the chassis model and blades.' item_prototypes: - uuid: c7953215d9954010afe3be44b447c04d name: 'Cisco P/N: "$1"' type: SNMP_AGENT snmp_oid: '1.3.6.1.4.1.9.9.92.1.1.1.3.{#SNMPINDEX}' key: 'ceAssetOrderablePartNumber[{#SNMPVALUE}]' delay: '86400' history: 10d trends: '0' value_type: CHAR tags: - tag: Application value: 'Enterprise MIB' - uuid: 863030df697b471281115d80f539b2d9 name: 'Fan Sensors detect' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},.1.3.6.1.4.1.9.9.13.1.4.1.2]' key: ciscoEnvMonFanStatusDescr delay: '60' lifetime: 10d description: 'Searches the CISCO-ENVMON-MIB for the Fan sensors, use ciscoEnvMonFanStatusDescr as key.' item_prototypes: - uuid: 589d84186f77405fba8eace205056081 name: 'State of "$1"' type: SNMP_AGENT snmp_oid: '.1.3.6.1.4.1.9.9.13.1.4.1.3.{#SNMPINDEX}' key: 'ciscoEnvMonFanState[{#SNMPVALUE}]' delay: '300' history: 10d valuemap: name: ciscoEnvMonState tags: - tag: Application value: 'Enterprise MIB' trigger_prototypes: - uuid: 0cbb871263b74c14b008f2d6f1ca4e60 expression: 'last(/Basic HUAWEI SNMP with traps AR161 and S2220E/ciscoEnvMonFanState[{#SNMPVALUE}])>1' name: 'Problem with: {HOST.NAME}:{#SNMPVALUE}' url: 'events.php?triggerid={TRIGGER.ID}' priority: HIGH - uuid: 7cc4647f3328479cbe7cb3a67087364a name: 'Power Supply detect' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},.1.3.6.1.4.1.9.9.13.1.5.1.2]' key: ciscoEnvMonSupplyStatusDescr delay: '60' lifetime: 10d description: 'Searches the CISCO-ENVMON-MIB for the Fan sensors, use ciscoEnvMonSupplyStatusDescr as key.' item_prototypes: - uuid: ae890c802bb44780bf2a28c18187ea6e name: 'State of "$1"' type: SNMP_AGENT snmp_oid: '.1.3.6.1.4.1.9.9.13.1.5.1.3.{#SNMPINDEX}' key: 'ciscoEnvMonSupplyState[{#SNMPVALUE}]' delay: '300' history: 10d valuemap: name: ciscoEnvMonState tags: - tag: Application value: 'Enterprise MIB' trigger_prototypes: - uuid: 0f229a8215e44fc581adbe4f2cc38b82 expression: 'last(/Basic HUAWEI SNMP with traps AR161 and S2220E/ciscoEnvMonSupplyState[{#SNMPVALUE}])>6' name: 'Problem with: {HOST.NAME}:{#SNMPVALUE}' url: 'events.php?triggerid={TRIGGER.ID}' priority: INFO dashboards: - uuid: 3c2c869e71d444f99a2a8897aba35da6 name: 'System performance' pages: - widgets: - type: GRAPH_CLASSIC width: '24' height: '5' fields: - type: INTEGER name: source_type value: '0' - type: GRAPH name: graphid value: name: 'Mem/CPU Load on {{HOST.HOST}:sysName.last(0)}' host: 'Basic HUAWEI SNMP with traps AR161 and S2220E' - type: PLAIN_TEXT 'y': '5' width: '24' height: '12' fields: - type: INTEGER name: show_lines value: '25' - type: INTEGER name: show_as_html value: '0' - type: ITEM name: itemids value: key: 'snmptrap["(CISCO.*MIB)((.|[[:space:]])*)(SLA)"]' host: 'Basic HUAWEI SNMP with traps AR161 and S2220E' valuemaps: - uuid: 8db51332d11a4803acefddb781b8f17b name: ciscoEnvMonState mappings: - value: '1' newvalue: normal - value: '2' newvalue: warning - value: '3' newvalue: critical - value: '4' newvalue: critical - value: '5' newvalue: notPresent - value: '6' newvalue: notFunctioning graphs: - uuid: 003d481c785f46e8bac634315601bd26 name: '❆ ° on {{HOST.HOST}:sysName.last(0)}' graph_items: - color: 1A7C11 item: host: 'Basic HUAWEI SNMP with traps AR161 and S2220E' key: tempofhuawei - uuid: 6a8a44f4d5514a5e82e65415994ae02f name: 'Mem/CPU Load on {{HOST.HOST}:sysName.last(0)}' width: '620' graph_items: - color: AA0000 item: host: 'Basic HUAWEI SNMP with traps AR161 and S2220E' key: cpmCPUTotal5min - sortorder: '1' color: '008800' yaxisside: RIGHT item: host: 'Basic HUAWEI SNMP with traps AR161 and S2220E' key: MemoryPoolUsed