Network switch/ router monitoring wizard

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
deepavaidya
Posts: 80
Joined: Sun Oct 06, 2013 8:23 am

Network switch/ router monitoring wizard

Post by deepavaidya »

Hi,

I am trying to discover a router using network switch/ router monitoring wizard. It is not able to auto-scan the ports. But the Nagios IP has been added as the SNMP host in the router. I am also trying to discover it using correct community string and version. Please can you help me troubleshoot this issue.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Network switch/ router monitoring wizard

Post by sreinhardt »

Well lets start by making sure snmp is open on that device. Please run the following command, replace the item in [ ] with your ip or hostname, and send us back the results.

Code: Select all

nmap -sU -p 161 [hostname\IP]
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
deepavaidya
Posts: 80
Joined: Sun Oct 06, 2013 8:23 am

Re: Network switch/ router monitoring wizard

Post by deepavaidya »

ya port 161 and 162 are open.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Network switch/ router monitoring wizard

Post by slansing »

Did you set your community string on that device to accept the Nagios address? It sounds like you did but it would be good to verify. Can you walk the device from the nagios CLI?:

Code: Select all

snmpwalk -v 2c address.of.remote.switch/router -C community string
Make sure that you use the correct version, if you are not using v2c be sure to change that.
deepavaidya
Posts: 80
Joined: Sun Oct 06, 2013 8:23 am

Re: Network switch/ router monitoring wizard

Post by deepavaidya »

snmpwalk -v 2c 172.25.28.221 -c TEST

SNMPv2-SMI::mib-2 = No more variables left in this MIB View (It is past the end of the MIB tree)
deepavaidya
Posts: 80
Joined: Sun Oct 06, 2013 8:23 am

Re: Network switch/ router monitoring wizard

Post by deepavaidya »

Hi,

The problem got resolved. The issue was because the community string did not have the Read Only access. After adding this in the router config, I was able to do snmpwalk and also discover it by auto-scanning its port details.
Locked