Skip to content

Commit

Permalink
Added Cisco Nexus 9k Temperature template
Browse files Browse the repository at this point in the history
  • Loading branch information
PackeTsar committed Feb 21, 2022
1 parent c5c05f7 commit fc809fc
Show file tree
Hide file tree
Showing 3 changed files with 147 additions and 0 deletions.
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 |
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()}&gt;={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()}&gt;={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()}&gt;={Template Cisco Nexus 9000 Temperature:temp.critical[{#SNMPINDEX}].last()}</expression>
</dependency>
</dependencies>
</trigger_prototype>
</trigger_prototypes>
</discovery_rule>
</discovery_rules>
</template>
</templates>
</zabbix_export>
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ This repository is dedicated to templates that are created and maintained by Zab
* [SNMP Cisco IP SLA](Network_Devices/Cisco/template_cisco_ip_sla_discovery_1)
* [Cisco IPsec VPN discovering](Network_Devices/Cisco/template_cisco_ipsec_vpn_discovering)
* [tpl_part_network_cisco_all_performance](Network_Devices/Cisco/template_cisco_memory_and_cpu)
* [Cisco Nexus 9K Temperature](Network_Devices/Cisco/template_cisco_nexus_9k_temperature)
* [Cisco_SG200-26P](Network_Devices/Cisco/template_cisco_sg200-26p)
* [Cisco_SG300-52-d](Network_Devices/Cisco/template_cisco_sg300_and_sg200)
* [SG500X_48P](Network_Devices/Cisco/template_cisco_sg500_48p)
Expand Down

0 comments on commit fc809fc

Please sign in to comment.