日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

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

發布時間:2025/3/21 编程问答 39 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Zabbix server is not running: the information displayed may not be current. 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

如圖:

查看zabbix_server的進程:

[root@localhost ~]# ps aux | grep zabbix zabbix 7907 0.0 0.3 261556 3728 ? S 13:10 0:00 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf root 8006 0.0 0.0 112720 980 pts/1 R+ 13:15 0:00 grep --color=auto zabbix

查看zabbix_server的端口(默認10051):

[root@localhost ~]# netstat -lntp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 669/rpcbind tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 1391/dnsmasq tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1113/sshd tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1111/cupsd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1372/master tcp6 0 0 :::3306 :::* LISTEN 2240/mysqld tcp6 0 0 :::111 :::* LISTEN 669/rpcbind tcp6 0 0 :::80 :::* LISTEN 2014/httpd tcp6 0 0 :::22 :::* LISTEN 1113/sshd tcp6 0 0 ::1:631 :::* LISTEN 1111/cupsd tcp6 0 0 ::1:25 :::* LISTEN 1372/master

發現沒有10051端口,說明沒有開啟zabbix_server進程,接著編輯zabbix_server.conf:

vi /etc/zabbix/zabbix_server.conf  # 找到DBHost并把localhost改為127.0.0.1 ... ### Option: DBHost # Database host name. # If set to localhost, socket is used for MySQL. # If set to empty string, socket is used for PostgreSQL. # # Mandatory: no # Default: DBHost=127.0.0.1 ...

重啟zabbix-server服務:

[root@localhost ~]# systemctl restart zabbix-server.service

再次查看進程,發現多了好多zabbix相關的進程:

[root@localhost ~]# ps aux | grep zabbix zabbix 8246 0.0 0.4 261660 4236 ? S 13:25 0:00 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf zabbix 8248 0.0 0.2 261660 2528 ? S 13:25 0:00 /usr/sbin/zabbix_server: configuration syncer [waiting 60 sec for processes] zabbix 8249 0.0 0.2 261660 2528 ? S 13:25 0:00 /usr/sbin/zabbix_server: alerter #1 started zabbix 8250 0.0 0.2 261660 2528 ? S 13:25 0:00 /usr/sbin/zabbix_server: alerter #2 started zabbix 8251 0.0 0.2 261660 2528 ? S 13:25 0:00 /usr/sbin/zabbix_server: alerter #3 started zabbix 8252 0.0 0.2 261660 2528 ? S 13:25 0:00 /usr/sbin/zabbix_server: housekeeper [startup idle for 30 minutes] zabbix 8253 0.0 0.3 261808 3252 ? S 13:25 0:00 /usr/sbin/zabbix_server: timer #1 [processed 1 triggers, 0 events in 0.001601 sec, 0 maintenances in 0.000894 sec, idle 30 sec] ...

再次查看端口,發現10051端口已開啟:

[root@localhost ~]# netstat -lntp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:10051 0.0.0.0:* LISTEN 8246/zabbix_server tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 669/rpcbind tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 1391/dnsmasq tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1113/sshd tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1111/cupsd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1372/master tcp6 0 0 :::10051 :::* LISTEN 8246/zabbix_server tcp6 0 0 :::3306 :::* LISTEN 2240/mysqld tcp6 0 0 :::111 :::* LISTEN 669/rpcbind tcp6 0 0 :::80 :::* LISTEN 2014/httpd tcp6 0 0 :::22 :::* LISTEN 1113/sshd tcp6 0 0 ::1:631 :::* LISTEN 1111/cupsd tcp6 0 0 ::1:25 :::* LISTEN 1372/master

查看zabbix的web界面,錯誤提示消失了:

轉載于:https://www.cnblogs.com/freess/p/9150137.html

總結

以上是生活随笔為你收集整理的Zabbix server is not running: the information displayed may not be current.的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。