zabbix监控配置(添加主机、主机组和添加监控项等)

zabbix监控配置

1.添加主机组

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

2.添加主机(linux)

1.关闭防火墙和selinux
[root@localhost ~]# hostnamectl set-hostname zabbix-agent
[root@localhost ~]# bash
[root@zabbix-agent ~]# systemctl disable --now firewalld
Removed "/etc/systemd/system/multi-user.target.wants/firewalld.service".
Removed "/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service".
[root@zabbix-agent ~]# vi /etc/selinux/config
[root@zabbix-agent ~]# setenforce 0
[root@zabbix-agent ~]# getenforce
Permissive

2.安装依赖包
[root@zabbix-agent ~]# yum -y install vim gcc gcc-c++ make pcre-devel
Complete!

3.下载zabbix软件包,与解压
[root@zabbix-agent ~]# ls
anaconda-ks.cfg  zabbix-6.4.10.tar.gz
[root@zabbix-agent ~]# tar xf zabbix-6.4.10.tar.gz 
[root@zabbix-agent ~]# ls
anaconda-ks.cfg  zabbix-6.4.10  zabbix-6.4.10.tar.gz

4.编译
[root@zabbix-agent ~]# cd zabbix-6.4.10
[root@zabbix-agent zabbix-6.4.10]# ./configure --help | grep agent
  --enable-agent          Turn on build of Zabbix agent and client utilities
  --enable-agent2         Turn on build of Zabbix agent 2
[root@zabbix-agent zabbix-6.4.10]# ./configure --enable-agent
***********************************************************
*            Now run 'make install'                       *
*                                                         *
*            Thank you for using Zabbix!                  *
*              <http://www.zabbix.com>                    *
***********************************************************
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值