SNMP Trap issue

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Justino
Posts: 3
Joined: Mon May 19, 2014 9:22 am

SNMP Trap issue

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: SNMP Trap issue

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked