Zabbix监控Linux主机

1、监控Linux主机1.1、在需要被监控的Linux服务器上安装zabbix-agent以及配置

zabbix服务我在ubuntu20.04的版本apt安装zabbix5.0LTS这篇文章中实现了,这里我就基于上篇文章来监控另一个Linux主机。

root@Linux:~# wget https://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1%2Bfocal_all.debroot@Linux:~# dpkg -i zabbix-release_5.0-1+focal_all.debroot@Linux:~# sed -i.bak ‘s#http://repo.zabbix.com#https://mirrors.aliyun.com/zabbix#’ /etc/apt/sources.list.d/zabbix.listroot@Linux:~# apt update;apt -y install zabbix-agentroot@Linux:~# vim /etc/zabbix/zabbix_agentd.confroot@Linux:~# grep ‘^[a-Z]’ /etc/zabbix/zabbix_agentd.confPidFile=/run/zabbix/zabbix_agentd.pidLogFile=/var/log/zabbix/zabbix_agentd.logLogFileSize=0Server=10.0.0.100ListenPort=10050ListenIP=0.0.0.0StartAgents=3ServerActive=127.0.0.1Hostname=10.0.0.102Include=/etc/zabbix/zabbix_agentd.d/*.confroot@Linux:~# systemctl restart zabbix-agentroot@Linux:~# systemctl status zabbix-agent

1.2、在zabbix的web界面添加Linux主机

1.3、查看监控的Linux效果图

看了哪些风景,遇到哪些人。尽管同学说,去旅行不在于记忆,

Zabbix监控Linux主机

相关文章:

你感兴趣的文章:

标签云: