Page 1 of 1
Nagios Trap Receiver - VIP/Load Balancer
Posted: Thu May 07, 2020 10:16 am
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
Re: Nagios Trap Receiver - VIP/Load Balancer
Posted: Thu May 07, 2020 4:59 pm
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:
Nagios B's snmptrapd.conf:
Don't forget to restart the snmptrapd service on both:
That way every trap one receives would be forwarded to the other as well.
Re: Nagios Trap Receiver - VIP/Load Balancer
Posted: Fri May 08, 2020 7:06 am
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 ?
Re: Nagios Trap Receiver - VIP/Load Balancer
Posted: Fri May 08, 2020 11:22 am
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.
Re: Nagios Trap Receiver - VIP/Load Balancer
Posted: Tue Jun 02, 2020 2:18 am
by veeravamsi
Cool . thank you !
Re: Nagios Trap Receiver - VIP/Load Balancer
Posted: Tue Jun 02, 2020 7:20 am
by scottwilkerson
veeravamsi wrote:Cool . thank you !
Can we lock this thread?
Re: Nagios Trap Receiver - VIP/Load Balancer
Posted: Tue Jun 09, 2020 9:26 am
by veeravamsi
Yes please .
Re: Nagios Trap Receiver - VIP/Load Balancer
Posted: Tue Jun 09, 2020 9:27 am
by scottwilkerson
veeravamsi wrote:Yes please .
Great!
Locking thread