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
SNMPT TRAPS PER HOST \ ALERT
Re: SNMPT TRAPS PER HOST \ ALERT
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:
To:
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
Code: Select all
"SNMP Traps"Code: Select all
"SNMP Traps - JRE ISSUES"http://snmptt.sourceforge.net/docs/snmp ... CONF-MATCH
Re: SNMPT TRAPS PER HOST \ ALERT
Hello,
Thanks very much for the reply on this. Your help has been greatly appreciated!
Thanks very much for the reply on this. Your help has been greatly appreciated!
Re: SNMPT TRAPS PER HOST \ ALERT
bmiadmins, can we lock this topic and mark it as "resolved"?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: SNMPT TRAPS PER HOST \ ALERT
Hello,
Yes, please mark his as resolved.
Thanks again for the help!
Yes, please mark his as resolved.
Thanks again for the help!