Linux serverNETWORK ADMINISTRATIONS

Zabbix Installation on Centos 7 | Install Zabbix Server on Linux Centos | Install Zabbix



Install Zabbix
Install and configure Zabbix for your platform
Install Zabbix repository
Zabbix Installation on Centos 7
Solution Zabbix Server not running
Install Zabbix Server on Linux Centos
Install Zabbix Step by Step
Step by Step Installation of Zabbix

# rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/8/x86_64/zabbix-release-6.0-2.el8.noarch.rpm
# dnf clean all

Install Zabbix server, frontend, agent

# dnf install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts
zabbix-selinux-policy zabbix-agent

Installing MySQL
# sudo dnf install mysql-server $ this command will install mysql database service
# sudo systemctl start mysqld.service $ by the command we will start the service
# sudo systemctl status mysqld $ by using this command we can check service is running or not
# sudo systemctl enable mysqld

Create initial database

# mysql -uroot -p
password
# create database zabbix character set utf8mb4 collate utf8mb4_bin; $ command create database
# create user zabbix@localhost identified by ‘password’; $ command create user for database
# grant all privileges on zabbix.* to zabbix@localhost; $ grant access to the database for user
# quit;

On Zabbix server host import initial schema and data.
You will be prompted to enter your newly created password.

# zcat /usr/share/doc/zabbix-sql-scripts/mysql/server.sql.gz | mysql -uzabbix -p zabbix

Configure the database for Zabbix server
Edit file /etc/zabbix/zabbix_server.conf

DBPassword=password

Start Zabbix server and agent processes
Start Zabbix server and agent processes and make it start at system boot.

# systemctl restart zabbix-server zabbix-agent httpd php-fpm # command will restart all the services
# systemctl enable zabbix-server zabbix-agent httpd php-fpm # command will enable all the services

lets go to the browser to check for the zabbix
first we will check our ip address is working or not

first we will check the ip address with command
ip a

systemctl status httpd

nano /etc/selinux/config # to enter the configuration file
you have to disabled the selinux the area i have highlighted
#zabbix #nms #monitoring #server #linux #centos
courtesy to the zdsoft for their recording tool

source
centos 7