Zabbix server is not running: displayed information may be inactive

Thus, suddenly, after a week of use, I get an error on my zabbix server( http: // localhost / zabbix / .)

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

Any idea why this happens suddenly and suddenly? I restarted the computer - which should automatically recover zabbix serverat startup - but it still does not work.

I also have a zabbixcommand to start or restart, but true to form with zabbixuseful, clear documentation does not exist.

EDIT:

Some more information:

MySQLworks fine. I can select, insert intowhat I want.

As a result of /etc/init.d/zabbix-server status * zabbix_server is not running

Last entry in zabbix_server.log-Zabbix Server stopped. Zabbix 2.2.9 (revision 52686). Zabbix Server stopped. Zabbix 2.2.9 (revision 52686).

sudo/etc/init.d/zabbix-server start sudo/etc/init.d/zabbix-server start * Starting Zabbix server zabbix_server not running .

+10
23

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**';

IP-,

Zabbix :

zabbix

 >$sudo service zabbix-server restart

→ ,

, .

+10

, zabbix , :

-, , zabbix.conf.php(/etc/zabbix/web/zabbix.conf.php) zabbix_server.conf(/etc/zabbix/zabbix_server.conf) . :
• DBHost
• DBName
• DBUser
• DBPassword

Second- SElinux:

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

:

#service zabbix-server restart
#service httpd restart

.

+4

: sudo nano /etc/default/zabbix-server

START yes:

START=yes

Zabbix: sudo service zabbix-server start

+2

- IP- , :

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

$ZBX_SERVER = new ip address

zabbix

+2

- DBPassword /etc/zabbix/zabbix_server.conf sudo service zabbix-server restart .

DBPassword=MyString?

DBPassword='MyString?'

+2

, , Database monitoring Item , .

, , Items .

Item value_type Numeric unsigned, -1, Items value_type of float, 0.

voodoo, .

+1

,

nano /etc/zabbix/zabbix_server.conf

DBHost=localhost

DBName=zabbix_db

DBUser=zabbix_user

DBPassword=XXXXXXX

Zabbix 3.0 Centos 7

0

zabbix-server . , , , .

- .

0

nmap ((# yum/apt-get install nmap)) , zabbix? ((# nmap -sT -p1-65535 localhost) ) 10050 10051? :

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

/etc/zabbix/web/zabbix.conf.php , : $ZBX_SERVER_PORT, , nmap. zabbix-server httpd, !

0

, IP-, "Zabbix server"

0

. /etc/zabbix/zabbix _agentd.conf zabbix_server.conf.

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

, ListenPort = 10051 10050 .

!

0

RHEL/CentOS/OEL 6

  • , Zabbix, 10051, root:

    vi/etc/sysconfig/iptables

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

iptables

# service iptables restart

IPV6, hosts IPV6 "localhost"

# vi /etc/hosts

"#" ipv6 localhost

::1                   localhost6.localdomain6   localhost6

zabbix- , .

0

, , .. . , 128 , .

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

# Sizecache 32M, .

Cachesize=32M

!!

service zabbix-server start
0

ip $ ZBX_SERVER.

localhost, ip ,

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

$ ZBX_SERVER = ' ip';

$ ZBX_SERVER = 'localhost';

zabbix- $ sudo service

Zabbix 3.4 Ubuntu 14.04.3 LTS

0

, , () /etc/zabbix/zabbix_server.conf

 ListenIP=0.0.0.0
0

.

Selinux Conf, :

setsebool -P httpd_can_connect_zabbix on
0

, .

: # sudo vim/etc/zabbix/zabbix-server.conf

db #. .

0

Linux SE

[root@webserverlocaldomain /]# setenforce 0

[root@webserverlocaldomain /]# systemctl stop firewalld

, #

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

 ListenPort=10051
 DBHost=localhost
 DBPassword=password

[root@webserverlocaldomain /]# systemctl restart zabbix-server zabbix-agent httpd
0

, , zabbix-server.conf 32M, , zabbix - , , , . ... .

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

zabbix ( zabbix 4.0, 4.2 apt Raspbian GNU/Linux 9.4 stretch), /usr/local/etc/zabbix_server.conf /etc/zabbix/zabbix_server.conf

/usr/local/etc/zabbix_server.conf , /etc/zabbix/zabbix_server.conf

0

:

    sudo su 

    nano /etc/zabbix/zabbix-server.conf

"#" DBPassword = YourPassword ( )

Ctrl x (Y Enter )

    service zabbix-server restart

ZABBIX. , CacheSize = 32M

/etc/zabbix/web/zabbix.conf.php(localhost )

-, , "#" Linux.

0

Ubuntu 18.04, Zabbix .

, //, Zabbix, , , . , , Zabbix .

, Zabbix:

When installing Zabbix from the link above, the version of Zabbix you choose, the distribution of the OS, the version of the OS, or the database may differ from those that I chose, but following the instructions on this page, the Zabbix configuration will probably also be the correct installation method without receiving errors after installation.

0
source

Source: https://habr.com/ru/post/1598587/


All Articles