forked from zabbix/community-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Cisco Nexus 9k Temperature template
- Loading branch information
Showing
3 changed files
with
147 additions
and
0 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
Network_Devices/Cisco/template_cisco_nexus_9k_temperature/5.0/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Cisco Nexus 9000 Temperature Check | ||
|
||
|
||
## Overview | ||
|
||
Check temperature sensors on a Cisco Nexus 9000 switch and alert when out of range | ||
|
||
|
||
## Author | ||
|
||
John W Kerns (https://github.com/PackeTsar) | ||
|
||
|
||
## Macros used | ||
|
||
There are no macros in this template. | ||
|
||
|
||
## Template links | ||
- [zabbix_template_cisco_nexus_9k_temperature.xml](zabbix_template_cisco_nexus_9k_temperature.xml) | ||
|
||
|
||
## Discovery rules | ||
|
||
|Name|Description|Type|Key and additional info| | ||
|----|-----------|----|----| | ||
| Temperature Sensors | Enumerate temperature sensors on switch an create a prototype for each | `SNMP Agent` | temp.sensors Update: 24h | | ||
|
||
|
||
## Items collected | ||
|
||
|Name|Description|Type|Key and additional info| | ||
|----|-----------|----|----| | ||
| {#SENSORNAME} Temperature Warning Threshold | Warning temperature threshold for this sensor position | `SNMP Agent` | temp.warning[{#SNMPINDEX}] Update: 24h | | ||
| {#SENSORNAME} Temperature Critical Threshold | Critical temperature threshold for this sensor position | `SNMP Agent` | temp.critical[{#SNMPINDEX}] Update: 24h | | ||
| {#SENSORNAME} Temperature Sensor | Actual temperature reading from this sensor | `SNMP Agent` | temp.sensors[{#SNMPINDEX}] | | ||
|
||
|
||
## Triggers | ||
|
||
|Name|Description|Expression|Priority| | ||
|----|-----------|----------|--------| | ||
| {#SENSORNAME} Temperature Warning | Temperature is above warning threshold | `{Template Cisco Nexus 9000 Temperature:temp.sensors[{#SNMPINDEX}].last()}>={Template Cisco Nexus 9000 Temperature:temp.warning[{#SNMPINDEX}].last()}` | Warning | | ||
| {#SENSORNAME} Temperature Critical | Temperature is above critical threshold | `{Template Cisco Nexus 9000 Temperature:temp.sensors[{#SNMPINDEX}].last()}>={Template Cisco Nexus 9000 Temperature:temp.critical[{#SNMPINDEX}].last()}` | High | |
102 changes: 102 additions & 0 deletions
102
...co/template_cisco_nexus_9k_temperature/5.0/zabbix_template_cisco_nexus_9k_temperature.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<zabbix_export> | ||
<version>5.0</version> | ||
<date>2022-02-21T21:53:09Z</date> | ||
<groups> | ||
<group> | ||
<name>Templates</name> | ||
</group> | ||
</groups> | ||
<templates> | ||
<template> | ||
<template>Template Cisco Nexus 9000 Temperature</template> | ||
<name>Template Cisco Nexus 9000 Temperature</name> | ||
<groups> | ||
<group> | ||
<name>Templates</name> | ||
</group> | ||
</groups> | ||
<applications> | ||
<application> | ||
<name>Environmental</name> | ||
</application> | ||
</applications> | ||
<discovery_rules> | ||
<discovery_rule> | ||
<name>Temperature Sensors</name> | ||
<type>SNMP_AGENT</type> | ||
<snmp_oid>discovery[{#SNMPVALUE},.1.3.6.1.4.1.9.9.91.1.1.1.1.4,{#SENSORNAME},.1.3.6.1.2.1.47.1.1.1.1.2]</snmp_oid> | ||
<key>temp.sensors</key> | ||
<delay>24h</delay> | ||
<filter> | ||
<conditions> | ||
<condition> | ||
<macro>{#SNMPINDEX}</macro> | ||
<value>38...</value> | ||
<formulaid>A</formulaid> | ||
</condition> | ||
</conditions> | ||
</filter> | ||
<item_prototypes> | ||
<item_prototype> | ||
<name>{#SENSORNAME} Temperature Critical Threshold</name> | ||
<type>SNMP_AGENT</type> | ||
<snmp_oid>.1.3.6.1.4.1.9.9.91.1.2.1.1.4.{#SNMPINDEX}.2</snmp_oid> | ||
<key>temp.critical[{#SNMPINDEX}]</key> | ||
<delay>24h</delay> | ||
<units>C</units> | ||
<applications> | ||
<application> | ||
<name>Environmental</name> | ||
</application> | ||
</applications> | ||
</item_prototype> | ||
<item_prototype> | ||
<name>{#SENSORNAME} Temperature Sensor</name> | ||
<type>SNMP_AGENT</type> | ||
<snmp_oid>.1.3.6.1.4.1.9.9.91.1.1.1.1.4.{#SNMPINDEX}</snmp_oid> | ||
<key>temp.sensors[{#SNMPINDEX}]</key> | ||
<units>C</units> | ||
<applications> | ||
<application> | ||
<name>Environmental</name> | ||
</application> | ||
</applications> | ||
</item_prototype> | ||
<item_prototype> | ||
<name>{#SENSORNAME} Temperature Warning Threshold</name> | ||
<type>SNMP_AGENT</type> | ||
<snmp_oid>.1.3.6.1.4.1.9.9.91.1.2.1.1.4.{#SNMPINDEX}.1</snmp_oid> | ||
<key>temp.warning[{#SNMPINDEX}]</key> | ||
<delay>24h</delay> | ||
<units>C</units> | ||
<applications> | ||
<application> | ||
<name>Environmental</name> | ||
</application> | ||
</applications> | ||
</item_prototype> | ||
</item_prototypes> | ||
<trigger_prototypes> | ||
<trigger_prototype> | ||
<expression>{Template Cisco Nexus 9000 Temperature:temp.sensors[{#SNMPINDEX}].last()}>={Template Cisco Nexus 9000 Temperature:temp.critical[{#SNMPINDEX}].last()}</expression> | ||
<name>{#SENSORNAME} Temperature Critical</name> | ||
<priority>HIGH</priority> | ||
</trigger_prototype> | ||
<trigger_prototype> | ||
<expression>{Template Cisco Nexus 9000 Temperature:temp.sensors[{#SNMPINDEX}].last()}>={Template Cisco Nexus 9000 Temperature:temp.warning[{#SNMPINDEX}].last()}</expression> | ||
<name>{#SENSORNAME} Temperature Warning</name> | ||
<priority>WARNING</priority> | ||
<dependencies> | ||
<dependency> | ||
<name>{#SENSORNAME} Temperature Critical</name> | ||
<expression>{Template Cisco Nexus 9000 Temperature:temp.sensors[{#SNMPINDEX}].last()}>={Template Cisco Nexus 9000 Temperature:temp.critical[{#SNMPINDEX}].last()}</expression> | ||
</dependency> | ||
</dependencies> | ||
</trigger_prototype> | ||
</trigger_prototypes> | ||
</discovery_rule> | ||
</discovery_rules> | ||
</template> | ||
</templates> | ||
</zabbix_export> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters