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
sending SNMP traps to third party
Re: sending SNMP traps to third party
Are you trying to forward ALL traps that hit the Nagios server or just the ones that send notifications?
Re: sending SNMP traps to third party
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
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
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: sending SNMP traps to third party
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?
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.
Re: sending SNMP traps to third party
yes, thank you.
we can close the thread
we can close the thread