Page 1 of 1

Switch stack port monitoring via SNMP

Posted: Wed Oct 02, 2019 8:38 am
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?

Re: Switch stack port monitoring via SNMP

Posted: Wed Oct 02, 2019 3:08 pm
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

Re: Switch stack port monitoring via SNMP

Posted: Thu Oct 03, 2019 2:51 am
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.

Re: Switch stack port monitoring via SNMP

Posted: Thu Oct 03, 2019 6:51 am
by scottwilkerson
Glad to help!

Locking thread