Page 1 of 1

forward Nagios XI SNMP traps to a device/led panel

Posted: Mon Sep 24, 2018 9:13 am
by lukedevon
Hi

I have a requirement to forward Nagios XI SNMP traps to a device which is capable of displaying alerts with a light indication. for example, in case if a node or service down, based on the generated alerts I wanna display Red color and when it becomes normal - display green ...so on.

But I am not sure if I can achieve this using Nagios XI. I wonder if anyone in the Nagios community has implemented such a solution using Nagios XI.

Appreciate if there is anyone who can help me on this also please let me know if there is such a hardware available which compatible with Nagios.

Thank you
Luke.

Re: forward Nagios XI SNMP traps to a device/led panel

Posted: Mon Sep 24, 2018 9:21 am
by jforcier
Add these 2 lines to the snmptrapd.conf file on the server that first receives the traps. Replace localhost with the IP address of the server you are forwarding to.

Code: Select all

authCommunity log,net public
forward default localhost:162
The authCommunity line enables the system to log the received trap and the net enables the forwarding to another host if a trap is received with the public community string.

Re: forward Nagios XI SNMP traps to a device/led panel

Posted: Mon Sep 24, 2018 7:25 pm
by lukedevon
Hi,

Thank you for the reply.

Can I forward only selected SNMP traps to the external SNMP receiver?

for example ;

1. Except for Loalhost, and some elected Nodes/IPs.

2. If I want to forward only from selected Node/IP (192.168.10.75)

Thank you
Luke.

Re: forward Nagios XI SNMP traps to a device/led panel

Posted: Tue Sep 25, 2018 10:46 am
by jforcier
It's possible to forward specific traps by OID.

The word default in that line means that all traps received will be forwarded. If only specific OIDs are to be forwarded, list the OIDs in the line, instead of using the word default, for example:

Code: Select all

authCommunity log,net public
forward .1.3.6.1.4.1 localhost