Page 1 of 1
server does not have snmpwalk permission on the target host
Posted: Tue Dec 10, 2019 2:54 pm
by seaward1983
nagios ver 5.6.8
RHEL 6.10
Target - Windows 2012 R2
SNMP authentication enabled/configured
Firewall UDP confirmed inbound and outbound rules
Snmpwalk command from Nagios host to target "no response from [servername]"
It's got to be something I'm missing, right?
Re: server does not have snmpwalk permission on the target h
Posted: Tue Dec 10, 2019 3:58 pm
by mbellerue
Let's make sure that we can get to the Windows server.
Code: Select all
nmap -sU <remoteIPaddress> -p 161,162
If possible, it may be worth temporarily turning off the Windows firewall, and running the snmpwalk just to test.
Re: server does not have snmpwalk permission on the target h
Posted: Tue Dec 10, 2019 5:03 pm
by seaward1983
Here's the results -
Starting Nmap 6.47 (
http://nmap.org ) at 2019-12-10 16:02 CST
Nmap scan report for 638579-DWASQL01.rsp.medecision.com (172.21.57.66)
Host is up (0.00028s latency).
PORT STATE SERVICE
161/udp open|filtered snmp
Nmap done: 1 IP address (1 host up) scanned in 0.28 seconds
Re: server does not have snmpwalk permission on the target h
Posted: Tue Dec 10, 2019 7:44 pm
by Box293
That output indicates that the firewall ports are correctly open.
This sounds like a security issue. What type of SNMP security did you define on the windows server?
Here is an example command you can execute on your Nagios XI server in a terminal session:
Code: Select all
snmpwalk -v 2c -c public xxx.xxx.xxx.xxx -m all 1.3.6.1.4.1
This example uses SNMP v2c security. Replace
public with the name of the community you defined on the server.
Replace
xxx.xxx.xxx.xxx with the address of the server.
What output do you get?
Re: server does not have snmpwalk permission on the target h
Posted: Wed Dec 11, 2019 2:43 pm
by seaward1983
Okay - it's resolved. This server vmotioned to another hypervisor that didn't have a VLAN configured correctly. I now can do a SNMPwalk and get all sorts of funness.
T-RESOURCES-MIB::hrSWRunStatus.2356 = INTEGER: running(1)
HOST-RESOURCES-MIB::hrSWRunStatus.2532 = INTEGER: running(1)
HOST-RESOURCES-MIB::hrSWRunStatus.2600 = INTEGER: running(1)
HOST-RESOURCES-MIB::hrSWRunStatus.2740 = INTEGER: running(1)
HOST-RESOURCES-MIB::hrSWRunStatus.2760 = INTEGER: running(1)
HOST-RESOURCES-MIB::hrSWRunStatus.2784 = INTEGER: running(1)
HOST-RESOURCES-MIB::hrSWRunStatus.2984 = INTEGER: running(1)
HOST-RESOURCES-MIB::hrSWRunStatus.3084 = INTEGER: running(1)
HOST-RESOURCES-MIB::hrSWRunStatus.3184 = INTEGER: running(1)
HOST-RESOURCES-MIB::hrSWRunStatus.3224 = INTEGER: running(1)
HOST-RESOURCES-MIB::hrSWRunStatus.3324 = INTEGER: running(1)
HOST-RESOURCES-MIB::hrSWRunStatus.3476 = INTEGER: running(1)
HOST-RESOURCES-MIB::hrSWRunStatus.3528 = INTEGER: running(1)
HOST-RESOURCES-MIB::hrSWRunStatus.3536 = INTEGER: running(1)
HOST-RESOURCES-MIB::hrSWRunStatus.3640 = INTEGER: running(1)
HOST-RESOURCES-MIB::hrSWRunStatus.3644 = INTEGER: running(1)
HOST-RESOURCES-MIB::hrSWRunStatus.3816 = INTEGER: running(1)
HOST-RESOURCES-MIB::hrSWRunStatus.3840 = INTEGER: running(1)
HOST-RESOURCES-MIB::hrSWRunStatus.4284 = INTEGER: running(1)
HOST-RESOURCES-MIB::hrSWRunStatus.4820 = INTEGER: running(1)
HOST-RESOURCES-MIB::hrSWRunStatus.5248 = INTEGER: running(1)
HOST-RESOURCES-MIB::hrSWRunStatus.5256 = INTEGER: running(1)
HOST-RESOURCES-MIB::hrSWRunStatus.5392 = INTEGER: running(1)
HOST-RESOURCES-MIB::hrSWRunStatus.5508 = INTEGER: running(1)
HOST-RESOURCES-MIB::hrSWRunStatus.5528 = INTEGER: running(1)
HOST-RESOURCES-MIB::hrSWRunStatus.5536 = INTEGER: running(1)
Re: server does not have snmpwalk permission on the target h
Posted: Wed Dec 11, 2019 3:32 pm
by seaward1983
This thread can be closed.
Re: server does not have snmpwalk permission on the target h
Posted: Wed Dec 11, 2019 4:30 pm
by mbellerue
Excellent! Glad you were able to get it resolved. Also thank you for posting the result back here. I'll go ahead and close this.