Nagios Trap Receiver - VIP/Load Balancer

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
veeravamsi
Posts: 146
Joined: Wed Jan 23, 2019 3:35 am

Nagios Trap Receiver - VIP/Load Balancer

Post by veeravamsi »

Hi Team,

Is it possible to have multiple Nagios Instances enabled to function as Trap Receiver in a Load-Balanced Way ??

Like Creating a VIP on Loadbalancer and add Nagios IPAddress:162 to redirect SNMP Traps incoming.

I couldnt find any documentation online so checking here.

--Vamsi
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios Trap Receiver - VIP/Load Balancer

Post by ssax »

There is no inherent load balancing functionality built in for this.

It's not really load balancing but you could edit your /etc/snmp/snmptrapd.conf on each nagios server and add this:

Nagios A's snmptrapd.conf:

Code: Select all

forward default NAGIOSBIP:162
Nagios B's snmptrapd.conf:

Code: Select all

forward default NAGIOSAIP:162
Don't forget to restart the snmptrapd service on both:

Code: Select all

service snmptrapd restart
That way every trap one receives would be forwarded to the other as well.
veeravamsi
Posts: 146
Joined: Wed Jan 23, 2019 3:35 am

Re: Nagios Trap Receiver - VIP/Load Balancer

Post by veeravamsi »

Nice !! Does this help in Discarding the Traps on that Nagios Instance A where Host is not monitored ?

And accept only on Nagios Instance B where Host exists ?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios Trap Receiver - VIP/Load Balancer

Post by ssax »

Unfortunately, it doesn't discard the traps, it's just a way to forward the traps to another system.

You could technically do it by sending to the VIP and it should hit either server based on which node is active.
veeravamsi
Posts: 146
Joined: Wed Jan 23, 2019 3:35 am

Re: Nagios Trap Receiver - VIP/Load Balancer

Post by veeravamsi »

Cool . thank you !
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Trap Receiver - VIP/Load Balancer

Post by scottwilkerson »

veeravamsi wrote:Cool . thank you !
Can we lock this thread?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
veeravamsi
Posts: 146
Joined: Wed Jan 23, 2019 3:35 am

Re: Nagios Trap Receiver - VIP/Load Balancer

Post by veeravamsi »

Yes please .
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Trap Receiver - VIP/Load Balancer

Post by scottwilkerson »

veeravamsi wrote:Yes please .
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked