Ошибка zabbix сервер не запущен

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.

asked Jul 19, 2015 at 13:59

Eddy's user avatar

EddyEddy

3,48313 gold badges58 silver badges87 bronze badges

just get into the zabbix.conf.php

   >$sudo vim /etc/zabbix/web/zabbix.conf.php
   >$ZBX_SERVER      = '**your zabbix ip address or DNS name**';
   >$ZBX_SERVER_PORT = '10051';
   >$ZBX_SERVER_NAME = '**your zabbix hostname**';

just change the ip address you can resolve the error

Zabbix server is not running: the information displayed may not be current

After that restart the zabbix server

 >$sudo service zabbix-server restart

To verify go to Dashboard Administration -> queue there you see data

i resolved my error like this works fine for me.

Community's user avatar

answered Oct 25, 2017 at 9:10

Javeed Shakeel's user avatar

Javeed ShakeelJaveed Shakeel

2,8562 gold badges29 silver badges40 bronze badges

To solve the problem zabbix server is not running you have to :

First — Check that all of the database parameters in zabbix.conf.php ( /etc/zabbix/web/zabbix.conf.php) and zabbix_server.conf ( /etc/zabbix/zabbix_server.conf) to be the same. Including:
• DBHost
• DBName
• DBUser
• DBPassword

Second- Change SElinux parameters:

#setsebool -P httpd_can_network_connect on
#setsebool -P httpd_can_connect_zabbix 1
#setsebool -P zabbix_can_network 1

After all, restart all services:

#service zabbix-server restart
#service httpd restart

worth a try.

mwfearnley's user avatar

mwfearnley

3,2232 gold badges32 silver badges35 bronze badges

answered Sep 7, 2016 at 10:43

farnaz's user avatar

0

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

answered Dec 10, 2015 at 17:40

Ikbel's user avatar

IkbelIkbel

7,6513 gold badges34 silver badges45 bronze badges

This may happen because of the old and new IP address
I have faced same issue which was solve by below method:

vim /etc/zabbix/web/zabbix.conf.php

$ZBX_SERVER = new ip address

then restart zabbix server

Alexandru Marculescu's user avatar

answered Oct 29, 2016 at 15:13

Manu Narayan Shrestha's user avatar

I was using a special character in my DB password — wrapping the DBPassword option in /etc/zabbix/zabbix_server.conf and doing sudo service zabbix-server restart got me back up and running.

Not Working
DBPassword=MyString?

Working
DBPassword='MyString?'

answered Sep 7, 2017 at 14:03

m.Riston's user avatar

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.

Community's user avatar

answered Jul 6, 2019 at 11:09

DRE's user avatar

As Zabbix Senior Instructor and Consultant Hernandes Martins says in his «Zabbix server is not running what to do?» blog post:

This is the first step that should be checked regardless of the situation, always view the logs, from the moment the error message appeared in the zabbix web interface always view the log.

By following his advice I could be able to identify the cause of the issue with my Zabbix server, and then apply the solution related to the specific problem.

In my case, as I’ve commented in the page:

The problem in my server was of «4. Resource Allocation Issues». Just like you wrote above, Zabbix was showing out of memory errors on the log when trying to start the server.

After increasing the value of parameter CacheSize I tried to restart the service, but it didn’t respond. So, I ended up restarting the whole machine. Fortunately, in the end it resolved the problem for good.

So, take a look at the log with command tail -f /var/log/zabbix/zabbix_server.log on the terminal/prompt, watch for any errors, and tackle the problem according to what it makes sense for your particular case.

answered Oct 29, 2019 at 13:17

Ulysses Alves's user avatar

Ulysses AlvesUlysses Alves

2,2693 gold badges23 silver badges34 bronze badges

Looks like the problem was that I created a Database monitoring Item programmatically and it triggered a bug that caused the server to shutdown.

Once I deleted the item the server came back up, and creating subsequent Items didn’t kill it.

The deadly Item had a value_type of Numeric unsigned, -1 programmatically, while the newly created Items have a value_type of float, which is 0 programmatically.

The whole thing has a voodoo element to it but it did solve my problem.

answered Jul 20, 2015 at 4:35

Eddy's user avatar

EddyEddy

3,48313 gold badges58 silver badges87 bronze badges

