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?
SNMP Problem
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: SNMP Problem
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.
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.
Re: SNMP Problem
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
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
http://assets.nagios.com/downloads/nagi ... ios_XI.pdf
Re: SNMP Problem
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?
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
Do you have /usr/local/bin/addmib?
If yes, then you need to add /usr/local/bin to your path.
If no:
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
Yes I have it. Thank you, it works now 
Re: SNMP Problem
Great! Can we go ahead and mark this as resolved and lock the topic?