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
Nagios Trap Receiver - VIP/Load Balancer
Re: Nagios Trap Receiver - VIP/Load Balancer
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.
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:162Code: Select all
forward default NAGIOSAIP:162Code: Select all
service snmptrapd restart-
veeravamsi
- Posts: 146
- Joined: Wed Jan 23, 2019 3:35 am
Re: Nagios Trap Receiver - VIP/Load Balancer
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 ?
And accept only on Nagios Instance B where Host exists ?
Re: Nagios Trap Receiver - VIP/Load Balancer
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.
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
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
Can we lock this thread?veeravamsi wrote:Cool . thank you !
-
veeravamsi
- Posts: 146
- Joined: Wed Jan 23, 2019 3:35 am
Re: Nagios Trap Receiver - VIP/Load Balancer
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
Great!veeravamsi wrote:Yes please .
Locking thread