Arista

Arista

Arista Networks is the leader in building scalable high-performance and ultra-low-latency networks for today's data center and cloud computing environments.

Available solutions




Source: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/net/arista_snmp


Arista SNMP

Overview

For Zabbix version: 5.2 and higher

This template was tested on:

  • Arista DCS-7050Q-16, version EOS version 4.12.6

Setup

Refer to the vendor documentation.

Zabbix configuration

No specific Zabbix configuration is required.

Macros used

Name Description Default
{$FAN_CRIT_STATUS}

-

3
{$MEMORY.NAME.NOT_MATCHES}

Filter is overriden to ignore RAM(Cache) and RAM(Buffers) memory objects.

(Buffer|Cache)
{$PSU_CRIT_STATUS}

-

2
{$VFS.FS.PUSED.MAX.CRIT}

-

95
{$VFS.FS.PUSED.MAX.WARN}

-

90

Template links

Name
EtherLike-MIB SNMP
Generic SNMP
HOST-RESOURCES-MIB SNMP
Interfaces SNMP

Discovery rules

Name Description Type Key and additional info
Temperature discovery

ENTITY-SENSORS-MIB::EntitySensorDataType discovery with celsius filter

DEPENDENT temp.discovery

Filter:

AND

- B: {#SENSOR_TYPE} MATCHES_REGEX 8

- B: {#SENSOR_PRECISION} MATCHES_REGEX 1

Fan discovery

ENTITY-SENSORS-MIB::EntitySensorDataType discovery with rpm filter

DEPENDENT fan.discovery

Filter:

OR

- B: {#SENSOR_TYPE} MATCHES_REGEX 10

Voltage discovery

ENTITY-SENSORS-MIB::EntitySensorDataType discovery with volts filter

DEPENDENT voltage.discovery

Filter:

OR

- B: {#SENSOR_TYPE} MATCHES_REGEX 3|4

Entity discovery

-

SNMP entity.discovery

Filter:

AND_OR

- A: {#ENT_CLASS} MATCHES_REGEX 3

PSU discovery

-

SNMP psu.discovery

Filter:

AND_OR

- A: {#ENT_CLASS} MATCHES_REGEX 6

Items collected

Group Name Description Type Key and additional info
Fans {#SENSOR_INFO}: Fan speed

MIB: ENTITY-SENSORS-MIB

The most recent measurement obtained by the agent for this sensor.

To correctly interpret the value of this object, the associated entPhySensorType,

entPhySensorScale, and entPhySensorPrecision objects must also be examined.

SNMP sensor.fan.speed[entPhySensorValue.{#SNMPINDEX}]
Fans {#SENSOR_INFO}: Fan status

MIB: ENTITY-SENSORS-MIB

The operational status of the sensor {#SENSOR_INFO}

SNMP sensor.fan.status[entPhySensorOperStatus.{#SNMPINDEX}]
Inventory {#ENT_NAME}: Hardware model name

MIB: ENTITY-MIB

SNMP system.hw.model[entPhysicalModelName.{#SNMPINDEX}]

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 6h

Inventory {#ENT_NAME}: Hardware serial number

MIB: ENTITY-MIB

SNMP system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}]

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 6h

Power_supply {#ENT_NAME}: Power supply status

MIB: ENTITY-STATE-MIB

SNMP sensor.psu.status[entStateOper.{#SNMPINDEX}]
Temperature {#SENSOR_INFO}: Temperature

MIB: ENTITY-SENSORS-MIB

The most recent measurement obtained by the agent for this sensor.

To correctly interpret the value of this object, the associated entPhySensorType,

entPhySensorScale, and entPhySensorPrecision objects must also be examined.

SNMP sensor.temp.value[entPhySensorValue.{#SNMPINDEX}]

Preprocessing:

- MULTIPLIER: 0.1

Temperature {#SENSOR_INFO}: Temperature status

MIB: ENTITY-SENSORS-MIB

The operational status of the sensor {#SENSOR_INFO}

SNMP sensor.temp.status[entPhySensorOperStatus.{#SNMPINDEX}]
Voltage {#SENSOR_INFO}: Voltage

MIB: ENTITY-SENSORS-MIB

The most recent measurement obtained by the agent for this sensor.

To correctly interpret the value of this object, the associated entPhySensorType,

entPhySensorScale, and entPhySensorPrecision objects must also be examined.

SNMP sensor.voltage.value[entPhySensorValue.{#SNMPINDEX}]
Zabbix_raw_items Get sensors

Gets sensors with type, description, and thresholds.

SNMP sensors.get

Preprocessing:

- JAVASCRIPT: Text is too long. Please see the template.

Triggers

Name Description Expression Severity Dependencies and additional info
{#SENSOR_INFO}: Fan speed is below the warning threshold of {#THRESHOLD_LO_WARN}rpm for 5m

This trigger uses fan sensor values defined in the device.

{TEMPLATE_NAME:sensor.fan.speed[entPhySensorValue.{#SNMPINDEX}].max(5m)} < {#THRESHOLD_LO_WARN} WARNING

Depends on:

- {#SENSOR_INFO}: Fan is in critical state

- {#SENSOR_INFO}: Fan speed is below the critical threshold of {#THRESHOLD_LO_CRIT}rpm for 5m

{#SENSOR_INFO}: Fan speed is below the critical threshold of {#THRESHOLD_LO_CRIT}rpm for 5m

This trigger uses fan sensor values defined in the device.

{TEMPLATE_NAME:sensor.fan.speed[entPhySensorValue.{#SNMPINDEX}].max(5m)} < {#THRESHOLD_LO_CRIT} HIGH

Depends on:

- {#SENSOR_INFO}: Fan is in critical state

{#SENSOR_INFO}: Fan speed is above the warning threshold of {#THRESHOLD_HI_WARN}rpm for 5m

This trigger uses fan sensor values defined in the device.

{TEMPLATE_NAME:sensor.fan.speed[entPhySensorValue.{#SNMPINDEX}].min(5m)} > {#THRESHOLD_HI_WARN} WARNING

Depends on:

- {#SENSOR_INFO}: Fan is in critical state

- {#SENSOR_INFO}: Fan speed is above the critical threshold of {#THRESHOLD_HI_CRIT}rpm for 5m

{#SENSOR_INFO}: Fan speed is above the critical threshold of {#THRESHOLD_HI_CRIT}rpm for 5m

This trigger uses fan sensor values defined in the device.

{TEMPLATE_NAME:sensor.fan.speed[entPhySensorValue.{#SNMPINDEX}].min(5m)} > {#THRESHOLD_HI_CRIT} HIGH

Depends on:

- {#SENSOR_INFO}: Fan is in critical state

{#SENSOR_INFO}: Fan is in critical state

Please check the fan unit

{TEMPLATE_NAME:sensor.fan.status[entPhySensorOperStatus.{#SNMPINDEX}].count(#1,{$FAN_CRIT_STATUS},eq)}=1 AVERAGE
{#ENT_NAME}: Device has been replaced (new serial number received)

Device serial number has changed. Ack to close

{TEMPLATE_NAME:system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}].diff()}=1 and {TEMPLATE_NAME:system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}].strlen()}>0 INFO

Manual close: YES

{#ENT_NAME}: Power supply is in critical state

Please check the power supply unit for errors

{TEMPLATE_NAME:sensor.psu.status[entStateOper.{#SNMPINDEX}].count(#1,{$PSU_CRIT_STATUS},eq)}=1 AVERAGE
{#SENSOR_INFO}: Temperature is below the warning threshold of {#THRESHOLD_LO_WARN}°C for 5m

This trigger uses temperature sensor values defined in the device.

{TEMPLATE_NAME:sensor.temp.value[entPhySensorValue.{#SNMPINDEX}].max(5m)} < {#THRESHOLD_LO_WARN} WARNING

Depends on:

- {#SENSOR_INFO}: Temperature is below the critical threshold of {#THRESHOLD_LO_CRIT}°C for 5m

{#SENSOR_INFO}: Temperature is below the critical threshold of {#THRESHOLD_LO_CRIT}°C for 5m

This trigger uses temperature sensor values defined in the device.

{TEMPLATE_NAME:sensor.temp.value[entPhySensorValue.{#SNMPINDEX}].max(5m)} < {#THRESHOLD_LO_CRIT} HIGH
{#SENSOR_INFO}: Temperature is above the warning threshold of {#THRESHOLD_HI_WARN}°C for 5m

This trigger uses temperature sensor values defined in the device.

{TEMPLATE_NAME:sensor.temp.value[entPhySensorValue.{#SNMPINDEX}].min(5m)} > {#THRESHOLD_HI_WARN} WARNING

Depends on:

- {#SENSOR_INFO}: Temperature is above the critical threshold of {#THRESHOLD_HI_CRIT}°C for 5m

{#SENSOR_INFO}: Temperature is above the critical threshold of {#THRESHOLD_HI_CRIT}°C for 5m

This trigger uses temperature sensor values defined in the device.

{TEMPLATE_NAME:sensor.temp.value[entPhySensorValue.{#SNMPINDEX}].min(5m)} > {#THRESHOLD_HI_CRIT} HIGH
{#SENSOR_INFO}: Voltage is below the warning threshold of {#THRESHOLD_LO_WARN}V for 5m

This trigger uses voltage sensor values defined in the device.

{TEMPLATE_NAME:sensor.voltage.value[entPhySensorValue.{#SNMPINDEX}].max(5m)} < {#THRESHOLD_LO_WARN} WARNING

Depends on:

- {#SENSOR_INFO}: Voltage is below the critical threshold of {#THRESHOLD_LO_CRIT}V for 5m

{#SENSOR_INFO}: Voltage is below the critical threshold of {#THRESHOLD_LO_CRIT}V for 5m

This trigger uses voltage sensor values defined in the device.

{TEMPLATE_NAME:sensor.voltage.value[entPhySensorValue.{#SNMPINDEX}].max(5m)} < {#THRESHOLD_LO_CRIT} HIGH
{#SENSOR_INFO}: Voltage is above the warning threshold of {#THRESHOLD_HI_WARN}V for 5m

This trigger uses voltage sensor values defined in the device.

{TEMPLATE_NAME:sensor.voltage.value[entPhySensorValue.{#SNMPINDEX}].min(5m)} > {#THRESHOLD_HI_WARN} WARNING

Depends on:

- {#SENSOR_INFO}: Voltage is above the critical threshold of {#THRESHOLD_HI_CRIT}V for 5m

{#SENSOR_INFO}: Voltage is above the critical threshold of {#THRESHOLD_HI_CRIT}V for 5m

This trigger uses voltage sensor values defined in the device.

{TEMPLATE_NAME:sensor.voltage.value[entPhySensorValue.{#SNMPINDEX}].min(5m)} > {#THRESHOLD_HI_CRIT} HIGH

Feedback

Please report any issues with the template at https://support.zabbix.com

Articles and documentation

+ Propose new article
Add your solution