SNMP Problem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
AchV
Posts: 7
Joined: Fri Feb 21, 2014 6:05 am

SNMP Problem

Post 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?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: SNMP Problem

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
AchV
Posts: 7
Joined: Fri Feb 21, 2014 6:05 am

Re: SNMP Problem

Post 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 :?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: SNMP Problem

Post 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
AchV
Posts: 7
Joined: Fri Feb 21, 2014 6:05 am

Re: SNMP Problem

Post 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?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: SNMP Problem

Post 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
AchV
Posts: 7
Joined: Fri Feb 21, 2014 6:05 am

Re: SNMP Problem

Post by AchV »

Yes I have it. Thank you, it works now :)
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: SNMP Problem

Post by ssax »

Great! Can we go ahead and mark this as resolved and lock the topic?
AchV
Posts: 7
Joined: Fri Feb 21, 2014 6:05 am

Re: SNMP Problem

Post by AchV »

Yes, it's good for me ;)
Locked