sending SNMP traps to third party

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
vvz
Posts: 187
Joined: Wed Oct 30, 2013 5:15 pm

sending SNMP traps to third party

Post by vvz »

Hi!

I have a number of hosts which are monitored with standard Nagios Core (3.5.1) plugins and I get standard notifications via NRPE, NSCA to my nagios instance.
Third party company asks me to send them SNMP traps from my Nagios and provided me with SNMP community, addresses, SNMP version and so on.
My question is may sound silly - is there any way to relay standard notifications I get to my nagios server to this third party server as SNMP?

thank you
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: sending SNMP traps to third party

Post by ssax »

Are you trying to forward ALL traps that hit the Nagios server or just the ones that send notifications?
vvz
Posts: 187
Joined: Wed Oct 30, 2013 5:15 pm

Re: sending SNMP traps to third party

Post by vvz »

just one send notifications...
and to make it clear, I do not receive any snmptraps to nagios for the moment, to make it easier let's admit that all that I'm getting for now --- standard strings via NSCA to cmd pipe -- $HOST$SERVICE$STATUS$PLUGIN_OUTPUT with the tabs between them of course
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: sending SNMP traps to third party

Post by Box293 »

What you could do is create a contact object and use that object to send SNMP trap notifications to.

Basically, a contact uses the commands notify-host-by-email and notify-service-by-email which is just a big printf that is piped to /bin/mail.

You could create separate commands that use the snmptrap command. You then assign these commands to the new contact.

With this setup, any host or service objects this contact is assigned to will execute the SNMP Trap commands you defined to send the SNMP Trap to the destination.

Does that help?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
vvz
Posts: 187
Joined: Wed Oct 30, 2013 5:15 pm

Re: sending SNMP traps to third party

Post by vvz »

yes, thank you.
we can close the thread
Locked