Multiple traps for same host

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
deepavaidya
Posts: 80
Joined: Sun Oct 06, 2013 8:23 am

Re: Multiple traps for same host

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Multiple traps for same host

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
deepavaidya
Posts: 80
Joined: Sun Oct 06, 2013 8:23 am

Re: Multiple traps for same host

Post by deepavaidya »

Thanks a lot for the information!!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Multiple traps for same host

Post by slansing »

Do you have further questions on this?
deepavaidya
Posts: 80
Joined: Sun Oct 06, 2013 8:23 am

Re: Multiple traps for same host

Post 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>
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Multiple traps for same host

Post 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?
deepavaidya
Posts: 80
Joined: Sun Oct 06, 2013 8:23 am

Re: Multiple traps for same host

Post by deepavaidya »

I got it. It is a part of both. Thanks a lot for your support. We can lock this thread.
Locked