SNMPGET Timeout: No Response from
Hi,
I'm running crasy. i just finish a nagios installation. Everything run fine until i decide to monitor my AS400. I'm getting the following error when i run the following command from my Nagios server (CentOS 6.4 64bit, SElinux disabled): Code:
[root@nagios ~]# /usr/bin/snmpget -c public -t 5 -v 1 10.84.1.11:161 .1.3.6.1.2.1.2.2.1.8.2 Code:
[root@nagios ~]# /usr/bin/snmpget -c public -v 1 10.84.0.13:161 .1.3.6.1.2.1.2.2.1.8.2 Code:
C:\robot>snmpget -r:10.84.1.11 -t:1 -v:1 -c:public -o:.1.3.6.1.2.1.2.2.1.8.2 Code:
C:\robot>nmap 10.84.1.11 -sU -p161 All hosts are on the same LAN, the only difference is that Nagios is hosted on VMware ESXi 4.1. Any idea would be gratefully appreciated ! Laurent |
Quote:
Quote:
Quote:
Quote:
|
Hi unSpawn,
i wanted to make it functional first then run as is should be, and at it was at first (permissive SElinux, logged as user). If it were a firewall issue on the AS400, then i shouldn't be able to run a snmpget command from another box that had, temporally, the same IP of my nagios box ? am i right ? Well as i said, when i tryed with my windows box, it's work ! AS400 IP: 10.84.1.11/22 original Nagios IP: 10.84.1.39/22 Windows box IP: 10.84.3.232/22 i did: 1-poweroff nagios 2-change windows box from 10.84.3.232/22 to 10.84.1.39/22 3-run the following command from my windows box and get a result: Code:
snmpget -r:10.84.1.11 -t:1 -v:1 -c:public -o:.1.3.6.1.2.1.2.2.1.8.2 5-start my nagios box, run again the command and get this result: Code:
/usr/bin/snmpget -c public -t 5 -v 1 10.84.1.11:161 .1.3.6.1.2.1.2.2.1.8.2 Laurent |
Quote:
|
Quote:
I check and the AS400 do have a trap setup with a public community. I even created a new one 'nagios' setting up the ip of my nagios box. but still dramatically failed from my nagios box and success from my windows box. I test also the snmpget from another workstation, feroda 18 and centos 6.4, but still failed, even i give them the ip of my windows box. so, following your advise, i found this link , i will carefully read it and check those setting on my AS400. "i'll be back" |
Solved
I finally found the reason why i did have the time out while querying SNMP on my AS400.
First the nagios OS firewall was still ON while i thought i did actually stop it for the test. Second point the AS400 did not actually reply to SNMP using the port UDP:161. I realized that when i wanted to analyzed the network packet from my nagios box to the AS400 using tcpdump. i get this at first: Code:
tcpdump -nn host 10.84.1.11 Code:
tcpdump -nn host 10.84.0.13 Code:
iptables -I INPUT 6 -p udp -m udp -s 10.84.1.11 -j ACCEPT Thanks to all for the reply anyway. |
All times are GMT -5. The time now is 06:45 AM. |