Zabbix Installation
Zabbix Installation
Zabbix Installation
Note: CentOS uses MariaDB instead of MySQL, but this will not cause any issues while
following this tutorial.
Log in to MySQL as the root user using the root password that you set up during the
MySQL server installation:
mysql -uroot -p
Create the Zabbix database with UTF-8 character support:
Then create a user that the Zabbix server will use, give it access to the new
database, and set the password for the user:
flush privileges;
That takes care of the user and the database. Exit out of the database console:
quit;
Step 2 – Install and Configure Apache
Use the following commands:
vim /etc/php.ini
Uncomment the following line and add your time zone.
date.timezone = Australia/Sydney
Flush privileges.
flush privileges;
vim /etc/httpd/conf.d/zabbix.conf
Uncomment the following line and add your Time Zone.
php_value upload_max_filesize 2M
php_value always_populate_raw_post_data -1
cd /usr/share/doc/zabbix-server-mysql-4.0.4/
Import the MySQL dump file.
zcat create.sql.gz | mysql -u zabbixuser -p
fosslinuxzabbix
vim /etc/zabbix/zabbix_server.conf
Modify the following parameters
DBHost=localhost
DBName=fosslinuxzabbix
DBUser=zabbixuser
DBPassword=@dfEr234KliT90
Then save and exit the file. Restart Zabbix service.
firewall-cmd --add-port={10051/tcp,10050/tcp} --
permanent
firewall-cmd --reload
Now restart httpd service.