5.02021-11-21T21:29:07ZTemplate SwitchesHP A5120HP A5120## Overview
Template for HP A5120 switch with SNMP v3 authPriv.
Included items:
* CPU usage
* Memory usage
* Temperature
* Fan status
* PSU sensor
* Device name, location, description, contact details
* Discovery rule for CRC errors
no links to other templates, does not include standard interface items (use generic SNMP interface template)
I use SNMP V3 with authPriv security level, SHA authentication protocol, AES privacy protocol.
It is required to fill these variables with correct values using host macros.
* Security name: {$SNMP\_V3\_USER}
* Authentication passphrase: {$SNMP\_V3\_AUTHPASSPHRASE}
* Privacy passphrase: {$SNMP\_V3\_PRIVPASSPHRASE}
Created on Zabbix 3.0, should work with newer/older versions.
## Author
Jakub Samek
Template SwitchesCPUCRC ErrorsFanMemoryPower SupplySystemTemperature- External Power Supply 1SNMP_AGENT1.3.6.1.4.1.25506.8.35.9.1.2.1.2.2Ext.Power.Supply607dPower Supply
- Fan 1SNMP_AGENT.1.3.6.1.4.1.25506.8.35.9.1.1.1.2.1fan1.status607dFan
- Internal Power Supply 1SNMP_AGENT.1.3.6.1.4.1.25506.8.35.9.1.2.1.2.1Int.Power.Supply1607dPower Supply
- Power Supply SensorSNMP_AGENT.1.3.6.1.4.1.25506.8.35.9.1.2.1.2.1Power.Supply.Sensor607dPower Supply
- CPU usageSNMP_AGENT1.3.6.1.4.1.25506.2.6.1.1.1.1.6.30switch.cpu607d%CPU{last()}>80CPU usage on {HOST.HOST} > 80%HIGH{last()}>80Memory usage on {HOST.HOST} > 80%HIGH
- Memory usageSNMP_AGENT1.3.6.1.4.1.25506.2.6.1.1.1.1.8.30switch.memory607d%Memory
- Switch TemperatureSNMP_AGENT.1.3.6.1.4.1.25506.2.6.1.1.1.1.12.2switch.temp607dFLOAT°CTemperature({TRIGGER.VALUE}=0 and {last()}>45) or
({TRIGGER.VALUE}=1 and {last()}>40)Temperature on {HOST.HOST} is > 45HIGHTemp to high !
- Device contact detailsSNMP_AGENTSNMPv2-MIB::sysContact.0sysContact36007d0CHARThe textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string.CONTACTSystem
- Device descriptionSNMP_AGENTSNMPv2-MIB::sysDescr.0sysDescr36007d0CHARA textual description of the entity. This value should include the full name and version identification of the system's hardware type, software operating-system, and networking software.HARDWARESystem
- Device locationSNMP_AGENTSNMPv2-MIB::sysLocation.0sysLocation36007d0CHARThe physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string.LOCATIONSystem
- Device nameSNMP_AGENTSNMPv2-MIB::sysName.0sysName36007d0CHARAn administratively-assigned name for this managed node. By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string.NAMESystem
- SysUptimeSNMP_AGENT.1.3.6.1.2.1.1.3.0SysUptime3007d60dFLOATuptimeSystemMULTIPLIER0.01{last(0)}<1000{HOSTNAME} Has been restartedINFO
Network interface errorsSNMP_AGENTdiscovery[{#SNMPVALUE},IF-MIB::ifDescr]ifDescription3600You may also consider using IF-MIB::ifType or IF-MIB::ifAlias for discovery depending on your filtering needs.
{$SNMP_COMMUNITY} is a global macro.CRC errors on interface $1SNMP_AGENTEtherLike-MIB::dot3StatsAlignmentErrors.{#SNMPINDEX}CRC.Errors[{#SNMPVALUE}]1207dCRC Errors{change()}>1CRC Errors on on {HOST.NAME} interface {#SNMPVALUE}http://h20564.www2.hp.com/hpsc/doc/public/display?docId=emr_na-c02597187AVERAGEA Cyclic Redundancy Check (CRC) are a hash function designed to detect accidental changes to raw computer data. A CRC is a short binary sequence present on each block of data. When a block of data is read or received, the device repeats the calculation to check for a match. If the new CRC does not match the original CRC, then a data error is logged and the device can attempt to correct the data error by re-reading or requesting the block of data.CPU usage1A7C11- HP A5120switch.cpu
Memory usage1A7C11- HP A5120switch.memory