Monitoring devices with SNMP

Back to news

Using SNMP to monitor devices

SNMP (Simple Network Management Protocol) is a protocol designed for communicating with devices for the purposes of monitoring and management.

Elements can be monitoried either by, making requests (active), or by receiving “Trap” notifications (SNMP) from the monitored host

 

An SNMP request is made up of:

  • A IP address
  • an OID corresponding to a MIB object
  • A port number (161 or 162)
  • a community string
  • a version (v1, v2c or v3)

example : 192.168.1.1, .1.3.6.1.2.1 (MIB  SNMPv2-SMI), 161, public, v2c

How SNMP works

Using SNMP requires preparation. You must enable SNMP on the target machine in order to query or generate traps. In addition, you need research time, to investigate what information can be obtained from your chosen device via SNMP, and which MIBs are supported.

OID : An SNMP agent is installed on the machine to monitor ( almost always ‘built-in’). This agent will fetch the requested information. To assist the agent, we specify  through the OID what information we want the agent to retreive.

MIB : A management information base (MIB) is a structured information database housed on an entity (switch, router, server or other device)

 

There are TWO ways to monitor devices using SNMP

Active (polling)

In this method of monitoring, the server (in our case the ServiceNavBox) polls at regular intervals the components to be monitored. Most of our “plugins” use this method of monitoring. By default, the protocol used is UDP port 161.

Passive (Traps)

Here, it is the monitored device that sends at regular intervals (or more commonly, when a noteworthy internal event occurs) metrics and messages to a central monitoring platform. By default, the protocol used is UDP  port 162.

Our product supports SNMP traps: See how to configure trap support on your ServiceNavBox

 

NOTE :

ServiceNav has many templates that use the SNMP protocol and additionally provides the ability for customers to create their own using our generic templates.

GLOBAL-SNMP-OIDPerforms SNMP collection of information, identified by an OID, on a device.
Global-SNMP-OID-StatusChecks an SNMP OID against a list of statuses. It is possible to specify output text for each value that the OID may take.
Global-SNMP-OperationPerforms one or two mathematical operations using multiple OIDs and returns one or two results. The check triggers an alert if the result of the first calculation exceeds set thresholds.
Global-SNMP-Table-RateChecks an entire SNMP table by collecting two values for each index, and dividing them to obtain a rate.

Alerts if at least one of the rates obtained exceeds the indicated threshold.

The use of a white / black list is possible to check only certain indexes of the table.

Collects for each index of the table the following performance data: calculated rate, value of the numerator multiplied by a factor.

In Alert cases, displays the list of indexes affected, the rate, and the units of the value derived after multiplication by the factor.

The OIDs to be checked for the table, the values, the white / black lists, the unit of the performance data, the multiplication factor, the suffixes of the data of the performance (absolute value, performance) are all configurable.

Global-SNMP-Table-StatusCollects the status of an SNMP table from the status of each instance, taking into account a whitelist or blacklist. The output texts are configurable.

UK ServiceNav Product Development Manager; my priority is to be needful of the particular requirements of all ‘English-speaking’ markets where ServiceNav is sold. I have over 20 years experience of the IT monitoring field - covering a wide variety of products and technologies.

More recent posts from the Servicenav team

10/9/19

ServiceNav 4.5 – Dataviz Enhancements, Extended Tag Management, New Plugins

Summary Dataviz – Enhancements New Dataviz enhancements are here! Gauge widget – Minimise mode – 100% use of available space The display of the value… Read more

7/8/19

ServiceNav 4.4 – Timeline developments, improved ergonomy

Summary Improvement of the timeline Following on from the developments announced in  version 4.3, related to the display of tickets and acknowledgements, we continue to… Read more

27/6/19

Monitoring Azure IaaS, Azure PaaS and On-Premise IT: Case Study

Corporate IT is increasingly heterogeneous with both internal (legacy) and external components hosted by third-party vendors (Cloud). Monitoring of these different elements is a must… Read more