Comments on How to Install and Configure Zabbix on CentOS 7
Zabbix is an open source monitoring tool for network services, network hardware, servers, and application. In this tutorial, we will show you step-by-step how to install and configure an open source monitoring system Zabbix 3.4 on the CentOS 7 system.
16 Comment(s)
Comments
Works like a charm! Each and every command is in accordance with CentOS 7. Thank you for this awsome tutorial.
Works like a charm!
1. Missing the postfix part for sending notifications via email.
2. there is an error when going to latest data that says: "
count(): Parameter must be an array or an object that implements Countable [ in latest.php:104]"
anyway thank you so much!
Works like a charm! Each and every command is in accordance with Amazon LInux as well. Thank you for this awsome tutorial.
I have a problem, and I have searched but I have not found the solution.
When typing systemctl status zabbix-server the result I get is the following:
? zabbix-server.service - Zabbix Server
Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled; vendor preset: disabled)
Active: deactivating (sop-sigterm) (Result: exit-code) since Fri 2018-06-22 08:13:48 -04; 1h 5min ago
Process: 15183 ExecStop = / bin / kill -SIGTERM $ MAINPID (code = exited, status = 1 / FAILURE)
Process: 15128 ExecStart = / usr / sbin / zabbix_server -c $ CONFFILE (code = exited, status = 0 / SUCCESS)
Main PID: 15130 (code = exited, status = 0 / SUCCESS)
CGroup: /system.slice/zabbix-server.service
??15151 / usr / sbin / zabbix_server -c /etc/zabbix/zabbix_server.conf
??15153 / usr / sbin / zabbix_server -c /etc/zabbix/zabbix_server.conf
Jun 22 08:13:48 localhost.localdomain kill [15183]: with the same uid as the present process
Jun 22 08:13:48 localhost.localdomain kill [15183]: -s, --signal <sig> send specific signal
Jun 22 08:13:48 localhost.localdomain kill [15183]: -q, --queue <sig> use sigqueue (2) rather than kill (2)
Jun 22 08:13:48 localhost.localdomain kill [15183]: -p, --pid print pids without signaling them
Jun 22 08:13:48 localhost.localdomain kill [15183]: -l, --list [= <signal>] list signal names, or convert one to a name
Jun 22 08:13:48 localhost.localdomain kill [15183]: -L, --table list signal names and numbers
Jun 22 08:13:48 localhost.localdomain kill [15183]: -h, --help display this help and exit
Jun 22 08:13:48 localhost.localdomain kill [15183]: -V, --version output version information and exit
Jun 22 08:13:48 localhost.localdomain kill [15183]: For more details see kill (1).
Jun 22 08:13:48 localhost.localdomain systemd [1]: zabbix-server.service: control process exited, code = exited status = 1
it's diferent.
Please, Help me
I had a similar issue. Cause is SELINUX for me. Disabled until i can understand the details...
Here is a clue.
http://d-prototype.com/archives/10737
thanks a lot, save time.
but after all the installation done it gives me the error Zabbix server is not running?
how to fix?
i have added listenIP also
First you need to know what causes make your error by using command :vi /var/log/zabbix/zabbix_server.log
After that you can follow intructions below : (in my case I met an error : Cannot bind socket to “/var/run/zabbix/zabbix_server_preprocessing.sock”: [13] Permission denied.)
# getsebool -a | grep zabbix # setsebool -P zabbix_can_network on # systemctl stop mysqld # systemctl stop zabbix-server # systemctl stop zabbix-agent # yum install -y policycoreutils-python # sudo yum install wget # wget -O zabbix_server_add.te https://support.zabbix.com/secure/attachment/53320/53320_zabbix_server_add.te –no-check-certificate # checkmodule -M -m -o zabbix_server_add.mod zabbix_server_add.te # semodule_package -o zabbix_server_add.pp -m zabbix_server_add.mod # semodule -i zabbix_server_add.pp # systemctl restart zabbix-server; # systemctl restart zabbix-agent # systemctl start mysqld # systemctl start zabbix-server # systemctl start zabbix-agentAfter install python package you can fix your error!
Hope this help!
Hello,
great tutorial!
But I am stuck at some point.
At the Zabbix pre-requisites it gives an error.
PHP option "date.timezone" unknown FailTime zone for PHP is not set (configuration parameter "date.timezone")
I already searched in the php file and I used date.timezone = Europe
I also changed it to Asia/Jakarta but the error still accurs.
How can I fix this? Thanks in advance.
Try to set the timezone in php.ini file to this exact line:
date.timezone = "Asia/Jakarta"
and restart apache.
Lol, I forgot to remove the ; before the command line date.timezone.
Thank you for the quick answer!
Muito obrigado, deu tudo certo.
This instruction set was really good. The only part i'm having a hard time with is the user access to the database for some reason.
The logs show
29995:20181228:081714.946 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
29995:20181228:081714.946 database is down: reconnecting in 10 seconds
Any suggestions? Thanks a lot!!
Works just fine with 4.0.* as well
If you are get error below when starting "zabbix-server":
cannot start preprocessing service: Cannot bind socket to "/var/run/zabbix/zabbix_server_preprocessing.sock": [13] Permission denied.
Fix is below:
yum install policycoreutils-python
cd ~
curl https://support.zabbix.com/secure/attachment/53320/zabbix_server_add.te > zabbix_server_add.te
checkmodule -M -m -o zabbix_server_add.mod zabbix_server_add.te
semodule_package -m zabbix_server_add.mod -o zabbix_server_add.pp
semodule -i zabbix_server_add.pp
Hello,
after installing zabbix successfully I am facing this error while opening the Url
date(): Invalid date.timezone value 'Africa/Egypt', we selected the timezone 'UTC' for now. [zabbix.php:21 ? require_once() ? ZBase->run() ? ZBase->processRequest() ? CController->run() ? CControllerDashboardView->doAction() ? calculateTime() ? date() in include/func.inc.php:2610]
Hi, I set the same parameter and restart apache but the result is same "Time zone for PHP is not set". Any suggestions?