Net SNMPD will not properly run when using -u root -g 0 in /etc/default/snmpd
After stopping the snmpd service, I can "sudo" it in the foreground and it genrates DISMAN traps that are configured in the snmpd.conf file, but if running with -u root -g 0 (or -g adm) it does not generate any traps except coldStart.0 traps.
astump@astump15:~$ snmpd --version
NET-SNMP version: 5.7.3
Web: http://www.net-snmp.org/
Email: net-snmp-coders@lists.sourceforge.net
SNMPDOPTS='-Lsd -Lf /dev/null -u root -g 0 -I -smux,mteTrigger,mteTriggerConf -p /run/snmpd.pid'
Ok so this gets a bit more interesting. Somewhere I found on the net that you have to remove the mteTrigger, mteTriggerConf from the -smux line to get the DISMAN traps to work. I did this and all of a sudden I saw the traps working fine. But after I removed the mteTrigger,mteTriggerConf from the /etc/default/snmpd, now snmpwalk times out and I do not get a full set of mibs returned. I attempted doing download-mibs and sudo download-mibs again, but this does not fix it. I was able to get snmpwalk to work again simply by adding the mteTrigger/mteTriggerConf back in the SNMPDOPTS, but again, now DISMAN traps don't work.