zabbix服务器监控
概念:
- 主机(host): 指被监控的一个设备(服务器,交换机等)
- 主机群组(hostgroup): 指被监控的一组主机(主要应用在有特别多主机的情况,方便分组区分)
1、将zabbix server添加到zabbix web监控平台
[root@140 ~]# hostname server
[root@140 ~]# su -
上一次登录:六 9月 3 17:32:07 +03 2022pts/0 上
[root@server ~]# cd /etc/zabbix
[root@server zabbix]# vim zabbix_agentd.conf
Server=127.0.0.1
ServerActive=127.0.0.1
Hostname=server
[root@server zabbix]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.253.140 server
192.168.253.139 agent
[root@server zabbix]# systemctl restart zabbix-agent.service
[root@server zabbix]# systemctl enable zabbix-agent