Problems? Is your data what you think it is? | |
PerlMonks |
Re: SNMP RemotePortby superfrink (Curate) |
on Apr 10, 2008 at 19:23 UTC ( [id://679561]=note: print w/replies, xml ) | Need Help?? |
Update: I did not realize SNMP is a front end for Net::SNMP. The code below probably won't help. Run tcpdump on the machine running the SNMP server to see if the NAT is really working and that the traffic really is getting through to port 161. Check that snmpd is listening and allowing connections from outside localhost. (On Ubuntu/Debian check /etc/default/snmp to see what IP it is binding to. Also check snmpd.conf.) Original post: If you can do it just open UDP port 161 on the firewall from the IP of the server doing the monitoring. I have not tried using a different port but Net::SNMP has functionality to specify the port number. Code I have run (based on the docs as I recall) is below. Example output is:
In Section
Seekers of Perl Wisdom
|
|