请选择 进入手机版 | 继续访问电脑版
查看: 824|回复: 4

zabbix snmp监控交换机流量

34

主题

34

帖子

138

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
138
羊大仙 发表于 2015-12-10 20:17:40 | 显示全部楼层 |阅读模式

zabbix监控交换机是非常的简单,只需知道交换机snmp的密码,然后连结下自带的snmp模板,就可以完成监控了,还有什么比这配置更简单的?


1、配置交换机的snmp

snmp-server community yang ro   #配置读取snmp的密码  
snmp-server community yangrong rw   #配置可写的snmp密码,为安全起见,最好别开启

linux上安装net-snmp net-snmp-utils包,测试snmp访问

#snmpwalk -v 2c -c yang 14.1.8.1   1.3.6.1.2.1.2.2.1.10.2  #查看端口2的计数
iso.3.6.1.2.1.2.2.1.10.2 = Counter32: 3497833695

 

2、配置zabbix community变量

[管理]à[一般]à[巨集]里,配置snmp的密码变量,这样就可以调用zabbix自带的snmp模板了。


3、创建主机

使用snmp监控

wKiom1Qnr32Q4muLAAD66Jkq-Xo614.jpg

 

连结默认的snmp模板

wKioL1Qnr6bDL5-cAAC477Wzz7s758.jpg

 

OK,配置完成,zabbix就可以完成自动监控。

 

4、修改模板的探索规则

由于交换机上有48口交换机,默认的探索规则里有8项监控,就是说最后会生成48*8=384条监控项,这对于zabbix server的压力很大。

修改探索规则只监控入口流量,出口流量,端口状态;其它的都删除掉。如下图,只保留红框框起来的部分。

 

wKiom1Qnr36S529GAAHAquQBlYE772.jpg

 

5、自动发现结果

如下图,自动发现项变成了187项,但相对应正常的见控项还是多了不少。

wKiom1Qnr37ikYlGAAJxhnLZ15g667.jpg

 

6、网卡监控图

过一段时间后,监控项有了数据,可以查看图形啦。

wKioL1Qnr6ejSySOAAF29ANHlsE473.jpg

7、常用snmp OID说明

下面这些值可以手动连接进行获取数据:

snmpwalk -v 2c -c test IP1.3.6.1.2.1.2.2.1.2 #获取端口列表及描述
snmpwalk -v 2c -c test IP1.3.6.1.2.1.2.2.1.8  #获取端口UP/DOWN 情况
snmpwalk -v 2c -c test IP1.3.6.1.2.1.2.2.1.10  #获取端口入流量(byte)
snmpwalk -v 2c -c test IP1.3.6.1.2.1.2.2.1.16  #获取端口出流量(byte)
snmpwalk -v 2c -c test IP1.3.6.1.4.1.9.2.1.56.0  #获取过去5 秒内的cpu load(百分比)
snmpwalk -v 2c -c test IP1.3.6.1.4.1.9.2.1.57.0  #获取过去10 秒内的cpu load(百分比)
snmpwalk -v 2c -c test IP 1.3.6.1.4.1.9.2.1.58.0  #获取过去15 秒内的cpu load(百分比)
snmpwalk -v 2c -c test IP1.3.6.1.4.1.9.9.48.1.1.1.5  #获取内存使用情况
snmpwalk -v 2c -c test IP1.3.6.1.4.1.9.9.48.1.1.1.6  #获取内存空闲情况


 


本文出自 “楊雲” 博客,谢绝转载!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

2411

主题

2699

帖子

7853

积分

论坛元老

Rank: 8Rank: 8

积分
7853
JamTrolley 发表于 2017-5-25 17:02:44 | 显示全部楼层
Cialis Soft Pas Cher  Generic Viagra Online Fluconazole By Mail Buy Viagra Online Reputable  Buy Strattera Online Usa Pharmacy Substitute For Propecia Generic Viagra Wholesale 100mg  Cialis Generic Valtrex Online Uk Kamagra Sildenafil Citrate Tablets  Kamagra Jelly Online Low Testosterone Bph Propecia Viagra Original Ou Generique  Order Cialis Pills Prezzo Viagra Pfizer In Farmacia Buy Effexor Xr Cheap  Buy Cheap Viagra Overnight Secure Ordering Clobetasol 0.05% Medication Discount Viagra Bestellen Holland  Kamagra Chewable Free Antabuse Disulfiram Samples How To Buy Celexa Overcounter  Cheap Clomiphene Levaquin Drugs In Usa C.O.D. Prix Du Cialis Soft France  Cialis Prices How To Buy Doxycycline Riverside Can Keflex Cure Syphilis  Online Zoloft Online Apotheke Tamoxifen Cephalexin 500 Dosage  Generic Name For Prozac Northwesrpharmarcy Fish Cephalexin  Cheapest Cialis Amoxicillin Allopurinol Cialis 5 Mg Principio Attivo  Sildenafil Kamagra Jalea Capelli Propecia Finasteride  Viagra For Sale Viagra Pour Bebe Sore Throat Antibiotic Amoxicillin Protocol  Cheap Zoloft Tablets Buy Kamagra Tablets Levaquin Purchasing Price With Next Day Delivery  Sertraline No Prescription Diarrhea Amoxicillin 500 Mg Viagra Online Bestellen  Viagra Pill Prescriptions Amoxicillin Where To Order Genuine Drug Alli  Brand Cialis Kamagra Pharmacy Online Precio Levitra 10 Mg  Order Viagra Onlines Where To Buy Cialis Online Safely 164 Cialis Erfahrungen Forum  Propranolol Overseas Pharmacy Cipro 500mg Best Prices Precio Cialis 10 Mg Lilly  Cheap Kamagra Pills Dyazide Canadian Drugstore Online  Buy Viagra Cialis 20 Mg Posologie Purchase Tadalafil  Viagra Online Fast Pak For Bladder Infection Cialis Effetti Durata  How To Buy Zoloft Commander Du Propecia Impacto Del Propecia  Order Kamagra Pills Ed Meds Overnight Delivery Propecia E Disfuncion Erectil  Ordering Zoloft Online Amoxicillin Different Penecillin Propecia Drug Interactions  Propranolol Overseas Pharmacy Generic Viagra Companies Viagra Rote Liste  Cialis Price Buy Plavix Cheap Online Doseage For Keflex For Sinus Infection  Buy Zoloft Online Cheap Propecia Largo Plazo Using Cephalexin For Dogs  Order Deltasone Online Viagra Sales Uk Elocon Get Amex Accepted  Order Cialis Achetez Priligy Cantidad De Propecia  Best Zoloft Online Flagyl Rx Cialis Viagra Unterschied  Cialis 20mg Price Pharm Support Group Canada Prescription For Diflucan  Buy Online Cialis Where To Buy Silagra Buy Amoxicillin For Pet  Xenical Online Keflex For Cellulitis Cialis 5mg Tadalafil Lilly  Kamagra Tablet Is Requip 1 Safe To Use Acquisto Cialis Prezzo  Kamagra Jelly Buy Antibiotics Online Uk Comprar Brand Kamagra Soft  Can I Buy Cialis Online Cilias Buy At Miami Tadalis Sx Soft And Generique  Kamagra Order Where Can U Buy Black Rock Like Viagra Paypal Medications Online  Buy Kamagra No Script Viagra 50 Mg Viagra Pills On Sale  Cost Of Viagra Generic Hydrochlorothiazide Website Cash Delivery Generic Viagra Sildenafil Citrate  Priligy 30mg Tablets Cialis Cost Vs Viagra Cost Cialis Rezeptfrei Preis  Internet Order Viagra Viagra Witout A Prescription Cytotec 20mg Conditionnement  Where To Buy Zoloft Comparer Les Prix Usa En Ligne Acquistare Cialis Generico In Italia  Buy Cheap Generic Cialis Where Can I Buy Levaquin No Prescription Pediatric Dosage Amoxicillin Susp  Purchase Generic Kamagra Viagra 50 Ou 100 Cialis 5 Mg Prezzi  Cheap Kamagra Pill Buying Cialis Tadalafil Dental Antibiotic Amoxicillin Protection  Cialis Online Kamagra Order Cialis One Day Effetti Collaterali  Buy Cialis Cheap 5mg Cialis Amoxicillin Drug Facts For Lyme Disease  Cheap Cialis 20mg Where To Buy Cialis In Canada
回复 支持 反对

使用道具 举报

0

主题

276

帖子

556

积分

高级会员

Rank: 4

