Skip to main content

Posts

HA Web Server for Zabbix on centos 7

First time, we need an virtual machine with Ubuntu 18.04 for install Nginx Server and know the future IP address of servers zabbix. zabbix-sql01 – 10.0.0.4 zabbix-node01 – 10.0.0.1 zabbix-node02 – 10.0.0.2 zabbix-node-vip – 10.0.0.3 zabbix-web01 – 10.0.0.5 zabbix-web02 – 10.0.0.6 zabbix-web-vip – 10.0.0.7 Install Apache # yum install -y httpd wget  # firewall-cmd --permanent --add-service=http # firewall-cmd --reload   Create Website Documents # vi /var/www/html/index.html <html> <body>My Test Site - 38</body> </html> # vi  /etc/httpd/conf.d/status.conf <Location /server-status> SetHandler server-status Require local </Location> # pcs resource create WebSite ocf:heartbeat:apache \ configfile=/etc/httpd/conf/httpd.conf \ statusurl="http://localhost/server-status" \ op monitor interval=1min # pcs status # wget -O - http://localhost/server-status
Recent posts

High Availability (HA) Zabbix Server on CentOs 7

Prerequisite First time, we need two virtual machines with Ubuntu 18.04 and 3 IP for make high availability for Zabbix Server 3.4 1st server :  zabbix-node01 – 10.0.0.1 2nd server : zabbix-node02 – 10.0.0.2 Virtual IP * for HA – 10.0.0.3 What’s Virtual IP  : A virtual IP address (VIP or VIPA) is an IP address that  doesn’t correspond  to an  actual physical network interface . Uses for VIPs include network address translation (especially, one-to-many NAT), fault-tolerance, and mobility.  From Wikipedia Step 1: Configure DNS To optimize dns queries and avoid false positives, we need to configure our  /etc/hosts on both servers. 1 2 10.0.0.1    zabbix - node01   zabbix - node01 .example .com 10.0.0.2    zabbix - node02   zabbix - node02 .example .com Step 2: Install Zabbix Server Add repository Zabbix on  both servers 1 2 3 rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm yum update