Page 1 of 1

SNMP Problem

Posted: Wed Apr 29, 2015 9:02 am
by AchV
Hi,

My VM don't listen the trap in the right port. I receive trap on my eth1 but it seems that Nagios listen the trap on the port eth0.
Is it possible to change it?

Re: SNMP Problem

Posted: Wed Apr 29, 2015 11:57 am
by Box293
How are you determining this?

http://www.net-snmp.org/docs/man/snmptrapd.html
By default, snmptrapd listens for incoming SNMP TRAP and INFORM packets on UDP port 162 on all IPv4 interfaces.

Re: SNMP Problem

Posted: Thu Apr 30, 2015 3:35 am
by AchV
That's strange because a receive the snmp traps on the port eth1 but i don't see it in the service i've configured (there is no log too) so i've assumed that Nagios was listenning in the wrong port :?

Re: SNMP Problem

Posted: Thu Apr 30, 2015 9:05 am
by ssax
Did you follow this guide or a different one? If you followed a different one please post a link.

http://assets.nagios.com/downloads/nagi ... ios_XI.pdf

Re: SNMP Problem

Posted: Mon May 04, 2015 8:37 am
by AchV
Hi,
Thank you for the link, that solved my problem :)
But i have one more question, when I wanted to add a mib, i get this error:
addmib: command not found

Have I missed something?

Re: SNMP Problem

Posted: Mon May 04, 2015 9:04 am
by ssax
Do you have /usr/local/bin/addmib?

If yes, then you need to add /usr/local/bin to your path.

If no:

Code: Select all

cd /tmp
wget http://assets.nagios.com/downloads/support/snmptrap-bins.tar.bz2
tar xjf snmptrap-bins.tar.bz2
cd snmptrap-bins/
cp ./* /usr/local/bin/
chown root:nagios /usr/local/bin/addmib
chmod g+x /usr/local/bin/addmib

Re: SNMP Problem

Posted: Mon May 04, 2015 9:08 am
by AchV
Yes I have it. Thank you, it works now :)

Re: SNMP Problem

Posted: Mon May 04, 2015 10:11 am
by ssax
Great! Can we go ahead and mark this as resolved and lock the topic?

Re: SNMP Problem

Posted: Tue May 05, 2015 7:44 am
by AchV
Yes, it's good for me ;)