NETWORK ADMINISTRATIONSsnmp

Prometheus : Query SNMP from a CISCO Switch

Documentation : https://sbcode.net/prometheus/snmp-cisco-switch/
Course Coupons : https://sbcode.net/coupons

I am now going to configure Prometheus to query SNMP from my Cisco Switch.

My Cisco Switch is a 24 Port Cisco Catalyst 2950.

After doing a factory reset of the Switch, It has

SNMP enabled

The default gateway set to the IP address of my main network router that is connected to the internet

On my internet firewall/router, I have created a new forwarding rule external port 161 to internal port 161 IP address 192.168.1.1

I then add my internet routers external IP address to the prometheus.yml configuration for the SNMP scrape target, and Prometheus is now able to query the SNMP properties of my switch through the SNMP exporter process.

I can verify that i am seeing data in Prometheus by querying the ifInOctets metric. This shows a new metric for every ethernet interface on my Switch.

Since I have Grafana installed from an earlier lesson. I will also use the SNMP Stats dashboard from the Grafana community.

This dashboard was written specifically for the if_mib module that is configured in the snmp.yml and referenced in the prometheus.yml for the SNMP job used by the SNMP Exporter.

#prometheus
#snmp
#prometheusCourse
#prometheusTutorial

source

by seanwasere ytbe

simple network management protocol

Leave a Reply

Your email address will not be published. Required fields are marked *