I am unable to get Nagios XI to do an SNMP walk or find a switch with the Switch and router wizard. I ran a diag commannd on the Nagios server and got the following response
ogin as: root
[email protected]'s password:
Last login: Mon Aug 21 09:48:56 2017 from 10.0.211.76
[root@PGAMON01 ~]# /usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed
'100000000' '[email protected]:161::::2'
--base: Get Device Info on [email protected]:161::::2
SNMP Error:
no response received
SNMPv2c_Session (remote host: "10.0.15.15" [10.0.15.15].161)
community: "public"
request ID: 896169548
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 651
SNMPWALK Problem for 1.3.6.1.2.1.1 on [email protected]:161::::2:v4only
at /usr/bin/cfgmaker line 951
WARNING: Skipping [email protected]:161::::2 as no info could be retrieved
Use of uninitialized value $comment_sysdescr in substitution (s///) at /usr/bin/cfgmaker line 379.
Use of uninitialized value $sysname in concatenation (.) or string at /usr/bin/cfgmaker line 412.
Use of uninitialized value $comment_sysdescr in concatenation (.) or string at /usr/bin/cfgmaker line 412.
Use of uninitialized value $syscontact in concatenation (.) or string at /usr/bin/cfgmaker line 412.
Use of uninitialized value $syslocation in concatenation (.) or string at /usr/bin/cfgmaker line 412.
# Created by
# /usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed 100000000 [email protected]:161::::2
### 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:
######################################################################
Any Idea of what the problem could be ?
SNMP on Nagios XI
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: SNMP on Nagios XI
The possible problems for the error
are most likely the following:
incorrect IP
incorrect community string for the device (currently you are using 'public')
incorrect SNMP version support (you are currently trying 2)
The device doesn't have SNMP enabled
Code: Select all
no response receivedincorrect IP
incorrect community string for the device (currently you are using 'public')
incorrect SNMP version support (you are currently trying 2)
The device doesn't have SNMP enabled
-
abriscoeexec
- Posts: 2
- Joined: Mon Aug 21, 2017 8:55 am
Re: SNMP on Nagios XI
the device has snmp enabled with Public string and snmp 2c .We migrating from PRTG to Nagios and all devices are currently figured and working on PRTG . We just cannot get the SNMP to work on Nagios
Re: SNMP on Nagios XI
What is the make and model of the device you are trying to poll using SNMP?
It it is a firewall, you may need to setup an access rule to allow the XI server access to SNMP.
Can you run a snmpwalk and an nmap command from the Nagios server and post the output here?
It it is a firewall, you may need to setup an access rule to allow the XI server access to SNMP.
Can you run a snmpwalk and an nmap command from the Nagios server and post the output here?
Code: Select all
snmpwalk 10.0.15.15 -v 2c -c public
nmap 10.0.15.15 -p 161 -sUBe sure to check out our Knowledgebase for helpful articles and solutions!