Zabbix monitoring error zabbix server is not running Solution

Source: Internet
Author: User

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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.