自动化运维之Zabbix

安装过程:
https://blog.csdn.net/liumangxiaosi/article/details/80332322
客户端配置
https://blog.csdn.net/lovektm/article/details/79234233
问题解决
Zabbix agent on Zabbix server is unreachable for 5 minutes
1.在安装完zabbix之后,添加客户端

yum install zabbix-agent -y
systemctl start zabbix-agent

客户端配置(zabbix_agentd.conf)如下


PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
Server=192.168.1.37
ServerActive=192.168.1.37
Hostname=Zabbix.server
HostMetadataItem=system.uname
Include=/etc/zabbix/zabbix_agentd.d/*.conf

解决办法:
在/etc/hosts当中添加一条记录
192.168.1.37 zabbix.server
保存后问题解决了
问题2
It probably means that the systems requires more physical memory. Lack of free swap space on node1
解决:

创建swap文件


[root@chlook ~]# dd if=/dev/zero of=/home/swap bs=1024 count=512000

512000+0 records in

512000+0 records out

524288000 bytes (524 MB) copied, 10.8309 s, 48.4 MB/s

.创建swap分区

[root@chlook ~]# mkswap /home/swap

Setting up swapspace version 1, size = 511996 KiB

no label, UUID=6ff030ce-898d-4245-b6d5-ee1580c26929

[root@chlook fonts]# /sbin/swapon /home/swap

swapon: /home/swap: insecure permissions 0644, 0600 suggested.

.挂载


[root@chlook ~]# vi /etc/fstab


UUID=6634633e-001d-43ba-8fab-202f1df93339 / ext4 defaults,barrier=0 1 1

UUID=6ff030ce-898d-4245-b6d5-ee1580c26929       swap    swap    defaults        0 0

在这里插入图片描述
问题3
Zabbix discoverer processes more than 75% busy
解决
修改zabbix_server.conf中discovery进程数量;

#StartDiscoverers可根据设置的discovery任务数量设置,范围是0~250

[root@localhost ~]# sed -i 's|# StartDiscoverers=1|StartDiscoverers=2|g' /usr/local/zabbix/etc/zabbix_server.conf
[root@localhost ~]# service zabbix_server restart
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值