Zabbix server is not running:the information displayed may not be current
Zabbix服務器沒有運行:顯示的信息可能不是當前的
壹、SELinux未關閉
selinux壹定要關閉,如果開啟selinux,可能zabbix的discovery都不能正常使用
關閉selinux方法:
1、修改/etc/selinux/config文件中的SELINUX=“”值為disable是,然後重啟。
2、如果不想重啟,使用setenforce 0
setenforce 1,selinux為enforcing模式
setenforce 0,selinux為permissive模式
二、zabbix web 目錄下面,$ZBX_SERVER 是否為IP,如果是localhost,ping壹下localhost是否能解析。如果不能,需要/etc/hosts文件裏增加相應的項目。
三、查看php的fsockopen模塊是否啟用。
方法壹:
第壹步:
php.ini文件中查找
allow_url_fopen = On
使其值為On
第二步:
php.ini文件中查找
extension=php_openssl.dll
如果前面有分號,去掉分號
第三步:
重啟web服務器,apache或IIS
方法二:
1. vi php.ini
找到 allow_url_fopen 這個參數設置成 On,即
allow_url_fopen = On
2. 讓妳的php支持 opensll擴展。
默認,是沒有openssl擴展的,只能重新編譯安裝。
yum install openssl 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
看提示,把編譯成的openssl.so 拷貝到妳在php.ini 中指定的 extension_dir 下
3. vi php.ini
加入
extension=openssl.so
4. 重啟web server
四、監控對象占滿了trapper進程導致前端與server無法通信
“At least one trapper process must be running to display server availability and view queue in the frontend.”——Trapper進程用於接收前端查詢server可用性及隊列的請求將StartTrappers=20調整到StartTrappers=100,重啟zabbix-server。
技術交流歡迎加入Q群:177428068