0
点赞
收藏
分享

微信扫一扫

Zabbix 4.0 监控主机


Zabbix 4.0 监控主机

  • ​​1. 安装代理​​
  • ​​2. 配置监控主机​​
  • ​​3. 添加仪表盘​​
  • ​​4. 常见错误​​

​注意: 要打开10050端口​​CentOS 7打开指定端口

1. 安装代理

# 下载
rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/6/x86_64/zabbix-release-4.0-2.el6.noarch.rpm
yum clean all
# 安装
yum install zabbix-agent
# 启动服务
service zabbix-agent restart
# 开启服务
chkconfig --level 35 zabbix-agent on

编辑配置文件: ​​/etc/zabbix/zabbix_agentd.conf​​​ Server/ServerActive 设置的是服务端的IP
Hostname 也是和服务端的名称一样
ListenPort 默认端口是10050

Zabbix 4.0 监控主机_zabbix

2. 配置监控主机

Zabbix 4.0 监控主机_监控_02
Zabbix 4.0 监控主机_zabbix_03
Zabbix 4.0 监控主机_监控_04
Zabbix 4.0 监控主机_主机监控_05

3. 添加仪表盘

Zabbix 4.0 监控主机_运维_06
Zabbix 4.0 监控主机_运维_07
Zabbix 4.0 监控主机_centos_08
Zabbix 4.0 监控主机_运维_09
常用的监控项:
CPU load
Memory usage
MySQL bandwidth
MySQL operations
Network traffic on eth0
HTTPS service is running
Free disk space on / (percentage)

Zabbix 4.0 监控主机_主机监控_10

4. 常见错误

如果端口已经开启,代理也已经运行(注意配置文件已经修改好)
出现如下错误

17893:20210813:112716.329 failed to accept an incoming connection: connection from "xxx.xxx.xxx.xxx" rejected, allowed hosts: "127.0.0.1"

解决方案

# 查看配置
grep -Ev '^#|^$' /etc/zabbix/zabbix_agentd.conf

# 重新启动服务
service zabbix-agent restart

Zabbix 4.0 监控主机_监控_11


举报

相关推荐

0 条评论