Zabbix server is not running: the information disp

2020-07-05 06:53发布

So all of a sudden, after a week of using it, I get an error message on my zabbix server gui (http://localhost/zabbix/.)

The error says: Zabbix server is not running: the information displayed may not be current.

Any idea why is this happening ll of a sudden and out of the blue? I restarted the machine - which should automatically restore the zabbix server upon startup - but it's still not running.

I also researched for a startup or restart command but true to form with zabbix helpful, clear documentation is non-existent.

EDIT:

Some more info:

MySQL is running normally. I'm able to select, insert into, whatever I want.

Doing /etc/init.d/zabbix-server status results in * zabbix_server is not running

The last entry in zabbix_server.log is Zabbix Server stopped. Zabbix 2.2.9 (revision 52686).

Doing sudo /etc/init.d/zabbix-server start results in * Starting Zabbix server zabbix_server but the status is still not running and the log file doesn't have any new entries.

标签: zabbix
24条回答
smile是对你的礼貌
2楼-- · 2020-07-05 07:40

In my case i had to disable Linux SE

[root@webserverlocaldomain /]# setenforce 0

Disable Firewall

[root@webserverlocaldomain /]# systemctl stop firewalld

Edit config file uncommenting#

[root@webserverlocaldomain /]# vi /etc/zabbix/zabbix_server.conf

 ListenPort=10051
 DBHost=localhost
 DBPassword=password

Then restart the services

[root@webserverlocaldomain /]# systemctl restart zabbix-server zabbix-agent httpd
查看更多
等我变得足够好
3楼-- · 2020-07-05 07:40

in my case after installing zabbix from sources (removed zabbix 4.0 because upgrading to 4.2 wasn't possible via apt on a Raspbian GNU/Linux 9.4 stretch) it loaded the config from /usr/local/etc/zabbix_server.conf instead from /etc/zabbix/zabbix_server.conf

After deleting /usr/local/etc/zabbix_server.conf and creating a symlink pointing to the correct config file in /etc/zabbix/zabbix_server.conf it started to work

查看更多
smile是对你的礼貌
4楼-- · 2020-07-05 07:42

Edit this file: sudo nano /etc/default/zabbix-server

Adjust the START property to yes:

START=yes

Then try to run Zabbix again: sudo service zabbix-server start

查看更多
混吃等死
5楼-- · 2020-07-05 07:42

There maybe IP address conflict, try host 'Zabbix server'

查看更多
在下西门庆
6楼-- · 2020-07-05 07:43

On RHEL/CentOS/OEL 6

  • Check that the firewall is allowing connection to Zabbix Server port which is 10051, as a user with root priv:

    vi /etc/sysconfig/iptables

and add the following lines

-A INPUT -m state --state NEW -m tcp -p tcp --dport 10051 -j ACCEPT

restart iptables

# service iptables restart

If you have disabled IPV6, you need to also edit the hosts file and remove IPV6 line for "localhost"

# vi /etc/hosts

remove or comment out "#" the ipv6 line for localhost

::1                   localhost6.localdomain6   localhost6

restart the zabbix-server and check if the error message is gone.

查看更多
放荡不羁爱自由
7楼-- · 2020-07-05 07:45

Solution might be this simple:

    sudo su 
    
    nano /etc/zabbix/zabbix-server.conf

Remove "#" in front of DBPassword=YourPassword (will change from blue to grey)

Ctrl x (Y to save and press enter to exit)

    service zabbix-server restart

Now you can refresh your browser running ZABBIX. If not, you will have to do the same steps for CacheSize=32M

You do not have to change anything in /etc/zabbix/web/zabbix.conf.php (localhost is fine)

When editing anything, remember "#" in front of line means invisible to linux.

查看更多
登录 后发表回答