溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

發(fā)布時(shí)間:2020-07-29 00:23:33 來源:網(wǎng)絡(luò) 閱讀:1851 作者:xjlsky 欄目:網(wǎng)絡(luò)安全

網(wǎng)絡(luò)設(shè)備都是多端口多監(jiān)控項(xiàng)目,要是一個(gè)一個(gè)添加的話,那能可以累人的。本人開始玩zabbix的時(shí)候也是一個(gè)端口一個(gè)端口添加的,搞了好久才添加完一臺(tái)交換機(jī)。突然想是不是有自動(dòng)監(jiān)控交換的方法,通過百度一頓搜索了,找到了好多文章,根據(jù)相關(guān)文章的查看,終于實(shí)現(xiàn)了這個(gè)自動(dòng)監(jiān)控網(wǎng)絡(luò)設(shè)備的方法

實(shí)現(xiàn)過程:創(chuàng)建Templates-定義Discovery-在Discovery-創(chuàng)建item,Graphs

1,首先創(chuàng)建模板,步驟如下:Configuration-templates-Create template

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

2,簡單配置一下,把模板的名稱,所屬組都填寫一下,然后點(diǎn)擊:ADD

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

3.Templates主界面,選擇新創(chuàng)建的模板,點(diǎn)擊:Discovery

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

4.進(jìn)入Discovery界面,然后選擇:Create discovery rule

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

5.進(jìn)入Create discovery rule界面,如下圖

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

填寫內(nèi)容如下:

Name     #Discovery 名稱  名稱為:Network interface

Type       #選擇agent的模式 選擇使用agent:SNMPv2 agent

Key         #填寫所需的Key值, 因?yàn)槭亲詣?dòng)發(fā)現(xiàn),填寫的Key:ifDescr

SNMP OID    #填寫SNMP所需的OID值 ,填寫的SNMPOID:ifdescr

SNMP community # SNMP團(tuán)體的名稱,多數(shù)都是自定義的名稱,在這里我使用的是默認(rèn)的public

填寫完成如下圖:

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

好了,現(xiàn)在我們需要?jiǎng)?chuàng)建item,英文:Item prototypes 中文翻譯為:原項(xiàng)目

PS:看資料的時(shí)候沒有詳細(xì)看是在沒有在discovery rule下創(chuàng)建Item prototypes 。那次配置失敗,后來對(duì)比了一下才找到問題所在,特此在這里提示一下創(chuàng)建item是在Item prototypes 創(chuàng)建。

6.點(diǎn)擊打開:Item prototypes

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

7,進(jìn)入Item prototypes 界面,然后選擇:Create item prototype

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

8,進(jìn)入item prototype界面

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

流量IN與OUT,請(qǐng)參考IN的流量配置out流量的選項(xiàng)

Item prototype名稱 名稱描述 填寫內(nèi)容
Name Item名稱 In traffic on interface {#SNMPVALUE}
Type agent工作模式 SNMPv2 agent
Key 監(jiān)控KEY值 ifInOctets[{#SNMPVALUE}]
SNMP OID SNMP OID鍵值 IF-MIB::ifInOctets.{#SNMPINDEX}
SNMP communtiy SNMP團(tuán)體名稱 public
Type of information 獲取數(shù)據(jù)的使用類型 Numeric(unsigned)
Units 獲取數(shù)據(jù)的單位 bps (zabbix默認(rèn)為byte)
Usecustommultiplier 單位的倍數(shù) 8     (byte轉(zhuǎn)換到bps乘8)
store value 存儲(chǔ)數(shù)值的方式 Delta(speed per second)
Description Item描述 null

關(guān)于三個(gè)變量值說明,請(qǐng)參考:

本版為:2.4.6

https://www.zabbix.com/documentation/2.4/manual/appendix/macros/supported_by_location?s[]=snmpvalue

InOctets模板

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

OutOctets模板

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

9,創(chuàng)建Graph prototype 監(jiān)控流量圖,點(diǎn)擊:Graph prototype

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

10,點(diǎn)擊:Create graph prototype

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

11,進(jìn)入Create graph prototype界面

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

所需配置項(xiàng):

Name  :Traffic on interface {#SNMPVALUE}

Items

這二項(xiàng)目,配置過程如下圖

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

到Items位置,點(diǎn)擊:add prototype 添加items prototype

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

勾選,并點(diǎn)擊:SELECT

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

配置完成如下圖,然后點(diǎn)擊:add

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

以上是自動(dòng)發(fā)模板配置完成,現(xiàn)在添加主機(jī)并關(guān)聯(lián)相應(yīng)模板

添加主機(jī):Configuration-Hosts-Create host

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

填寫完基本信息后,選擇點(diǎn)擊:Templates

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

再點(diǎn)擊:Select 進(jìn)入模板選擇界面

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

勾選我們剛剛創(chuàng)建的模板,下拉點(diǎn)擊:Select或者 雙擊也可以返回到模板

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

在Link new templates 位置,已經(jīng)可以看到我們選擇的模板名稱,此時(shí)一定要點(diǎn)擊:add 進(jìn)行添加

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

最后點(diǎn)擊:add 返回到主機(jī)界面

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

等待一會(huì)就發(fā)現(xiàn)原來Item項(xiàng)目0,已經(jīng)有好多項(xiàng)目

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

然后去查看網(wǎng)絡(luò)流量圖吧

002-Zabbix-網(wǎng)絡(luò)設(shè)備自動(dòng)監(jiān)控(cisco)

到此結(jié)束了,網(wǎng)絡(luò)設(shè)備的自動(dòng)添加端口流量監(jiān)控

zabbix中文參考網(wǎng)站:https://www.ttlsa.com/monitor/zabbix/

在這個(gè)網(wǎng)站我學(xué)到了很多知識(shí),如php nginx 個(gè)人比較喜歡,在這里感謝網(wǎng)站的創(chuàng)建團(tuán)隊(duì)。

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請(qǐng)聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI