SNMPT TRAPS PER HOST \ ALERT

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bmiadmins
Posts: 35
Joined: Thu May 15, 2014 3:40 pm

SNMPT TRAPS PER HOST \ ALERT

Post by bmiadmins »

Hello,

I have been able to get snmptt working and passing traps up to nagios. However, using the trap wizard I end up with one service per host. What I would like to do is have a service that I could assign to multiple host for a given trap type. The idea is that for JRE, login, and network issues I would have a separate trap service assigned to multiple host. As it is, when a trap is generated for host1 I see only the one alert in the nagios panel. I would like it to layout like the below map:


HOST1 :
TRAP : JRE ISSUES
TRAP : HARDWARE ISSUES

HOST2 :
TRAP : JRE ISSUES
TRAP : HARDWARE ISSUES

In the above, I would like each of the traps to represent one service which I then assign either a host or hostgroup to. Is this possible with traps? Am I looking at changing the EXEC line in snmptt.conf to include a regex or something along those lines? I am may have missed it; however, I have not seen anything which lays out how to achieve this. The current way I have things set will only show the latest trap.


Thanks,

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

Re: SNMPT TRAPS PER HOST \ ALERT

Post by ssax »

You would want to edit your /etc/snmp/snmptt.conf and change the EXEC line for the OID's you want to have different service names, as an example, you would change:

Code: Select all

"SNMP Traps"
To:

Code: Select all

"SNMP Traps - JRE ISSUES"
You can add a MATCH to those to fire on specific information contained in the trap if you need duplicate OIDs that fire on different text.
http://snmptt.sourceforge.net/docs/snmp ... CONF-MATCH
bmiadmins
Posts: 35
Joined: Thu May 15, 2014 3:40 pm

Re: SNMPT TRAPS PER HOST \ ALERT

Post by bmiadmins »

Hello,

Thanks very much for the reply on this. Your help has been greatly appreciated!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: SNMPT TRAPS PER HOST \ ALERT

Post by lmiltchev »

bmiadmins, can we lock this topic and mark it as "resolved"?
Be sure to check out our Knowledgebase for helpful articles and solutions!
bmiadmins
Posts: 35
Joined: Thu May 15, 2014 3:40 pm

Re: SNMPT TRAPS PER HOST \ ALERT

Post by bmiadmins »

Hello,

Yes, please mark his as resolved.


Thanks again for the help!
Locked