SNMP

Simple Network Management Protocol is an Internet Standard protocol for collecting and organizing information about managed devices on IP networks and for modifying that information to change device behaviour.

Available solutions




This template is for Zabbix version: 6.2
Also available for: 6.0 5.4 5.0

Source: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/module/generic_snmp_snmp?at=release/6.2

Generic by SNMP

Overview

For Zabbix version: 6.2 and higher.

Setup

Refer to the vendor documentation.

Zabbix configuration

No specific Zabbix configuration is required.

Macros used

Name Description Default
{$ICMP_LOSS_WARN}

-

20
{$ICMP_RESPONSE_TIME_WARN}

-

0.15
{$SNMP.TIMEOUT}

-

5m

Template links

There are no template links in this template.

Discovery rules

Items collected

Group Name Description Type Key and additional info
General SNMP traps (fallback)

The item is used to collect all SNMP traps unmatched by other snmptrap items

SNMP_TRAP snmptrap.fallback
General System location

MIB: SNMPv2-MIB

The physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string.

SNMP system.location[sysLocation.0]

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 12h

General System contact details

MIB: SNMPv2-MIB

The 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.

SNMP system.contact[sysContact.0]

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 12h

General System object ID

MIB: SNMPv2-MIB

The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determiningwhat kind of box' is being managed. For example, if vendorFlintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'.

SNMP system.objectid[sysObjectID.0]

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 12h

General System name

MIB: SNMPv2-MIB

An 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.

SNMP system.name

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 12h

General System description

MIB: SNMPv2-MIB

A 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.

SNMP system.descr[sysDescr.0]

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 12h

Status Uptime (network)

MIB: SNMPv2-MIB

The time (in hundredths of a second) since the network management portion of the system was last re-initialized.

SNMP system.net.uptime[sysUpTime.0]

Preprocessing:

- MULTIPLIER: 0.01

Status Uptime (hardware)

MIB: HOST-RESOURCES-MIB

The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.

SNMP system.hw.uptime[hrSystemUptime.0]

Preprocessing:

- CHECK_NOT_SUPPORTED

⛔️ON_FAIL: CUSTOM_VALUE -> 0

- MULTIPLIER: 0.01

Status SNMP agent availability

Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list.

Possible value:

0 - not available

1 - available

2 - unknown

INTERNAL zabbix[host,snmp,available]
Status ICMP ping

-

SIMPLE icmpping
Status ICMP loss

-

SIMPLE icmppingloss
Status ICMP response time

-

SIMPLE icmppingsec

Triggers

Name Description Expression Severity Dependencies and additional info
System name has changed

System name has changed. Ack to close.

last(/Generic by SNMP/system.name,#1)<>last(/Generic by SNMP/system.name,#2) and length(last(/Generic by SNMP/system.name))>0 INFO

Manual close: YES

Host has been restarted

Uptime is less than 10 minutes.

(last(/Generic by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Generic by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Generic by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Generic by SNMP/system.net.uptime[sysUpTime.0])<10m) WARNING

Manual close: YES

Depends on:

- No SNMP data collection

No SNMP data collection

SNMP is not available for polling. Please check device connectivity and SNMP settings.

max(/Generic by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0 WARNING

Depends on:

- Unavailable by ICMP ping

Unavailable by ICMP ping

Last three attempts returned timeout. Please check device connectivity.

max(/Generic by SNMP/icmpping,#3)=0 HIGH
High ICMP ping loss

-

min(/Generic by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Generic by SNMP/icmppingloss,5m)<100 WARNING

Depends on:

- Unavailable by ICMP ping

High ICMP ping response time

-

avg(/Generic by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN} WARNING

Depends on:

- High ICMP ping loss

- Unavailable by ICMP ping

Feedback

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

Didn't find what you are looking for?