zabbix安裝後提示:Zabbix server is not running

安裝zabbix後,配置相關選項,報警提示如下結果:
server is not running:the information displayed may not be current
查看zabbix的相關配置後發現都沒有錯誤,仔細想一想看防火牆,SELinux和時間的問題。
1.檢查防火牆
[root@huyichi ~]# systemctl status firewalld
2.禁用SELinux
[root@huyichi ~]# setenforce 0
[root@huyichi ~]# sed -i 's/=enforcing/=disabled/' /etc/selinux/config
3.時間同步
[root@huyichi ~]# yum install -y ntpdate
[root@huyichi ~]# ntpdate ntp.gwadar.cn
4.再檢查zabbix的配置文件
[root@huyichi ~]# vim /etc/zabbix/zabbix_server.conf
查看數據庫的密碼是否 設置正確
DBPassword= linux

作完以上操做後發現zabbix正常運行了(竊喜中。。。)數據庫

配置好zabbix監控項後忽然發現有報警(瞬間心情。。。)
Lack of free swap space on Zabbix server
zabbix安裝後提示:Zabbix server is not running
仔細一看發現是zabbix缺乏交換空間
1.查看內存
[root@huyichi ~]# free -m
zabbix安裝後提示:Zabbix server is not running
2.建立交換文件分區
[root@huyichi ~]# mkdir /home/temp
[root@huyichi ~]# dd if=/dev/zero of=/home/temp/swap bs=1024 count=1024000
3.建立交換空間
[root@huyichi ~]# mkswap /home/temp/swap
4.啓動交換空間
[root@huyichi ~]# swapon /home/temp/swap
5.添加到開機自啓中
[root@huyichi ~]# vim /etc/fstab
/home/temp/swap swap swap defaults 0 0
6.查看
[root@huyichi ~]# free -m
zabbix安裝後提示:Zabbix server is not running
回顧zabbix報警平臺
zabbix安裝後提示:Zabbix server is not running
顯示狀態:已解決。
OK,問題圓滿解決。vim

相關文章
相關標籤/搜索