Page 1 of 1

sending snmp trap to third party application

Posted: Fri Oct 05, 2012 10:22 am
by lafargeuser
Hi,

Using Nagios Core 3.4.1 installed NSTI for snmp trap. Also able to open using browser.
But not able to find where and how to add addresses of the hosts that SNMP traps should be sent to.

i have done it for XI. But not able to do in core.
Also wants to know how to Enables SNMP trap sending functionality in Core.

Re: sending snmp trap to third party application

Posted: Sun Oct 07, 2012 8:03 pm
by jsmurphy
Nagios XI has a built in component that allows this functionality... this does not come with Nagios Core. Unfortunately to the best of my knowledge there is no community made Core add-on either that provides the same functionality.

To be honest I have no idea how hard it would be to hack together a similar component using the Nagios MIB, but that might be an option.

Re: sending snmp trap to third party application

Posted: Thu Oct 11, 2012 4:48 am
by lafargeuser
Installed new NagiosXI server & followed snmptrap integration documet.
Also installed snmpsender wizard, enabled SNMP trap sending functionality &Specify the IP address of the hosts that SNMP traps should be sent to.

But on specified IP i am not able to receive snmp traps from XI.

However, the same procedure i have followed previously & able to sent traps successfully.
On new server i am finding it to difficult.

Re: sending snmp trap to third party application

Posted: Thu Oct 11, 2012 2:18 pm
by slansing
Moving this to Nagios XI general support, which version of XI are you running? The latest 2011, or 2012?

Also, do you have any firewalls between Nagios XI and the device? If so have you opened port 142 UDP?

Re: sending snmp trap to third party application

Posted: Thu Oct 11, 2012 2:45 pm
by nscott
On your new Nagios XI server can you see if you have the net-snmp-utils package installed?

Here is an example output of what it should look like, notice the installed part:

Code: Select all



[root@localhost ~]# yum info net-snmp-utils
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
epel/metalink                                                                                     |  11 kB     00:00
 * base: yum.singlehop.com
 * epel: mirrors.servercentral.net
 * extras: mirror.steadfast.net
 * rpmforge: mirror.us.leaseweb.net
 * updates: mirror.beyondhosting.net
base                                                                                              | 3.7 kB     00:00
cr                                                                                                | 3.0 kB     00:00
epel                                                                                              | 4.3 kB     00:00
epel/primary_db                                                                                   | 3.9 MB     00:01
extras                                                                                            | 3.0 kB     00:00
rpmforge                                                                                          | 1.9 kB     00:00
updates                                                                                           | 3.5 kB     00:00
updates/primary_db                                                                                | 2.8 MB     00:00
Installed Packages
Name        : net-snmp-utils
Arch        : i686
Epoch       : 1
Version     : 5.5
Release     : 41.el6_3.1
Size        : 306 k
Repo        : installed
From repo   : updates
Summary     : Network management utilities using SNMP, from the NET-SNMP project
URL         : http://net-snmp.sourceforge.net/
License     : BSD
Description : The net-snmp-utils package contains various utilities for use with the
            : NET-SNMP network management project.
            :
            : Install this package if you need utilities for managing your network
            : using the SNMP protocol. You will also need to install the net-snmp
            : package.

Re: sending snmp trap to third party application

Posted: Fri Oct 12, 2012 12:32 am
by lafargeuser
Thanks.

Nagios was able to sent Traps to respective machine. But Third party application owner not read those logs.
I checked on their console & shown them the Nagios alerts.

Traps which are receiving on respective hosts are with very limited information.

How can i enrich or customize my message so that in traps i can send complete information example given below:
Subject: ** PROBLEM Service Alert: BPPM/BMC ProactiveNet Server is CRITICAL **

***** Nagios *****

Notification Type: PROBLEM

Service: BMC ProactiveNet Server
Host: BGLRMSBPPM
Address: 172.16.98.66
State: CRITICAL

Date/Time: Tue Oct 9 16:21:50 IST 2012

Additional Info:

BMC ProactiveNet Server: Unknown

Re: sending snmp trap to third party application

Posted: Fri Oct 12, 2012 12:05 pm
by scottwilkerson
If you wanted to change the format of the message, you would need to edit the component in
/usr/local/nagiosxi/html/includes/components/snmptrapsender/snmptrapsender.inc.php

Re: sending snmp trap to third party application

Posted: Thu Oct 18, 2012 6:19 am
by lafargeuser
Thanks.