zabbix安装后提示:Zabbix server is not running
时间:2022-10-16 23:06 作者:Anglei 分类: Linux
安装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=
做完以上操作后发现zabbix正常运行了(窃喜中。。。)
配置好zabbix监控项后突然发现有报警(瞬间心情。。。)
Lack of free swap space on Zabbix server
仔细一看发现是zabbix缺少交换空间
1.查看内存
[root@huyichi ~]# free -m
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
推荐阅读:
![]() 路过(0) |
![]() 雷人(0) |
![]() 握手(0) |
![]() 鲜花(0) |
![]() 鸡蛋(0) |