Zabbix监控平台使用

本文介绍了如何在Zabbix监控平台上进行实例配置,包括将Zabbix Server和Agent添加到Web监控,解决中文显示问题,创建自定义模板及监控项,如CPU负载和SSH服务,制作图形并创建触发器进行告警设置。
摘要由CSDN通过智能技术生成

Zabbix监控平台使用

实例

1、将zabbix server添加到zabbix web监控平台

[root@haha ~]#  yum install zabbix-agent
[root@haha ~]# cd /etc/zabbix/
[root@haha zabbix]# ls
web  zabbix_agentd.conf  zabbix_agentd.d  zabbix_server.conf
[root@haha zabbix]# vim zabbix_agentd.conf 
Server=127.0.0.1 zabbix服务器的IP,agent被动监控(默认模式)
ServerActive=127.0.0.1 
Hostname=haha   //本机主机名
[root@haha zabbix]# systemctl restart zabbix-agent.service 
[root@haha zabbix]# systemctl enable zabbix-agent.service 
Created symlink /etc/systemd/system/multi-user.target.wants/zabbix-agent.service → /usr/lib/systemd/system/zabbix-agent.service.
root@haha ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.40.99 haha
192.168.40.100 hehe

2、将zabbix agent添加到zabbix web监控平台

[root@localhost ~]# hostnamectl set-hostname hehe
[root@localhost ~]# bash
[root@hehe ~]# scp root@192.168.40.99:/etc/hosts /etc/
root@192.168.40.99's password: 
hosts                                                       100%  198   122.5KB/s   00:00    
[root@hehe ~]# cd /etc/yum.repos.d/
[root@hehe yum.repos.d]# rm -rf *
[root@hehe yum.repos.d]# cd
[root@hehe ~]# scp root@192.168.40.99:/etc/yum.repos.d/* /etc/yum.repos.d/
root@192.168.40.99's password: 
CentOS-Base.repo                                            100% 1653     1.5MB/s   00:00    
epel-modular.repo                                           100% 1395  
  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值