After zabbix is installed normally, zabbix monitoring reports the error zabbix server is not running: the information displayed may not be current after logon,
This error may occur in the following situations,
1. Whether SELinux is disabled. You must disable this function. Enabling SELinux will cause a series of problems, and even the zabbix discovery function cannot be used normally.
To disable SELinux, modify SELinux = "" in the/etc/SELinux/config file to "disabled" and then restart SELinux. If you do not want to restart the system, run the setenforce 0 command. Note: setenforce 1 sets SELinux to enforcing mode. setenforce 0 sets SELinux to permissive mode. Add SELinux = 0 to the startup parameters of LILO or grub, you can also disable SELinux.
2. Check whether the $ zbx_server under the zabbix web directory is an IP address. If it is localhost, ping it to check whether the localhost can be parsed. If not, add the corresponding project to the/etc/hosts file.
3. Check whether the fsockopen module of PHP is enabled.
Method 1:
Step 1:
Search for the php. ini file
Allow_url_fopen = on
Set the value to on
Step 2:
Search for the php. ini file
Extension = php_openssl.dll
If there is a semicolon before, remove the semicolon
Step 3:
Restart the web server, Apache, or IIS
There is another case, that is, Method 2:
1. vi php. ini
Set allow_url_fopen to on, that is
Allow_url_fopen = on
2. Let your PHP support opensll extension.
By default, OpenSSL extensions are not available and you can only recompile and install them.
Yum install OpenSSL-devel
CD/usr/local/src/php-5.2.14/EXT/OpenSSL
/Usr/local/PHP/bin/phpize
./Configure-with-OpenSSL-with-PHP-Config =/usr/local/bin/PHP-config
Make & make install
Follow the prompts to copy the compiled OpenSSL. So file to the extension_dir file you specified in PHP. ini.
3. vi php. ini
Join
Extension = OpenSSL. So
4. Restart the Web Server
Zabbix server is not running Solution