Use SNMP to monitor your equipment
SNMP (Simple Network Management Protocol) is a protocol for communicating with equipment.
It allows to manage components either by making requests (active SNMP) or by receiving Trap notifications (passive SNMP) from the monitored equipment
An SNMP request is composed of :
- An IP address
- An OID corresponding to a MIB
- A port number (161 or 162)
- A community
- A type (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. SNMP must be activated on the target machine to be able to make requests or generate traps. It is therefore necessary to foresee a time of configuration as well as a more or less long work of research of the MIB (and thus OID) necessary to the recovery of the information relating to the material.
OID: An SNMP agent is installed on the machine to be monitored. This agent will fetch the information to be retrieved. To do this, we specify through the OIDs what information it must retrieve
MIB: A MIB (management information base) is a structured database on an entity (switch, router, server or other equipment)
There are two ways to monitor using the SNMP protocol
Active monitoring
In this form of monitoring, it is the monitoring server (here our ServiceNavBox) that polls the components to be monitored at regular intervals. Most of our plugins use this monitoring method. By default the protocol used is UDP on port 161.
Passive monitoring
Here, it is the monitored components that send metrics and messages to a central monitoring instance at regular intervals (or not). By default the protocol used is UDP on port 162.
Our product allows you to manage SNMP traps: See how to configure traps on your ServiceNavBox
- https://coservit.com/servicenav/fr/documentation/1-configurer-la-box-pour-recevoir-les-traps/
- https://coservit.com/servicenav/fr/documentation/2-creer-un-fichier-de-definition-trap/
Remark:
ServiceNav offers many templates that use the SNMP protocol and gives customers the possibility to create their own templates using our generic templates.
GLOBAL-SNMP-OID | Performs an SNMP collection of information, identified by an OID, on a device. |
Global-SNMP-OID-Status | Checks an SNMP OID against a list of statuses. It is possible to define an output text for each value that the OID can take. |
Global-SNMP-Operation | Performs one or two mathematical operations between multiple OIDs and returns one or two results. Alerts if the result of the first calculation exceeds a certain threshold. |
Global-SNMP-Table-Rate | Checks an entire SNMP table by collecting for each index two values, and dividing them to obtain a rate.Alerts if at least one of the obtained rates exceeds the specified threshold.The use of a white/black list is possible to check only some indexes of the table.Collects for each index of the table the following performance data: calculated rate, numerator value multiplied by a 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 performance data (absolute value, performance) are configurable. |
Global-SNMP-Operation | Performs one or two mathematical operations between multiple OIDs and returns one or two results. Alerts if the result of the first calculation exceeds a certain threshold. |
Global-SNMP-Table-Rate | Checks an entire SNMP table by collecting for each index two values, and dividing them to obtain a rate.Alerts if at least one of the obtained rates exceeds the specified threshold.The use of a white/black list is possible to check only some indexes of the table.Collects for each index of the table the following performance data: calculated rate, numerator value multiplied by a 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 performance data (absolute value, performance) are configurable. |
Global-SNMP-Table-Status | Collects the global status of an SNMP table from the status of each instance, taking into account a white list or a black list. The output texts are configurable. |