請問一下:
如何使用MRTG偵測網路設備的CPU使用率呢?
謝謝!
可列印頁面
請問一下:
如何使用MRTG偵測網路設備的CPU使用率呢?
謝謝!
[QUOTE][i]最初由 yilang 發表[/i]
[B]請問一下:
如何使用MRTG偵測網路設備的CPU使用率呢?
謝謝! [/B][/QUOTE]
用snmp偵測就可以了..
參考
[URL]http://aerosol.ev.ncku.edu.tw/~vbird/safe/04mrtg.html#6[/URL]
[QUOTE][i]最初由 aqsss 發表[/i]
[B]
用snmp偵測就可以了..
參考
[URL]http://aerosol.ev.ncku.edu.tw/~vbird/safe/04mrtg.html#6[/URL] [/B][/QUOTE]
這種方法好像只能偵測Linux主機的CPU使用率,無法取得Cisco設備的CPU使用情況...
還是需要那些參數嗎?
[QUOTE][i]最初由 yilang 發表[/i]
[B]
這種方法好像只能偵測Linux主機的CPU使用率,無法取得Cisco設備的CPU使用情況...
還是需要那些參數嗎? [/B][/QUOTE]
妳的型號是多少的?我附上CISCO 7000/75xx的cpu.cfg
Target[router]: 1.3.6.1.4.1.9.2.1.57.0&1.3.6.1.4.1.9.2.1.58.0:community@router
Directory[router]: cpu-stats
WithPeak[router]: wmy
YLegend[router]: CPU Utilization
ShortLegend[router]: %
MaxBytes[router]: 100
Options[router]: growright, nopercent, gauge
Unscaled[router]: dwmy
AbsMax[router]: 100
Title[router]: router
Colours[router]: GREEN#00eb0c,BLUE#1000ff,BLUE#1000ff,VIOLET#ff00ff
Legend1[router]: Average 1 minute CPU Utilization
Legend2[router]:
Legend3[router]: Average 5 minute CPU Utilization
Legend4[router]:
LegendI[router]: CPU:
LegendO[router]:
PageTop[router]: <H1> CPU Utilization
<BR></H1>
<TABLE>
<TR><TD>System:</TD><TD>Router </TD></TR>
<TR><TD>Maintainer:</TD><TD>NetOps</TD></TR>
</TABLE>
參考一下吧.. :)
[QUOTE][i]最初由 aqsss 發表[/i]
[B]
妳的型號是多少的?我附上CISCO 7000/75xx的cpu.cfg
Target[router]: 1.3.6.1.4.1.9.2.1.57.0&1.3.6.1.4.1.9.2.1.58.0:community@router
Directory[router]: cpu-stats
WithPeak[router]: wmy
YLegend[router]: CPU Utilization
ShortLegend[router]: %
MaxBytes[router]: 100
Options[router]: growright, nopercent, gauge
Unscaled[router]: dwmy
AbsMax[router]: 100
Title[router]: router
Colours[router]: GREEN#00eb0c,BLUE#1000ff,BLUE#1000ff,VIOLET#ff00ff
Legend1[router]: Average 1 minute CPU Utilization
Legend2[router]:
Legend3[router]: Average 5 minute CPU Utilization
Legend4[router]:
LegendI[router]: CPU:
LegendO[router]:
PageTop[router]: <H1> CPU Utilization
<BR></H1>
<TABLE>
<TR><TD>System:</TD><TD>Router </TD></TR>
<TR><TD>Maintainer:</TD><TD>NetOps</TD></TR>
</TABLE>
參考一下吧.. :) [/B][/QUOTE]
謝謝你提供資料,我這邊的設備是Cisco 7206VXR,OID的資料我可以到那查詢呢?
麻煩你了!
設定好oid後,執行mrtg route-cpu.cfg,發生以下的錯誤...
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.4.1.9.1.222)
SNMPv1_Session (remote host: "router-ip" [router-ip].161)
community: "public"
request ID: 919764874
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 450
SNMPGET Problem for 1.3.6.1.4.1.9.1.222 1.3.6.1.4.1.9.1.222 sysUptime sysName o6
at /usr/bin/mrtg line 1491
WARNING: Expected a number but got ''
WARNING: Expected a number but got ''
請問一下,這個錯誤該如何解決呢?
謝謝!