Zabbix has been deployed on ubuntu servers for monitoring over the past few days. The process encountered some problems and recorded them. Hope to help you. Source: http://www.jincon.com/archives/169/
Remember that the latest zabbix version is not recommended ~~~~ Find a minor version.
An error occurred during the installation process:
Zabbix red pop-up error: zabbix server is not running: the information displayed may not be current jincon
Case 'zabbix. status': $ session = Z: getInstance ()-> getSession (); if (! Isset ($ session ['servercheckresult']) | ($ session ['serverchecktime'] + SERVER_CHECK_INTERVAL) <= time () {$ zabbixServer = new CZabbixServer ($ ZBX_SERVER, $ ZBX_SERVER_PORT, ZBX_SOCKET_TIMEOUT, 0); $ session ['servercheckresult'] = $ zabbixServer-> isRunning (); $ session ['serverchecktime'] = time ();} # http://www.jincon.com $ result = array ('result' => (bool) $ session ['servercheckresult'], 'message' => $ session [' Servercheckresult']? '': _ ('Zabbix server is not running: the information displayed may not be current. '); break;
Yes, here we will first instantiate the class: CZabbixServer, and then execute the method: isRunning ();
Continue to track the file in:
Zabbix/include/classes/server/CZabbixServer. php
The last tracing method is executed in connect,
The problem lies in Row 3:
If (! $ Socket = @ fsockopen ($ this-> host, $ this-> port, $ errorCode, $ errorMsg, $ this-> timeout )){
Yes. Here, fsockopen is empty.
Why is it empty? I suddenly thought it was disabled. phpinfo looked at it.
Of course, if the problem is found, the solution is as follows:
EnableFsockopenFunction.
Original Source: http://www.jincon.com/archives/169/ reprint please indicate the source of HA...