Page 1 of 1

SNMP traps

Posted: Fri Nov 02, 2012 11:55 am
by tom_wong
Hi, there, I have followed your 'Integrating SNMP traps with XI' doc and successfully getting traps.
However, I have the following questions.

(1) Only one SNMP trap (using the SNMP trap monitoring wizard) is allowed for a host, so if a host can send many traps, the latest trap message will replace the last one. I would like to create different services for different traps. How do I go about that?
(2) Secondly, how to obtain the state changes (say from critical to ok and vise versa) from a trap? I specify the trap serverity in snmptt.conf, but I can only specify it either Normal or Critical, for example. I would like to obtain the state depends on value received from the trap.

Hope you can provide me some answers.

Thanks
Tom

Re: SNMP traps

Posted: Fri Nov 02, 2012 12:59 pm
by scottwilkerson
For #1 I would recommend NSTI Addon, it will let you view all the traps
http://exchange.nagios.org/directory/Ad ... 29/details

#2, to see the state changes you can go to Reports -> State History

Re: SNMP traps

Posted: Mon Nov 05, 2012 5:10 am
by tom_wong
Thanks Scott,

I need to make my second question clearer, how do I let Nagios to know the severity of the trap message according to the value it receives?

At the moment, the severity is hard coded on the snmptt.conf. So when Nagios recieves a trap message, it display say OK or Critical according to the snmptt.conf config line, eg.

EVENT rttEncoderStateTrap .1.3.6.1.4.1.40312.1.9.0.2 "Status Events" Critical

We would like Nagios to display the status of the trap message according to the value it receives, how do we go about that?

Thanks
Tom

Re: SNMP traps

Posted: Mon Nov 05, 2012 1:11 pm
by scottwilkerson
I don't believe this is possible, it is set when the addmib calls /usr/local/bin/snmpttconvertmib

Re: SNMP traps

Posted: Wed Nov 07, 2012 5:26 am
by tom_wong
OK, in this case, we have to implement different traps for different states. Thanks