For a longer description of what I was doing... I have a device that sends SNMP traps and it was sending them to my desktop. I was monitoring snmptrapd using sudo journalctl -f -u snmptrapd.
Originally, this provided only numeric OIDs. Installing snmp-mibs- downloader fixed up many of the OIDs but not the custom ones. In order to get the custom MIBS working, I had to add the directory they were in to MIBDIRS and add -m ALL to the snmptrapd.service file (well... I don't know if the commandline change was needed, I was following a co- worker's suggestions). I have attached the modified snmptrapd.service file to this bug. On my system, this file is /etc/systemd/system/snmptrapd.service. This is a command that works to send a trap to my local snmptrapd (running on the same box): MIBDIRS=/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/share/mibs/site:$HOME/work/git/ogtrapd/mibs /usr/bin/snmptrap -mALL -v 2c -c log 127.0.0.1:162 "0" OG-TEST- MIB::ogTESTMessage ogTESTMessageStatus s 'test message' I'll attach the custom MIBS needed to make this work too. That should allow you to complete reproduce the issue and fix. ** Attachment added: "snmptrapd.service" https://bugs.launchpad.net/ubuntu/+source/net-snmp/+bug/1847377/+attachment/5296409/+files/snmptrapd.service -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1847377 Title: snmptrapd.service uses MIBSDIR instead of MIBDIRS To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/net-snmp/+bug/1847377/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs