zabbix_export: version: '6.0' date: '2021-11-21T21:25:30Z' groups: - uuid: 7b1d1185b835414da783483f686e9825 name: Cisco - uuid: 7df96b18c230490a9a0a9e2307226338 name: Templates templates: - uuid: 51c249eea11145c3a8b995f877fe9426 template: Cisco_Sensors name: Cisco_Sensors description: | ## Overview This template gets informations from optical sensors in Cisco switches/routes. It will get optical transmit and receive power from each optical interface connected in. It uses mibs CISCO-ENTITY-SENSOR-MIB and CISCO-ENVMON-MIB. Do not forget to add this lines to snmp.conf! mibs +CISCO-ENTITY-SENSOR-MIB mibs +CISCO-ENVMON-MIB After discovery, template finds all connected GBICs and get informations about thresholds and signal levels. There are triggers included which will be PROBLEM if signal level is out of range or if signal level changes in time. Just apply template to your box and set macro {$SNMP\_COMMUNITY} to fit your needs. ## Author Lukas Macura groups: - name: Cisco - name: Templates discovery_rules: - uuid: 46650b518290483fa77c5e8f4a147ec9 name: 'Sensors discovery' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},ENTITY-MIB::entPhysicalDescr]' key: snmp.discoverysensors delay: '180' filter: evaltype: AND conditions: - macro: '{#SNMPVALUE}' value: 'Receive Power|Transmit Power' formulaid: A item_prototypes: - uuid: 991ef4f9344a44caac99d4017b5e4133 name: 'Sensor threshold eval 1: {#SNMPVALUE}' type: SNMP_AGENT snmp_oid: 'CISCO-ENTITY-SENSOR-MIB::entSensorThresholdEvaluation.{#SNMPINDEX}.1' key: 'sensorte1[{#SNMPINDEX}]' delay: '300' history: 7d trends: 30d valuemap: name: SensorTresholdEval tags: - tag: Application value: Sensors - uuid: a224be4e86fc4f09a56fcdc5f399f8fb name: 'Sensor threshold eval 2: {#SNMPVALUE}' type: SNMP_AGENT snmp_oid: 'CISCO-ENTITY-SENSOR-MIB::entSensorThresholdEvaluation.{#SNMPINDEX}.2' key: 'sensorte2[{#SNMPINDEX}]' delay: '300' history: 7d trends: 30d valuemap: name: SensorTresholdEval tags: - tag: Application value: Sensors - uuid: 83d59d50e1484244a044e47014e3aa57 name: 'Sensor threshold eval 3: {#SNMPVALUE}' type: SNMP_AGENT snmp_oid: 'CISCO-ENTITY-SENSOR-MIB::entSensorThresholdEvaluation.{#SNMPINDEX}.3' key: 'sensorte3[{#SNMPINDEX}]' delay: '300' history: 7d trends: 30d valuemap: name: SensorTresholdEval tags: - tag: Application value: Sensors - uuid: 63da0ffba5c84d598f644e7d6f0649dd name: 'Sensor threshold eval 4: {#SNMPVALUE}' type: SNMP_AGENT snmp_oid: 'CISCO-ENTITY-SENSOR-MIB::entSensorThresholdEvaluation.{#SNMPINDEX}.4' key: 'sensorte4[{#SNMPINDEX}]' delay: '300' history: 7d trends: 30d valuemap: name: SensorTresholdEval tags: - tag: Application value: Sensors - uuid: e616208b9aa248c3b9ca465dbc607dfb name: 'Sensor threshold relation 1: {#SNMPVALUE}' type: SNMP_AGENT snmp_oid: 'CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.{#SNMPINDEX}.1' key: 'sensortr1[{#SNMPINDEX}]' delay: '300' history: 7d trends: 30d valuemap: name: SensorTresholdRel tags: - tag: Application value: Sensors - uuid: 78768c99214d458b84fbadfe7af1e4ff name: 'Sensor threshold relation 2: {#SNMPVALUE}' type: SNMP_AGENT snmp_oid: 'CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.{#SNMPINDEX}.2' key: 'sensortr2[{#SNMPINDEX}]' delay: '300' history: 7d trends: 30d valuemap: name: SensorTresholdRel tags: - tag: Application value: Sensors - uuid: 96317ad07d7241ca9d8d0a1c8f3d27b9 name: 'Sensor threshold relation 3: {#SNMPVALUE}' type: SNMP_AGENT snmp_oid: 'CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.{#SNMPINDEX}.3' key: 'sensortr3[{#SNMPINDEX}]' delay: '300' history: 7d trends: 30d valuemap: name: SensorTresholdRel tags: - tag: Application value: Sensors - uuid: 1456eae7f56c4cb4bf9d5dee3ce02df2 name: 'Sensor threshold relation 4: {#SNMPVALUE}' type: SNMP_AGENT snmp_oid: 'CISCO-ENTITY-SENSOR-MIB::entSensorThresholdRelation.{#SNMPINDEX}.4' key: 'sensortr4[{#SNMPINDEX}]' delay: '300' history: 7d trends: 30d valuemap: name: SensorTresholdRel tags: - tag: Application value: Sensors - uuid: c8ade67dcc59483dbda860a26c8c4bcb name: 'Sensor threshold severity 1: {#SNMPVALUE}' type: SNMP_AGENT snmp_oid: 'CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.{#SNMPINDEX}.1' key: 'sensorts1[{#SNMPINDEX}]' delay: '300' history: 7d trends: 30d valuemap: name: SensorTresholdSeverity tags: - tag: Application value: Sensors - uuid: 886ea084d639477e95f212e9cba85933 name: 'Sensor threshold severity 2: {#SNMPVALUE}' type: SNMP_AGENT snmp_oid: 'CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.{#SNMPINDEX}.2' key: 'sensorts2[{#SNMPINDEX}]' delay: '300' history: 7d trends: 30d valuemap: name: SensorTresholdSeverity tags: - tag: Application value: Sensors - uuid: 6f3d98fde4b345db808548fc87f59be9 name: 'Sensor threshold severity 3: {#SNMPVALUE}' type: SNMP_AGENT snmp_oid: 'CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.{#SNMPINDEX}.3' key: 'sensorts3[{#SNMPINDEX}]' delay: '300' history: 7d trends: 30d valuemap: name: SensorTresholdSeverity tags: - tag: Application value: Sensors - uuid: 4304a9ceded4452f9995b283409db2ce name: 'Sensor threshold severity 4: {#SNMPVALUE}' type: SNMP_AGENT snmp_oid: 'CISCO-ENTITY-SENSOR-MIB::entSensorThresholdSeverity.{#SNMPINDEX}.4' key: 'sensorts4[{#SNMPINDEX}]' delay: '300' history: 7d trends: 30d valuemap: name: SensorTresholdSeverity tags: - tag: Application value: Sensors - uuid: 0694ed41a3264958bcff44842ec39eaa name: 'Sensor threshold value 1: {#SNMPVALUE}' type: SNMP_AGENT snmp_oid: 'CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.{#SNMPINDEX}.1' key: 'sensortv1[{#SNMPINDEX}]' delay: '300' history: 7d trends: 30d value_type: FLOAT preprocessing: - type: MULTIPLIER parameters: - '0.1' tags: - tag: Application value: Sensors - uuid: ed1a087beeca4e3aa1f45647d20029ad name: 'Sensor threshold value 2: {#SNMPVALUE}' type: SNMP_AGENT snmp_oid: 'CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.{#SNMPINDEX}.2' key: 'sensortv2[{#SNMPINDEX}]' delay: '300' history: 7d trends: 30d value_type: FLOAT preprocessing: - type: MULTIPLIER parameters: - '0.1' tags: - tag: Application value: Sensors - uuid: cf4bc40b012c45bbb5a76726d6273762 name: 'Sensor threshold value 3: {#SNMPVALUE}' type: SNMP_AGENT snmp_oid: 'CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.{#SNMPINDEX}.3' key: 'sensortv3[{#SNMPINDEX}]' delay: '300' history: 7d trends: 30d value_type: FLOAT preprocessing: - type: MULTIPLIER parameters: - '0.1' tags: - tag: Application value: Sensors - uuid: 225c92b947784222bb50fd8af3efc221 name: 'Sensor threshold value 4: {#SNMPVALUE}' type: SNMP_AGENT snmp_oid: 'CISCO-ENTITY-SENSOR-MIB::entSensorThresholdValue.{#SNMPINDEX}.4' key: 'sensortv4[{#SNMPINDEX}]' delay: '300' history: 7d trends: 30d value_type: FLOAT preprocessing: - type: MULTIPLIER parameters: - '0.1' tags: - tag: Application value: Sensors - uuid: 5f109593ffd64fddaf997e42c23fd721 name: 'Sensor value: {#SNMPVALUE}' type: SNMP_AGENT snmp_oid: 'CISCO-ENTITY-SENSOR-MIB::entSensorValue.{#SNMPINDEX}' key: 'sensorvalue[{#SNMPINDEX}]' delay: '300' history: 7d trends: 30d value_type: FLOAT preprocessing: - type: MULTIPLIER parameters: - '0.1' tags: - tag: Application value: Sensors trigger_prototypes: - uuid: d35162622daf4d30816e64f440e8dde2 expression: '(max(/Cisco_Sensors/sensorvalue[{#SNMPINDEX}],#1)-min(/Cisco_Sensors/sensorvalue[{#SNMPINDEX}],#1))>0.1' name: 'Sensor {#SNMPVALUE} changed more than 0.1dB!' priority: WARNING - uuid: 30816427c1e64e6db82acbe20e7f2ccb expression: '(max(/Cisco_Sensors/sensorvalue[{#SNMPINDEX}],#1)-min(/Cisco_Sensors/sensorvalue[{#SNMPINDEX}],#1))>=1' name: 'Sensor {#SNMPVALUE} changed more than 1dB!' priority: HIGH trigger_prototypes: - uuid: bf7d1ae853f5493e8684f16453ddc272 expression: | last(/Cisco_Sensors/sensorte1[{#SNMPINDEX}])=1 and last(/Cisco_Sensors/sensorts1[{#SNMPINDEX}])=20 name: 'Sensor {#SNMPVALUE} over threshold (alert)' priority: HIGH - uuid: 70a44aeba3d944a681aedac141af3463 expression: | last(/Cisco_Sensors/sensorte2[{#SNMPINDEX}])=1 and last(/Cisco_Sensors/sensorts2[{#SNMPINDEX}])=20 name: 'Sensor {#SNMPVALUE} over threshold (alert)' priority: HIGH - uuid: 84b3fe7e45ae4289b76b276b815373ff expression: | last(/Cisco_Sensors/sensorte3[{#SNMPINDEX}])=1 and last(/Cisco_Sensors/sensorts3[{#SNMPINDEX}])=20 name: 'Sensor {#SNMPVALUE} over threshold (alert)' priority: HIGH - uuid: 74ece1b6f0fd40a584915075148ffb27 expression: | last(/Cisco_Sensors/sensorte4[{#SNMPINDEX}])=1 and last(/Cisco_Sensors/sensorts4[{#SNMPINDEX}])=20 name: 'Sensor {#SNMPVALUE} over threshold (alert)' priority: HIGH - uuid: a9859d18114f4331b779a8f4bb9ad2a4 expression: | last(/Cisco_Sensors/sensorte1[{#SNMPINDEX}])=1 and last(/Cisco_Sensors/sensorts1[{#SNMPINDEX}])=30 name: 'Sensor {#SNMPVALUE} over threshold (critical)' priority: DISASTER - uuid: 86c21c6c0e18496db8f1d4e206d47e83 expression: | last(/Cisco_Sensors/sensorte2[{#SNMPINDEX}])=1 and last(/Cisco_Sensors/sensorts2[{#SNMPINDEX}])=30 name: 'Sensor {#SNMPVALUE} over threshold (critical)' priority: DISASTER - uuid: 9d84c6cbba8f43858f7d45fe9484f38a expression: | last(/Cisco_Sensors/sensorte3[{#SNMPINDEX}])=1 and last(/Cisco_Sensors/sensorts3[{#SNMPINDEX}])=30 name: 'Sensor {#SNMPVALUE} over threshold (critical)' priority: DISASTER - uuid: 391f4139195d4d03a3667b67742f9fec expression: | last(/Cisco_Sensors/sensorte4[{#SNMPINDEX}])=1 and last(/Cisco_Sensors/sensorts4[{#SNMPINDEX}])=30 name: 'Sensor {#SNMPVALUE} over threshold (critical)' priority: DISASTER - uuid: 4141d95151de42fb8798530e9787fdf2 expression: | last(/Cisco_Sensors/sensorte1[{#SNMPINDEX}])=1 and last(/Cisco_Sensors/sensorts1[{#SNMPINDEX}])=10 name: 'Sensor {#SNMPVALUE} over threshold (warning)' priority: AVERAGE - uuid: 1f2155103521404a91faa8dc73a5e55f expression: | last(/Cisco_Sensors/sensorte2[{#SNMPINDEX}])=1 and last(/Cisco_Sensors/sensorts2[{#SNMPINDEX}])=10 name: 'Sensor {#SNMPVALUE} over threshold (warning)' priority: AVERAGE - uuid: 3805d9c14aab4526b1400f6e8560bfaa expression: | last(/Cisco_Sensors/sensorte3[{#SNMPINDEX}])=1 and last(/Cisco_Sensors/sensorts3[{#SNMPINDEX}])=10 name: 'Sensor {#SNMPVALUE} over threshold (warning)' priority: AVERAGE - uuid: b376f8f8b5c54d55a44449ff49791309 expression: | last(/Cisco_Sensors/sensorte4[{#SNMPINDEX}])=1 and last(/Cisco_Sensors/sensorts4[{#SNMPINDEX}])=10 name: 'Sensor {#SNMPVALUE} over threshold (warning)' priority: AVERAGE graph_prototypes: - uuid: 98ed6849f18c49ee96770a2d0651ad6e name: 'Sensor {#SNMPVALUE}' graph_items: - color: 1A7C11 item: host: Cisco_Sensors key: 'sensortv1[{#SNMPINDEX}]' - sortorder: '1' color: F63100 item: host: Cisco_Sensors key: 'sensortv2[{#SNMPINDEX}]' - sortorder: '2' color: 2774A4 item: host: Cisco_Sensors key: 'sensortv3[{#SNMPINDEX}]' - sortorder: '3' color: A54F10 item: host: Cisco_Sensors key: 'sensortv4[{#SNMPINDEX}]' - sortorder: '4' drawtype: BOLD_LINE color: 00CC00 item: host: Cisco_Sensors key: 'sensorvalue[{#SNMPINDEX}]' macros: - macro: '{$SNMP_COMMUNITY}' value: public valuemaps: - uuid: ba325b37e6144da09d132dfd5fa7aafa name: SensorTresholdEval mappings: - value: '1' newvalue: 'true' - value: '2' newvalue: 'false' - uuid: 7e187bf703474c5ca6c0cc25888f86dd name: SensorTresholdRel mappings: - value: '1' newvalue: lessThan - value: '2' newvalue: lessOrEqual - value: '3' newvalue: greaterThan - value: '4' newvalue: greaterOrEqual - value: '5' newvalue: equalTo - value: '6' newvalue: notEqualTo - uuid: dc880c61c2f14673a8789778655a4925 name: SensorTresholdSeverity mappings: - value: '1' newvalue: other - value: '10' newvalue: minor - value: '20' newvalue: major - value: '30' newvalue: critical