I am trying to get SNMPD working on my Zenoss server that runs Ubuntu Server 14.04. I installed it and configured it but when I start it up, i get the following error in syslog:
Aug 14 08:19:16 zenoss snmpd: Turning on AgentX master support. Aug 14 08:19:16 zenoss snmpd: Turning on AgentX master support. Aug 14 08:19:16 zenoss snmpd: Error opening specified endpoint "udp:127.0.0.1:161" Aug 14 08:19:16 zenoss snmpd: Server Exiting with code 1
If I run SNMPD at a command line (sudo /usr/sbin/snmpd -f) it works fine. I did a netstat -oan | grep 161 and there is nothing else binding to port 161. Here is my config file (comments removed):
agentAddress udp:127.0.0.1:161 view systemonly included .22.214.171.124.2.1.1 view systemonly included .126.96.36.199.188.8.131.52 rocommunity public localhost rwcommunity private localhost rouser authOnlyUser sysLocation Virtual Machine sysContact IT Manager sysServices 72 load 12 10 5 trap2sink localhost public master agentx
And my snmpd settings file (comments removed):
export MIBS= SNMPDRUN=yes SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid -c /etc/snmp/snmpd.conf' TRAPDRUN=no TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid'