使用Zabbix和grafana来监控交换机流量

阅读: 评论:0

使⽤Zabbix和grafana来监控交换机流量⼀、安装Zabbix
# rpm -ivh repo.zabbix/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.arch.rpm
# yum -y install zabbix-server-mysql zabbix-web-mysql
# yum -y install mariadb-server mariadb
# systemctl start mariadb
# systemctl status mariadb
# systemctl enable mariadb
# cd /usr/share/doc/zabbix-server-mysql-3.4.4
# zcat | mysql -uzabbix -p zabbix
# egrep -v "^#|^$" /etc/zabbix/f
LogFile=/var/log/zabbix/zabbix_server.log
LogFileSize=0
PidFile=/var/run/zabbix/zabbix_server.pid
SocketDir=/var/run/zabbix
DBHost=localhost方艺蒙
DBName=zabbix
DBUser=zabbix
DBPassword=wangzhijian
StartPollers=15
StartPollersUnreachable=25
StartPingers=10
StartDiscoverers=10
SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
Timeout=4
绝缘升降平台
AlertScriptsPath=/usr/lib/zabbix/alertscripts
ExternalScripts=/usr/lib/zabbix/externalscripts
高斯扩散模型
LogSlowQueries=3000
# systemctl start zabbix-server
# systemctl status zabbix-server
# systemctl enable zabbix-server
# vim /etc/httpd/conf.f
php_value max_execution_time 300
php_value memory_limit 128M
硬质合金密封环
php_value post_max_size 16M
php_value upload_max_filesize 2M
php_value max_input_time 300
php_value always_populate_raw_post_data -1
# php_value date.timezone Europe/Riga
php_value date.timezone Asia/Shanghai
# systemctl start httpd
# systemctl status httpd
# systemctl enable httpd
2.安装Grafana及其Zabbix插件
# yum install s3-us-west-2.amazonaws/grafana-releases/release/grafana-5.0.3-1.x86_64.rpm
# systemctl start grafana-server
# grafana-cli plugins list-remote
# grafana-cli plugins list-remote | grep zabbix
id: alexanderzobnin-zabbix-app version: 3.9.0
# grafana-cli plugins install alexanderzobnin-zabbix-app
# systemctl restart grafana-server
3.配置Zabbix接⼊交换机
a.创建主机组
b.配置并添加组名
c.点击主机进⼊主机界⾯创建主机
d.点击创建主机进⾏创建
e.配置主机名、组以及SNMP接⼝
f.这⾥使⽤SNMPv2来监控交换机,官⽅有现成的模版可供使⽤,记住在选择完模版后得点击添加才能成功添加模版
g.配置主机宏,这⾥配置宏为{$SNMP_COMMUNITY},值为交换机snmp的⽤户名public
叉车轮辋
h.配置完成显⽰如下,但是由于模版的⾃动发现规则有些并不适⽤,现在将不需要的规则停⽤
i.停⽤MIB规则
j.停⽤不需要的监控项原型
k.之后会显⽰采集到的监控项、触发器以及图形,根据需要采集的项时间会有所不同
l.现在查看监控图
异频4.配置Zabbix连接Grafana
a.登录进Grafana点击Enable now进⼊Zabbix插件页
b.点击Enable启⽤Zabbix插件

本文发布于:2023-06-12 15:03:56,感谢您对本站的认可!

本文链接:https://patent.en369.cn/patent/2/136250.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:添加   监控   模版   交换机   配置   需要
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 369专利查询检索平台 豫ICP备2021025688号-20 网站地图