0% found this document useful (0 votes)
71 views2 pages

Zabbix Command Line by DAREVE

Zabbix is an open-source software for monitoring IT infrastructure like networks, servers, virtual machines, and cloud services. It monitors metrics such as network utilization, CPU load, and disk space consumption. The document then provides instructions for customizing Zabbix to have enterprise-grade monitoring by installing it on CentOS and configuring the Zabbix server, frontend, database, and firewall settings.

Uploaded by

darev
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views2 pages

Zabbix Command Line by DAREVE

Zabbix is an open-source software for monitoring IT infrastructure like networks, servers, virtual machines, and cloud services. It monitors metrics such as network utilization, CPU load, and disk space consumption. The document then provides instructions for customizing Zabbix to have enterprise-grade monitoring by installing it on CentOS and configuring the Zabbix server, frontend, database, and firewall settings.

Uploaded by

darev
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Zabbix is an open-source (NPM) for IT organizations to monitor IT Infrastructure

including networks, servers, virtual machines and cloud services. Zabbix is an


open-source NPN for IT organizations to monitor IT Infrastructure including
networks, servers, virtual machines and cloud services. Zabbix provides monitoring
metrics, among others network utilization, CPU load and disk space consumption.

And you can Customize it to enterprise grade.

1. Disable SELinux

sudo setenforce 0
sudo sed -i 's/^SELINUX=.*/SELINUX=permissive/g' /etc/selinux/config
cat /etc/selinux/config | grep SELINUX=

2. Install Apache

dnf -y install @httpd


systemctl enable --now httpd

3. Install MariaDB

dnf module install mariadb


rpm -qi mariadb-server (To know version of MariaDB)
systemctl enable --now mariadb
mysql_secure_installation (Harden your database)
mysql -u root -p

4. Create Database & User

CREATE DATABASE zabbix character set utf8 collate utf8_bin;


GRANT ALL PRIVILEGES ON zabbix.* TO zabbix@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
QUIT;

5. Zabbix Server Frontend Installation

dnf -y install https://repo.zabbix.com/zabbix/5.0/rh...

dnf -y install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-agent

6. Import Initial Schema

zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -u zabbix -p zabbix

7. Configure Zabbix Server Conf ( /etc/zabbix/zabbix_server.conf

DBName=zabbix
DBUser=zabbix
DBPassword=StrongPassword

8. Configure PHP for Zabbix Frontend

vi /etc/php-fpm.d/zabbix.conf
php_value[date.timezone] = Africa/Nairobi

9. Restart Zabbix services

systemctl restart zabbix-server zabbix-agent httpd php-fpm


systemctl enable zabbix-server zabbix-agent httpd php-fpm

systemctl status zabbix-server ( Server Status )

10. Configure Zabbix Frontend Optional

vi /etc/php.ini
memory_limit 128M
upload_max_filesize 8M
post_max_size 16M
max_execution_time 300
max_input_time 300

11. Allow ports on firewall

sudo firewall-cmd --add-service=http --permanent


sudo firewall-cmd --add-port={10051,10050}/tcp --permanent
sudo firewall-cmd --reload
max_input_vars 10000

sudo systemctl restart httpd php-fpm

End of File
_______________________________________

You might also like