Maybe is configuration issue

nano /etc/zabbix/zabbix_server.conf

DBHost=localhost

DBName=zabbix_db

DBUser=zabbix_user

DBPassword=XXXXXXX

works for me on Zabbix 3.0 Centos 7

answered Aug 25, 2016 at 18:16

Violeta Sosa's user avatar

The zabbix-server daemon doesn’t seem to like passwords with special characters in them. Unsure whether quotes would work in the configuration I just removed special characters from the database password, updated the configuration files and restarted the daemon.

Configuration parsing errors don’t show up in logs for some reason.

answered Sep 27, 2016 at 23:00

Steen Schütt's user avatar

Steen SchüttSteen Schütt

1,3261 gold badge17 silver badges31 bronze badges

Install nmap (( # yum/apt-get install nmap ))tool and check to find out which port the zabbix is listenning to?(( # nmap -sT -p1-65535 localhost )) 10050 or 10051?
The result should be somthing like this:

Starting Nmap 6.40 ( http://nmap.org ) at 2016-11-01 22:54 IRST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00032s latency).
Other addresses for localhost (not scanned): 127.0.0.1
Not shown: 65530 closed ports
PORT      STATE SERVICE
22/tcp    open  ssh
25/tcp    open  smtp
80/tcp    open  http
3306/tcp  open  mysql
10050/tcp open  unknown    <--- In my case this is it

Then open /etc/zabbix/web/zabbix.conf.php and check the line starting with: $ZBX_SERVER_PORT , it’s value should be the same number you saw in the nmap scan result. Change it and restart zabbix-server and httpd and you are good to go!

answered Nov 1, 2016 at 19:00

Farhad K's user avatar

There maybe IP address conflict, try host ‘Zabbix server’

answered Dec 15, 2016 at 18:36

user7303552's user avatar

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.

answered Nov 27, 2017 at 10:24

joeyski's user avatar

I was in the same trouble.
For my case, that was a conflict between /etc/zabbix/zabbix_agentd.conf and zabbix_server.conf parameters.
I adjusted

"DBHost=localhost", 
"DBName=zabbix",
"DBUser=zabbix",
"DBPassword=******", 
"DebugLevel=3"
"ListenPort".

If you run the default installation, you should keep ListenPort=10051 for the server and 10050 for the agent.

Cheers!

Javeed Shakeel's user avatar

answered Feb 23, 2017 at 18:31

jefferson.macedo's user avatar

In my case it happens when introducing host with templates, graphs,trigger etc, the server falls.
The problem was that by default the cache is at 128k and you have to change it.

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

Uncheck # Sizecache and add 32M for example.

Cachesize=32M

restart service and voila!! server working

service zabbix-server start

answered Mar 10, 2018 at 12:09

Juan Luis Clemente's user avatar

My problem was caused by having external ip in $ZBX_SERVER setting.

I changed it to localhost instead so that ip was resolved internally,

$sudo nano /etc/zabbix/web/zabbix.conf.php

Changed

$ZBX_SERVER = ‘external ip was written here’;

to

$ZBX_SERVER = ‘localhost’;

then

$sudo service zabbix-server restart

Zabbix 3.4 on Ubuntu 14.04.3 LTS

answered Apr 26, 2018 at 13:08

Sean Bradley's user avatar

Sean BradleySean Bradley

3,1741 gold badge17 silver badges10 bronze badges

I had the same issue.

I forgotten selinux conf, not all is ok:

setsebool -P httpd_can_connect_zabbix on

answered Jun 30, 2018 at 10:25

Luc-Olivier's user avatar

Luc-OlivierLuc-Olivier

3,6862 gold badges29 silver badges28 bronze badges

In my case, this occurred because the password in the server config file was commented out.

Open the server config file: # sudo vim /etc/zabbix/zabbix-server.conf

Scroll down to db user and below there will be the password with a # commenting out. Remove the hash and insert your DB password.

answered Aug 3, 2018 at 4:51

Matthew Walker's user avatar

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

answered Nov 21, 2018 at 22:50

Oscar N's user avatar

Oscar NOscar N

1391 silver badge5 bronze badges

#getsebool -a
//httpd_can_network_connect off
#setsebool httpd_can_network_connect on
#getsebool httpd_can_network_connect
#service zabbix-server restart

Bhargav Rao's user avatar

Bhargav Rao

49.5k28 gold badges121 silver badges140 bronze badges

answered Mar 6, 2019 at 21:26

user11162234's user avatar

2

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

answered Jul 3, 2019 at 15:43

user 1007017's user avatar

I solved this problem on Ubuntu 18.04 by uninstalling Zabbix and reinstalling it again from scratch.

The initial installation didn’t work because I had followed old posts/guides/tutorials, even from Zabbix documentation itself, so these might probably be outdated. So, the trick was to find and follow the most updated guide to Zabbix installation from its docs.

Here are the two links I followed for uninstalling and reinstalling Zabbix:

  • How to uninstall Zabbix: https://www.quora.com/How-do-I-uninstall-Zabbix-server-agent-in-Ubuntu
  • How to (properly) install Zabbix: https://www.zabbix.com/download?zabbix=4.0&os_distribution=ubuntu&os_version=18.04_bionic&db=postgresql

When installing Zabbix from the link above, your choosen Zabbix Version, OS Distribution, OS Version or Database may be different from the ones I’ve selected, but following the instructions on this page will probably be also the right way for you to install your chosen Zabbix configuration without getting errors post installation.

answered Jul 18, 2019 at 11:22

Ulysses Alves's user avatar

Ulysses AlvesUlysses Alves

2,2693 gold badges23 silver badges34 bronze badges

Never had the problem until it suddenly appeared once, for me, the solution was to add (uncomment) the following line in /etc/zabbix/zabbix_server.conf

 ListenIP=0.0.0.0

Artemis's user avatar

Artemis

2,5387 gold badges21 silver badges36 bronze badges

answered May 30, 2018 at 14:16

Malditazo's user avatar

i had similar problem and my gui reported problem with cache, i change it zabbix-server.conf to 32M and now is ok, zabbix is an intelligent tool, please if it possible check problems in gui first. I had to much hosts … for default cache.

answered Jan 17, 2019 at 9:35

peceq's user avatar

peceqpeceq

133 bronze badges

Если вы установили серверную часть системы мониторинга Zabbix на системах RHEL (Oracle Linux, RedHat, CentOS) и вроде бы всё правильно, но в веб-интерфейсе вылазит ошибка
Zabbix server is not running: the information displayed may not be current

то, здесь обычно 2 варианта:

  • самый простой — не запущен или не корректно сконфигурирован демон zabbix-server. Проверьте, совпадают ли номера портов в конфигах zabbix-server (/etc/zabbix/zabbix_server.conf) и zabbix-web (/etc/zabbix/web/zabbix.conf.php), а так же правильно ли настроено подключение к БД.
  • если всё в конфигурационных файлах правильно и демон запущен, это скорее всего значит, что вам надо или отключить систему защиты SeLinux совсем или — что будет корректнее — изменить политику доступа к портам системы для демона httpd.

1. Проверим, что проблема действительно в настройках SeLinux:

tail -f /var/log/audit/audit.log |grep -i avc

Должны периодически добавляться в лог строки вроде этой:

type=AVC msg=audit(1395664684.460:297): avc:  denied  { name_connect } for  pid=3078 comm=»httpd» dest=10051 scontext=unconfined_u:system_r:httpd_t:s0 tcontext=system_u:object_r:zabbix_port_t:s0 tclass=tcp_socket

а команда:

getsebool -a | grep zabbix

должна в таком случае дать результат:

zabbix_can_network —> off

Изменим политику для httpd:

setsebool -P httpd_can_network_connect on

Проверяем:

getsebool httpd_can_network_connect

Результат должен быть следующий:

httpd_can_network_connect —> on

Теперь веб-интерфейс Zabbix должен нормально подключаться к серверу через порт 10051 (по-умолчанию) и ошибка исчезнет.

Если Вы обнаружили, что  сервер перестал отправлять уведомления, в веб-интерфейсе есть оповещение Zabbix server is not running: the information displayed may not be current, состояние Zabbix server is running  No localhost:10051 или  zabbix-server не запускается и не все данные отображаются корректно, то у вас подобный случай:

1. Если в логе /var/log/zabbix/zabbix_server.log не отображается ошибка или очень мало данных для диагностики, то нужно обязательно изменить параметр DebugLevel=5 в /etc/zabbix/zabbix-server.conf и запускаем zabbix_server: service zabbix-server start

2. В моем случае  была ошибка :

zbx_mem_realloc(): out of memory (requested 4168 bytes)

zbx_mem_realloc(): please increase CacheSize configuration parameter

Необходимо увеличить значения в /etc/zabbix/zabbix-server.conf, которые по умолчанию очень низкие, а с учетом того, что количество устройств растет в вашей системе, то значения необходимо увеличить, например:

CacheSize=512M
HistoryCacheSize=256M
TrendCacheSize=128M
HistoryTextCacheSize=256M
ValueCacheSize=128M

3. Далее перегружаемся и все работает.

PS.
Источник и другие рекомендации
Похожие симптомы, может кому-то пригодится

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.

asked Jul 19, 2015 at 13:59

Eddy's user avatar

EddyEddy

3,42313 gold badges57 silver badges86 bronze badges

just get into the zabbix.conf.php

   >$sudo vim /etc/zabbix/web/zabbix.conf.php
   >$ZBX_SERVER      = '**your zabbix ip address or DNS name**';
   >$ZBX_SERVER_PORT = '10051';
   >$ZBX_SERVER_NAME = '**your zabbix hostname**';

just change the ip address you can resolve the error

Zabbix server is not running: the information displayed may not be current

After that restart the zabbix server

 >$sudo service zabbix-server restart

To verify go to Dashboard Administration -> queue there you see data

i resolved my error like this works fine for me.

Community's user avatar

answered Oct 25, 2017 at 9:10

Javeed Shakeel's user avatar

Javeed ShakeelJaveed Shakeel

2,8002 gold badges29 silver badges40 bronze badges

To solve the problem zabbix server is not running you have to :

First — Check that all of the database parameters in zabbix.conf.php ( /etc/zabbix/web/zabbix.conf.php) and zabbix_server.conf ( /etc/zabbix/zabbix_server.conf) to be the same. Including:
• DBHost
• DBName
• DBUser
• DBPassword

Second- Change SElinux parameters:

#setsebool -P httpd_can_network_connect on
#setsebool -P httpd_can_connect_zabbix 1
#setsebool -P zabbix_can_network 1

After all, restart all services:

#service zabbix-server restart
#service httpd restart

worth a try.

mwfearnley's user avatar

mwfearnley

3,1172 gold badges31 silver badges35 bronze badges

answered Sep 7, 2016 at 10:43

farnaz's user avatar

0

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

answered Dec 10, 2015 at 17:40

Ikbel's user avatar

IkbelIkbel

7,6113 gold badges34 silver badges45 bronze badges

This may happen because of the old and new IP address
I have faced same issue which was solve by below method:

vim /etc/zabbix/web/zabbix.conf.php

$ZBX_SERVER = new ip address

then restart zabbix server

Alexandru Marculescu's user avatar

answered Oct 29, 2016 at 15:13

Manu Narayan Shrestha's user avatar

I was using a special character in my DB password — wrapping the DBPassword option in /etc/zabbix/zabbix_server.conf and doing sudo service zabbix-server restart got me back up and running.

Not Working
DBPassword=MyString?

Working
DBPassword='MyString?'

answered Sep 7, 2017 at 14:03

m.Riston's user avatar

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.

Community's user avatar

answered Jul 6, 2019 at 11:09

DRE's user avatar

As Zabbix Senior Instructor and Consultant Hernandes Martins says in his «Zabbix server is not running what to do?» blog post:

This is the first step that should be checked regardless of the situation, always view the logs, from the moment the error message appeared in the zabbix web interface always view the log.

By following his advice I could be able to identify the cause of the issue with my Zabbix server, and then apply the solution related to the specific problem.

In my case, as I’ve commented in the page:

The problem in my server was of «4. Resource Allocation Issues». Just like you wrote above, Zabbix was showing out of memory errors on the log when trying to start the server.

After increasing the value of parameter CacheSize I tried to restart the service, but it didn’t respond. So, I ended up restarting the whole machine. Fortunately, in the end it resolved the problem for good.

So, take a look at the log with command tail -f /var/log/zabbix/zabbix_server.log on the terminal/prompt, watch for any errors, and tackle the problem according to what it makes sense for your particular case.

answered Oct 29, 2019 at 13:17

Ulysses Alves's user avatar

Ulysses AlvesUlysses Alves

2,2293 gold badges21 silver badges33 bronze badges

Looks like the problem was that I created a Database monitoring Item programmatically and it triggered a bug that caused the server to shutdown.

Once I deleted the item the server came back up, and creating subsequent Items didn’t kill it.

The deadly Item had a value_type of Numeric unsigned, -1 programmatically, while the newly created Items have a value_type of float, which is 0 programmatically.

The whole thing has a voodoo element to it but it did solve my problem.

answered Jul 20, 2015 at 4:35

Eddy's user avatar

EddyEddy

3,42313 gold badges57 silver badges86 bronze badges

Maybe is configuration issue

nano /etc/zabbix/zabbix_server.conf

DBHost=localhost

DBName=zabbix_db

DBUser=zabbix_user

DBPassword=XXXXXXX

works for me on Zabbix 3.0 Centos 7

answered Aug 25, 2016 at 18:16

Violeta Sosa's user avatar

The zabbix-server daemon doesn’t seem to like passwords with special characters in them. Unsure whether quotes would work in the configuration I just removed special characters from the database password, updated the configuration files and restarted the daemon.

Configuration parsing errors don’t show up in logs for some reason.

answered Sep 27, 2016 at 23:00

Steen Schütt's user avatar

Steen SchüttSteen Schütt

1,2961 gold badge18 silver badges30 bronze badges

Install nmap (( # yum/apt-get install nmap ))tool and check to find out which port the zabbix is listenning to?(( # nmap -sT -p1-65535 localhost )) 10050 or 10051?
The result should be somthing like this:

Starting Nmap 6.40 ( http://nmap.org ) at 2016-11-01 22:54 IRST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00032s latency).
Other addresses for localhost (not scanned): 127.0.0.1
Not shown: 65530 closed ports
PORT      STATE SERVICE
22/tcp    open  ssh
25/tcp    open  smtp
80/tcp    open  http
3306/tcp  open  mysql
10050/tcp open  unknown    <--- In my case this is it

Then open /etc/zabbix/web/zabbix.conf.php and check the line starting with: $ZBX_SERVER_PORT , it’s value should be the same number you saw in the nmap scan result. Change it and restart zabbix-server and httpd and you are good to go!

answered Nov 1, 2016 at 19:00

Farhad K's user avatar

There maybe IP address conflict, try host ‘Zabbix server’

answered Dec 15, 2016 at 18:36

user7303552's user avatar

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.

answered Nov 27, 2017 at 10:24

joeyski's user avatar

I was in the same trouble.
For my case, that was a conflict between /etc/zabbix/zabbix_agentd.conf and zabbix_server.conf parameters.
I adjusted

"DBHost=localhost", 
"DBName=zabbix",
"DBUser=zabbix",
"DBPassword=******", 
"DebugLevel=3"
"ListenPort".

If you run the default installation, you should keep ListenPort=10051 for the server and 10050 for the agent.

Cheers!

Javeed Shakeel's user avatar

answered Feb 23, 2017 at 18:31

jefferson.macedo's user avatar

In my case it happens when introducing host with templates, graphs,trigger etc, the server falls.
The problem was that by default the cache is at 128k and you have to change it.

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

Uncheck # Sizecache and add 32M for example.

Cachesize=32M

restart service and voila!! server working

service zabbix-server start

answered Mar 10, 2018 at 12:09

Juan Luis Clemente's user avatar

My problem was caused by having external ip in $ZBX_SERVER setting.

I changed it to localhost instead so that ip was resolved internally,

$sudo nano /etc/zabbix/web/zabbix.conf.php

Changed

$ZBX_SERVER = ‘external ip was written here’;

to

$ZBX_SERVER = ‘localhost’;

then

$sudo service zabbix-server restart

Zabbix 3.4 on Ubuntu 14.04.3 LTS

answered Apr 26, 2018 at 13:08

Sean Bradley's user avatar

Sean BradleySean Bradley

3,0841 gold badge15 silver badges10 bronze badges

I had the same issue.

I forgotten selinux conf, not all is ok:

setsebool -P httpd_can_connect_zabbix on

answered Jun 30, 2018 at 10:25

Luc-Olivier's user avatar

Luc-OlivierLuc-Olivier

3,5462 gold badges26 silver badges27 bronze badges

In my case, this occurred because the password in the server config file was commented out.

Open the server config file: # sudo vim /etc/zabbix/zabbix-server.conf

Scroll down to db user and below there will be the password with a # commenting out. Remove the hash and insert your DB password.

answered Aug 3, 2018 at 4:51

Matthew Walker's user avatar

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

answered Nov 21, 2018 at 22:50

Oscar N's user avatar

Oscar NOscar N

1391 silver badge5 bronze badges

#getsebool -a
//httpd_can_network_connect off
#setsebool httpd_can_network_connect on
#getsebool httpd_can_network_connect
#service zabbix-server restart

Bhargav Rao's user avatar

Bhargav Rao

48.6k28 gold badges124 silver badges139 bronze badges

answered Mar 6, 2019 at 21:26

user11162234's user avatar

2

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

answered Jul 3, 2019 at 15:43

user 1007017's user avatar

I solved this problem on Ubuntu 18.04 by uninstalling Zabbix and reinstalling it again from scratch.

The initial installation didn’t work because I had followed old posts/guides/tutorials, even from Zabbix documentation itself, so these might probably be outdated. So, the trick was to find and follow the most updated guide to Zabbix installation from its docs.

Here are the two links I followed for uninstalling and reinstalling Zabbix:

  • How to uninstall Zabbix: https://www.quora.com/How-do-I-uninstall-Zabbix-server-agent-in-Ubuntu
  • How to (properly) install Zabbix: https://www.zabbix.com/download?zabbix=4.0&os_distribution=ubuntu&os_version=18.04_bionic&db=postgresql

When installing Zabbix from the link above, your choosen Zabbix Version, OS Distribution, OS Version or Database may be different from the ones I’ve selected, but following the instructions on this page will probably be also the right way for you to install your chosen Zabbix configuration without getting errors post installation.

answered Jul 18, 2019 at 11:22

Ulysses Alves's user avatar

Ulysses AlvesUlysses Alves

2,2293 gold badges21 silver badges33 bronze badges

Never had the problem until it suddenly appeared once, for me, the solution was to add (uncomment) the following line in /etc/zabbix/zabbix_server.conf

 ListenIP=0.0.0.0

Artemis's user avatar

Artemis

2,5087 gold badges20 silver badges36 bronze badges

answered May 30, 2018 at 14:16

Malditazo's user avatar

i had similar problem and my gui reported problem with cache, i change it zabbix-server.conf to 32M and now is ok, zabbix is an intelligent tool, please if it possible check problems in gui first. I had to much hosts … for default cache.

answered Jan 17, 2019 at 9:35

peceq's user avatar

Oops!! Facing the “Zabbix server is not running” error? We can help you with it.

This error occurs due to various reasons like incorrect information in the Zabbix configuration file, resource allocation problems, etc.

At Bobcares, we get requests from our customers about Zabbix error, as a part of our Server Management Services.

Today, we’ll see how our Support Engineers fix this Zabbix server is not running error.

What are the causes for the Zabbix server is not running error?

Zabbix server is not running error occur due to various reasons. Some of them are:

  •  Incorrect data in the zabbix_server.conf configuration file.
  •  Problems in database creation and permissions.
  •  Problems with the firewall.
  •  Lack of sufficient resources to start the zabbix_server daemon.

Our Support Engineers traverse through all the possible scenarios in order to find a perfect fix.

Let’s see, how we find fix for each of these causes.

1. Incorrect Zabbix configuration results in the Zabbix server is not running error

Usually, incorrect data in the Zabbix configuration file and database results in the Zabbix server is not running error.

To clarify, if there is any difference in database parameters in /etc/zabbix/web/zabbix.conf.php and /etc/zabbix/zabbix_server.conf or change in any of the values in configuration result in this error.

Our  Engineers check for the precision of database parameters in /etc/zabbix/web/zabbix.conf.php and /etc/zabbix/zabbix_server.conf.

If there is any difference, we will correct that and fix the error.

Recently, one of our customers approached us with the same error. We found that in the configuration file, the Zabbix server IP was different, so we corrected that.

We corrected the IP in zabbix.conf.php. The location of the file is at /etc/zabbix/web

cd /etc/zabbix/web

Zabbix server is not running

vi zabbix.conf.php
ZBX_SERVER = '**your zabbix ip address or name**';
ZBX_SERVER_PORT = '10051';
ZBX_SERVER_NAME = '**your zabbix hostname**'; 

After that, we restarted the service.

service zabbix-server restart

Our Support Engineers fixed the error by correcting the IP in the configuration file.

2. Zabbix server error due to problems with the firewall.

This error can also occur because of firewall blockages. So, we need to check whether or not there are firewall rules preventing the use of the service.

As a root user, we check and confirm whether the firewall is allowing connection to Zabbix Server port which is 10051. If not, then we add the following rule in the configuration file /etc/sysconfig/iptables.  Finally, restart the service in order to fix the error.

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

Hence, this fixes the Zabbix server is not running error.

3. Lack of sufficient resource

In order to start the zabbix_server daemon, it requires sufficient resources. So, we need to adjust the parameter “Cachesize” and increase in a way that the Zabbix Server application can make the most of the memory resource.

Our Support Engineers check for problems with the “CacheSize” parameter of the configuration file zabbix_server.conf. And then we increase the Cachesize value accordingly in order to fix the Zabbix server is not running error.

vi /etc/zabbix/zabbix-server.conf
Cachesize= [Increased value]

[Having trouble in fixing Zabbix errors? – Our Experts are available 24/7.]

Conclusion

In short, an error in any configuration file or database, problems with firewalls and, lack of sufficient resource, etc. results in the Zabbix server is not running error. Today, we discussed the possible reasons for this error. Also, we saw how our Support Engineers fixed this error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = «owonCMyG5nEQ0aD71QM»;

Если Вы обнаружили, что  сервер перестал отправлять уведомления, в веб-интерфейсе есть оповещение Zabbix server is not running: the information displayed may not be current, состояние Zabbix server is running  No localhost:10051 или  zabbix-server не запускается и не все данные отображаются корректно, то у вас подобный случай:

1. Если в логе /var/log/zabbix/zabbix_server.log не отображается ошибка или очень мало данных для диагностики, то нужно обязательно изменить параметр DebugLevel=5 в /etc/zabbix/zabbix-server.conf и запускаем zabbix_server: service zabbix-server start

2. В моем случае  была ошибка :

zbx_mem_realloc(): out of memory (requested 4168 bytes)

zbx_mem_realloc(): please increase CacheSize configuration parameter

Необходимо увеличить значения в /etc/zabbix/zabbix-server.conf, которые по умолчанию очень низкие, а с учетом того, что количество устройств растет в вашей системе, то значения необходимо увеличить, например:

CacheSize=512M
HistoryCacheSize=256M
TrendCacheSize=128M
HistoryTextCacheSize=256M
ValueCacheSize=128M

3. Далее перегружаемся и все работает.

PS.
Источник и другие рекомендации
Похожие симптомы, может кому-то пригодится

Если вы установили серверную часть системы мониторинга Zabbix на системах RHEL (Oracle Linux, RedHat, CentOS) и вроде бы всё правильно, но в веб-интерфейсе вылазит ошибка
Zabbix server is not running: the information displayed may not be current

то, здесь обычно 2 варианта:

  • самый простой — не запущен или не корректно сконфигурирован демон zabbix-server. Проверьте, совпадают ли номера портов в конфигах zabbix-server (/etc/zabbix/zabbix_server.conf) и zabbix-web (/etc/zabbix/web/zabbix.conf.php), а так же правильно ли настроено подключение к БД.
  • если всё в конфигурационных файлах правильно и демон запущен, это скорее всего значит, что вам надо или отключить систему защиты SeLinux совсем или — что будет корректнее — изменить политику доступа к портам системы для демона httpd.

1. Проверим, что проблема действительно в настройках SeLinux:

tail -f /var/log/audit/audit.log |grep -i avc

Должны периодически добавляться в лог строки вроде этой:

type=AVC msg=audit(1395664684.460:297): avc:  denied  { name_connect } for  pid=3078 comm=»httpd» dest=10051 scontext=unconfined_u:system_r:httpd_t:s0 tcontext=system_u:object_r:zabbix_port_t:s0 tclass=tcp_socket

а команда:

getsebool -a | grep zabbix

должна в таком случае дать результат:

zabbix_can_network —> off

Изменим политику для httpd:

setsebool -P httpd_can_network_connect on

Проверяем:

getsebool httpd_can_network_connect

Результат должен быть следующий:

httpd_can_network_connect —> on

Теперь веб-интерфейс Zabbix должен нормально подключаться к серверу через порт 10051 (по-умолчанию) и ошибка исчезнет.

June 1 2022, 11:15

Category:

  • IT
  • Cancel

Untitled-32

При плановом обновлении Zabbix 6 наступил на глабли с «Zabbix сервер не запущен: отображаемая информация может быть не актуальной».

Моментами systemctl status zab* выдаёт что всё «Active». Но если спросить systemctl status zabbix-server через минуту, то всё уже не так радужно:

● zabbix-server.service — Zabbix Server
Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code)

Логи zabbix-server.service смотрятся вот так:

tail -n 1000 /var/log/zabbix/zabbix_server.log

А там уже есть информация для поиска

cannot start HA manager: timeout while waiting for HA manager registration

Оказывается что виноват в ошибке SELinux обновившийся вместе с системой. Пишем в консоли такое:

setsebool -P zabbix_can_network on
и при желании
setsebool -P daemons_enable_cluster_mode on

После этого Zabbix стартует и графики на экране начинают весёленько перемигиваться.

Author Robert Paulson

Checking the agent is a good suggestion, after doing that I found that my zabbix server doesn’t have a zabbix agent, and doesn’t monitor itself. The zabbix server host is set as disabled and doesn’t seem to have the zabbix-agent installed. I think this is fine. 

root@zabbix:/# systemctl | grep zabbix
  zabbix-server.service                                                                           loaded active running Zabbix Server  

However I was able to resolve this, I think the solution was kind of weird though. 

I watched the web console closely and was able to see an error in the «Status of Zabbix» box that said:

Connection to Zabbix server «localhost» failed. Possible reasons:
1. Incorrect server IP/DNS in the «zabbix.conf.php»;
2. Incorrect DNS server configuration.
php_network_getaddresses: getaddrinfo failed: Name or service not known

I think it’s very strange this error doesn’t appear in zabbix_server.log, I pretty much just got lucky by seeing it. But after seeing it, I looked at zabbix.conf.php and saw $DB[‘SERVER’] = ‘localhost’. «So my zabbix server can’t connect to locahost?» was my thought. So I checked /etc/hosts and… localhost was missing. So I added 127.0.0.1     localhost and the error has stopped appearing on the zabbix console. I think the strangest part is that the error was only intermittent and didn’t have any actual effect on the servers function. If it can’t connect to the database I’d think it would stop working completely. Thanks for your suggestions. 


1 found this helpful
thumb_up
thumb_down

June 1 2022, 11:15

Category:

  • IT
  • Cancel

Untitled-32

При плановом обновлении Zabbix 6 наступил на глабли с «Zabbix сервер не запущен: отображаемая информация может быть не актуальной».

Моментами systemctl status zab* выдаёт что всё «Active». Но если спросить systemctl status zabbix-server через минуту, то всё уже не так радужно:

● zabbix-server.service — Zabbix Server
Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code)

Логи zabbix-server.service смотрятся вот так:

tail -n 1000 /var/log/zabbix/zabbix_server.log

А там уже есть информация для поиска

cannot start HA manager: timeout while waiting for HA manager registration

Оказывается что виноват в ошибке SELinux обновившийся вместе с системой. Пишем в консоли такое:

setsebool -P zabbix_can_network on
и при желании
setsebool -P daemons_enable_cluster_mode on

После этого Zabbix стартует и графики на экране начинают весёленько перемигиваться.

Понравилась статья? Поделить с друзьями:

Не пропустите эти материалы по теме:

  • Яндекс еда ошибка привязки карты
  • Ошибка z3 на терминале оплаты что делать
  • Ошибка z3 на терминале оплаты pax
  • Ошибка youtube sony bravia
  • Ошибка youtube an error occurred

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии