snmp only answering on localhost - but daemon is listening on all ports (no iptables rules either)
Chris Bartram <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
snmpwalk against localhost works; same snmpwalk using hostname or IP address (from local shell) times out. Have snmptrapd running on the same host and it accepts traps from all hosts on the network. No iptables rules. Per below the daemon appears to be listening on all ports. Very barebones snmpd.conf (using secure/encrypted SNMP only so none of the non-secure access/group/etc directivesin there). Am I missing something simple? Host is a VMWare virtual system if that matters - OS version and NET-SNMP version below. -Chris Bartram Linux hostname 2.6.18-308.8.2.el5 #1 SMP Tue May 29 11:54:17 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux NET-SNMP version: 5.6.1 $ cat /etc/snmpd.conf syslocation VM System syscontact name here pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat rouser useridhere priv .1 $ netstat --listen Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 *:snmp *:* LISTEN udp 0 0 *:snmp *:* $ lsof -i COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME snmpd 695 root 9u IPv4 809620519 0t0 TCP *:snmp (LISTEN) snmpd 695 root 10u IPv4 809620520 0t0 TCP localhost:smux (LISTEN) snmpd 695 root 11u IPv4 809620521 0t0 UDP *:snmp snmptrapd 19491 root 7u IPv4 649812993 0t0 UDP *:snmptrap $ cat /etc/sysconfig/snmpd.options # snmpd command line options OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd.pid -a -x 0.0.0.0:161" $ps -ef | grep snmp root 695 1 0 14:37 ? 00:00:02 /usr/sbin/snmpd -Lsd -Lf /dev/null -p /var/run/snmpd.pid -a -x 0.0.0.0:161 "The purpose of life is not to be happy. It is to be useful, to be honorable, to be compassionate, to have it make some difference that you have lived and lived well". (Ralph Waldo Emerson) ------------------------------------------------------------------------------ LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users