Trouble monitoring Cisco router

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
c6391925
Posts: 28
Joined: Thu May 23, 2013 4:54 pm

Trouble monitoring Cisco router

Post by c6391925 »

Hello,

I tried monitoring a Cisco Router, the wizzard recommended the following command. Please see results below:

[root@DXLVMMOM2 snmp]# cfgmaker --show-op-down --zero-speed=100000000 --snmp-options=:::::1 --noreve rsedns [email protected]
SNMP Error:
no response received
SNMPv1_Session (remote host: "10.194.96.254" [10.194.96.254].161)
community: "public"
request ID: -1184238660
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib64/mrtg2/SNMP_util.pm line 629
SNMPWALK Problem for 1.3.6.1.2.1.1 on [email protected]:::::1:v4only
at /usr/bin/cfgmaker line 950
WARNING: Skipping [email protected]:::::1 as no info could be retrieved

# Created by
# /usr/bin/cfgmaker --show-op-down --zero-speed=100000000 --snmp-options=:::::1 --noreversedns [email protected]


### Global Config Options

# for UNIX
# WorkDir: /home/http/mrtg

# or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

# to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits

EnableIPv6: no

######################################################################
# System:
# Description:
# Contact:
# Location:
######################################################################
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Trouble monitoring Cisco router

Post by sreinhardt »

Lets start with two things. 1) If you are using XI, please do not unless absolutely necessary use cfgmaker individually. We provide the network switch\router wizard that will do all of this for you! 2) Are you certain that snmp is available on that system, it seems to be stating that it did not retrieve any data back from the cisco device.

Code: Select all

nmap -sU -p 161 [Host\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.
c6391925
Posts: 28
Joined: Thu May 23, 2013 4:54 pm

Re: Trouble monitoring Cisco router

Post by c6391925 »

Hi Spenser,

The Monitoring wizzard is what suggested the cfgmaker command.
http://imgur.com/PEMcHbS
But I will avoid it going forward, thanks for the info.

trying your command:

Code: Select all

[root@DXLVMMOM2 lg]# nmap -sU -p 161 10.194.96.254

Starting Nmap 5.51 ( http://nmap.org ) at 2013-09-20 12:04 CDT
Note: Host seems down. If it is really up, but blocking our ping probes, try -Pn
Nmap done: 1 IP address (0 hosts up) scanned in 3.29 seconds

[root@DXLVMMOM2 lg]# nmap -Pn -p 161 10.194.96.254

Starting Nmap 5.51 ( http://nmap.org ) at 2013-09-20 12:05 CDT
Nmap scan report for rt396501.stores.corp.msi.xxxxxxxx.com (10.194.96.254)
Host is up.
PORT    STATE    SERVICE
161/tcp filtered snmp

Nmap done: 1 IP address (1 host up) scanned in 2.10 seconds
[root@DXLVMMOM2 lg]#
No, I have no idea if SNMP is available on these routers... or if they use non-standard ports. I will ask around.

Thanks for your help!

gl
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Trouble monitoring Cisco router

Post by sreinhardt »

You are welcome, yep the filtered on that second nmap scan, needs to show open and no filtered at all. At this point, that would be the issue, not to say we will not run into anything in the future.
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.
Locked