Monitoring network interfaces using SNMP

Overview

MetricsHub can leverage the SNMP protocol (v1, v2c, or v3) to monitor network devices such as Ethernet switches, UPS, or network interfaces[1], provided that an SNMP agent is installed on the resource and the connection is configured.

In the example below:

  • we configured MetricsHub to monitor a switch using SNMP v2c
  • we displayed the total traffic in bytes/s in a Grafana Dashboard

MetricsHub - Monitoring network interfaces using SNMP

Procedure

To monitor our switch:

  1. In the config/metricshub.yaml file, we create the resource alcatel-switch with the following attributes:

    • hostname: alcatel-switch-01
    • host type: network
        resources:
          alcatel-switch:
            attributes: 
              host.name: alcatel-switch-01
              host.type: network
    
  2. We configure MetricsHub to connect to the network switch using the SNMP v2c protocol and the public community

            protocols:
              snmp:
                version: v2c
                community: public
    

Here is the complete YAML configuration to be added to config/metricshub.yaml to monitor the switch:

    resources:
      alcatel-switch:
        attributes: 
          host.name: alcatel-switch-01
          host.type: network
        protocols:
          snmp:
            version: v2c 
            community: public 
No results.