Hello friends
Welcome to my video
In this video I show you how to setup IP failover on zabbix network monitoring with keepalived
Keepalived is used for IP failover between two servers
Its facilities for load-balancing and high availability to linux-based infrastructures
It worked on Virtual Router redundancy protocol
In this video
We have configured IP failover between two zabbix systems running as a high availability infrastructures
I have 2 Zabbix servers with ip addresses of 10.11.32.95 and 10.11.32.96 . respectively
10.11.32.96
Respectively
The goal of this video is to configure the virtual IP address for to zabak's servers as 10.11.32.100
10.11.32.100
Let's move to the configuration IP failover setup between Zabbix 01 and Zabbix 02 servers
Let’s move to the configuration IP failover setup between Zabbix 01 and Zabbix 02 servers
First of all, Use the following command to install required packages to configure Keepalived on the server
Keepalived packages are available under default apt repositories
So just use a command to install it on both servers
Now create or edit Keepalived configuration file on Zabbix 01 and add the following settings
Update all values with your network and system configuration
On your primary server
Create the main keepalived configuration file
virtual_router_id should be same on both Zabbix 01 and Zabbix 02 servers
We also set up some simple authentication for our keepalived daemons to communicate with one another
Then open a block called vrrp_instance which is the main configuration section that defines the way that keepalived will implement high availability
that keepalived will implement high availability
Then assign an ID for this cluster group that will be shared by both nodes
After that we will tell keepalived to use the routine we created at the top of the file, labeled chk_kalived, to determine the health of the local system
labeled chk_kalived,
to determine the health of the local system
Priority value will be higher on Master server, It doesn’t matter what you used in state
If your state is MASTER but your priority is lower than the router with BACKUP, you will lose the MASTER state
Start keepalived service using the following command and also configure to autostart on system boot
Use the following command to show assigned virtual IP on the interface
Now save the primary servers configuration and move to the secondary servers configurations file setup
The most of the configurations will be similar to our primary servers configurations file
Note
The virtual IP address is the same, the password is the same on both servers
Priority value will be higher on Master server, It doesn’t matter what you used in state
Save the configuration file after making required changes and move to the next step
Use the following command to show assigned virtual IP on the interface
Next you configure SNMP on both servers to monitor their health
Shutdown master server and check if ips are automatically assigned to slave server
thanks for watching don't forget to like and subscribe
Now start Zabbix 01 . IPs will automatically assigned to master server
IPs will automatically assigned to master server