Zabbix monitoring linux system

Monitor Linux systems with Zabbix

Install zabbix agent on the Linux system that needs to be monitored, then add the host from the web interface, and then monitor

install zabbix-agent

  • Install Zabbix repository
yum install -y wget
wget https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm --no-check-certificate
rpm -Uvh zabbix-release-5.0-1.el7.noarch.rpm
yum clean all
yum install -y zabbix-agent
  • Configure Zabbix Agent
vim /etc/zabbix/zabbix_agentd.conf
PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0           #表示关闭日志收集大小功能
Server=192.168.100.209    # 对应的zabbix server地址,即需要接受谁的监控
ListenPort=10050        # agent接受指令监听的端口
ListenIP=0.0.0.0
StartAgents=3           # 默认的启动的实例数(进程数)
ServerActive=127.0.0.1
Hostname=192.168.100.25  # 区分大小写且在zabbix server看来是唯一的值 一般用IP来区分独一无二
Include=/etc/zabbix/zabbix_agentd.d/*.conf
  • Restart Zabbix Agent
systemctl restart zabbix-agent

Add zabbix monitoring

add host

Association template

Select a template that matches the current host monitoring project. For example, for linux system monitoring, you can associate the Template OS Linux template that comes with zabbix

After the update, you can see that the configuration host column has successfully added the agent-node side of the k8s-node01 side

Verify host data

After a period of data collection , verify whether the zabbix server has the monitoring data and graphics of the newly added host, and the graphics are displayed as follows:

Guess you like

Origin blog.csdn.net/asd54090/article/details/129041568