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
SNMP traps
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: SNMP traps
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
http://exchange.nagios.org/directory/Ad ... 29/details
#2, to see the state changes you can go to Reports -> State History
Re: SNMP traps
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
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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: SNMP traps
I don't believe this is possible, it is set when the addmib calls /usr/local/bin/snmpttconvertmib
Re: SNMP traps
OK, in this case, we have to implement different traps for different states. Thanks