积分
556
chenyingying 发表于 2017-11-3 13:54:06 | 显示全部楼层
north face jackets
burberry scarves
mbt outlet
ugg outlet
moncler outlet
giuseppe zanotti sneakers
christian louboutin uk
cheap jordan shoes
soccer jerseys
michael kors uk
cheap jordan shoes
ugg schweiz
carrera sunglasses
nike uk
ugg boots
uggs classic boots
coach factory online
moncler dunjacka
coach outlet
north face jackets
tory burch outlet
kate spade outlet
d&g sunglasses
coach wallets
christian louboutin outlet
cheap nhl jerseys
hermes birkin bag
ugg boots
ugg outlet
cheap nfl jerseys
ugg outlet store
coach outlet
nike running uk
ugg boots
coach bags
ray ban sunglasses outlet
ralph lauren polo shirts
michael kors outlet
canada goose outlet
doudoune canada goose
coach factory outlet
cheap jordans
fitflops shoes
hermes belt outlet
kate spade outlet online
chicago blackhawks jersey
cheap ray ban sunglasses
manolo blahnik outlet
uggs outlet
true religion jeans
oakley sunglasses cheap
tory burch outlet
coach outlet online 70% off
michael kors
cheap oakley sunglasses
adidas outlet clearance
polo ralph lauren
montblanc pen
ray ban sunglasses
cheap nfl jerseys
fitflops sale clearance
coach factory outlet online
longchamp handbags
oakley sunglasses outlet
burberry scarf
cheap ray ban sunglasses
canada goose outlet
ugg outlet
michael kors outlet clearance
coach outlet online
ralph lauren outlet
canada goose nederland
nike jordans
coach outlet 70% off
nike air max
uggs uk
ugg factory outlet
nike nfl jerseys
longchamp bags
adidas wings
ugg outlet
north face outlet
air jordan pas cher
coach outlet online
ugg sale
louis vuitton
pandora charms
air max thea
air max 90
canada goose jackets
coach outlet
michael kors outlet clearance
nike store
converse shoes
longchamp outlet store
cheap ugg boots
north face clearance
ugg outlet online
ugg boots
oakley vault
chenyingying20171103
回复 支持 反对

使用道具 举报

0

主题

276

帖子

556

积分

高级会员

Rank: 4

积分
556
chenyingying 发表于 2017-11-20 10:18:03 | 显示全部楼层
回复 支持 反对

使用道具 举报

0

主题

18

帖子

38

积分

新手上路

Rank: 1

积分
38
zzzzz 发表于 2017-11-27 09:28:02 | 显示全部楼层
fitflops sale
mont blanc pens
basketball shoes
coach outlet online
armani exchange
chicago bulls jersey
houston texans jerseys
gucci shoes
nike shoes
jimmy choo shoes
jordan shoes
eagles jerseys
cheap snapbacks
cheap jordans
nike blazer pas cher
birkenstock sandals
coach outlet online
nike blazer
ed hardy uk
cheap ray bans
kate spade sale
salomon shoes
jaguars jersey
polo ralph lauren
cheap jordan shoes
coach outlet
canada goose sale
miami heat jersey
nike air huarache
ugg outlet
indianapolis colts jerseys
ugg outlet
michael kors outlet
true religion outlet
ugg outlet
air jordan uk
ralph lauren polo
prada outlet
nike shoes
colts jerseys
coach outlet
golden state warriors jerseys
coach factory outlet
coach outlet store
jordan shoes
cheap nhl jerseys
coach outlet
christian louboutin sale
snapbacks wholesale
nike trainers
cheap mlb jerseys
christian louboutin outlet
pandora outlet
arizona cardinals jerseys
cheap oakley sunglasses
cheap jordans
tods outlet
chargers jerseys
oakley sunglasses wholesale
kate spade handbags
oakley sunglasses
new orleans saints jerseys
yeezy shoes
coach factory outlet
burberry outlet
cleveland cavaliers jerseys
ferragamo shoes
hugo boss outlet
coach handbags
nhl jerseys
jets jersey
coach factory outlet
ugg outlet
dolphins jerseys
polo ralph lauren outlet
kate spade outlet
ed hardy outlet
nike roshe run
uggs outlet
christian louboutin outlet
tennessee titans jersey
broncos jerseys
polo ralph lauren
hermes belt
cheap oakley sunglasses
true religion outlet store
oklahoma city thunder jerseys
ugg outlet
coach outlet store online
uggs outlet
ralph lauren outlet
nike huarache
polo ralph lauren
coach outlet
uggs outlet
ralph lauren outlet
nike outlet
salomon boots
yeezy boost 350
michael kors outlet
zzzzz
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表