sending snmp trap to third party application

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

sending snmp trap to third party application

Post 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.
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: sending snmp trap to third party application

Post 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.
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Re: sending snmp trap to third party application

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: sending snmp trap to third party application

Post 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?
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: sending snmp trap to third party application

Post 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.
Nicholas Scott
Former Nagios employee
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Re: sending snmp trap to third party application

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: sending snmp trap to third party application

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Re: sending snmp trap to third party application

Post by lafargeuser »

Thanks.
Locked