Page 1 of 1

SNMP Trap issue

Posted: Wed Oct 12, 2016 3:18 am
by Justino
Hi there,

Running on Nagios Core 4.1.1

I'm having the following issue with my SNMP setup, since i want to try out SNMP Traps:

Command to test: snmptrapd -A -d -n -Lf trap.log

Result:
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs
Cannot find module (CBS-MIB): At line 0 in (none)
couldn't open udp:162 -- errno 98 ("Address already in use")

Found a lot of topics on the internet, but without any results or solutions.
Problem is, CBS-MIB.txt (and CBS-MIB to test) is in /usr/share/snmp/mibs/

Does anyone have a fix for this?
After this i will need to figure out how to add a SNMP Trap in nagios core

Re: SNMP Trap issue

Posted: Wed Oct 12, 2016 3:20 pm
by tgriep
Create the file /etc/snmp/snmp.conf, and put into it:

Code: Select all

mibs +ALL
This tells the snmp commands that they should load ALL of the mibs when they are run without having to specifying them on the command line.
If this doesn't work, can you run the following and post the output?

Code: Select all

ls -l /usr/share/snmp/mibs