Page 2 of 2

Re: Multiple traps for same host

Posted: Thu Dec 12, 2013 8:15 am
by deepavaidya
Hi,

Multi line traps are simply traps which contain values on multiple lines, It does not mean that you redirect them to multiple hosts. Traps are only sent from one host, and that host address is what hooks into Nagios and updates service information for your traps.


Can you please help me understand that with an example.

We are already able to get multiple traps from a host by linking the OID to a specific service name created in nagios in snmptt.conf file. But the problem is to get multiple traps from same OID. Only the latest trap for a service can be seen in the console.

Re: Multiple traps for same host

Posted: Thu Dec 12, 2013 5:44 pm
by sreinhardt
The multi-trap information is not relevant in this case, as you are interested in filtering separate traps from the same device with the same oid, so that they go to separate services in nagios. As stated, this really needs to be handled by modifying the snmptraphandler.py or creating another script. Feel free to take a look into how it works, read through the code and such, but if you wanted us to make the changes, I would suggest contacting [email protected] as that is considered consulting or custom development.

Re: Multiple traps for same host

Posted: Fri Dec 13, 2013 12:09 am
by deepavaidya
Thanks a lot for the information!!

Re: Multiple traps for same host

Posted: Fri Dec 13, 2013 10:31 am
by slansing
Do you have further questions on this?

Re: Multiple traps for same host

Posted: Mon Dec 16, 2013 2:07 am
by deepavaidya
I am trying to modify the snmptraphandler.py. It is receiving the following inputs from snmptt.conf. It is writing all these data to nagios.cmd which is pipe file and does not have any data to read. I want to confirm if the Trap msg from the remote system will be a part of the <DATA> or <PERFDATA> ?

<HOST> <SERVICE> <SEVERITY> <TIME> <PERFDATA> <DATA>

Re: Multiple traps for same host

Posted: Mon Dec 16, 2013 10:48 am
by slansing
I want to confirm if the Trap msg from the remote system will be a part of the <DATA> or <PERFDATA> ?
This is a bit confusing, are you just trying to verify if the trap data is being passed to the nagios web interface?

Re: Multiple traps for same host

Posted: Tue Dec 17, 2013 12:52 am
by deepavaidya
I got it. It is a part of both. Thanks a lot for your support. We can lock this thread.