Switch stack port monitoring via SNMP

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
guvijur
Posts: 3
Joined: Wed Oct 02, 2019 8:23 am

Switch stack port monitoring via SNMP

Post by guvijur »

Hi!
I installed the Nagios program on CentOS 7. After the settings are faced with a problem. I need to monitor the port status of two Dell PowerConnect 7024 switches. The switches are stacked and have a single ip address. When I am in the switch management interface, I see them as "unit 1"and" unit 2". Next, I'm in the configuration file switch.kfg write the next:

...
check_command check_snmp!-C public -o ifOperStatus.1 -r 1 -m RFC1213-MIB
...

И в интерфейс

As a result, in the web interface of Nagios I see the status of the first port of the first switch "Unit 1". The same can be done for any port of the first switch. But I need to monitor and ports of the second switch in a stack which "Unit 2". I tried different options but didn't succeed. I guess I'm not the only one stupid enough to handle a question like that.
Please help me! How do I track the status of the ports on the second switch in the stack?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Switch stack port monitoring via SNMP

Post by scottwilkerson »

Out of curiosity what do you get when you run this against the IP address?

Code: Select all

snmpwalk -v 2c -c 'public' XXX.XXX.XXX.XXX ifName

They may just be assigned different SNMP IDs
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
guvijur
Posts: 3
Joined: Wed Oct 02, 2019 8:23 am

Re: Switch stack port monitoring via SNMP

Post by guvijur »

scottwilkerson wrote:Out of curiosity what do you get when you run this against the IP address?

Code: Select all

snmpwalk -v 2c -c 'public' XXX.XXX.XXX.XXX ifName

They may just be assigned different SNMP IDs
Thank you so much! You solved my problem.
Attachments
snmp.png
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Switch stack port monitoring via SNMP

Post by scottwilkerson »

Glad to help!

Locking thread
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked