[MRTG] Unknown SNMP var hrStorageUsed - BBS
By Selena
at 2010-04-24T18:35
at 2010-04-24T18:35
Table of Contents
我想用mrtg去抓取某顆硬碟目前使用量
當然CPU Memory 網卡這些都已經配置完成
而且執行上也OK
不過我在弄硬碟目前使用量時 都會出現錯誤
===================cfg設定檔===============
Target[vv]:hrStorageUsed.33&hrStorageUsed.33:[email protected] (我先抓這個試試)
MaxBytes[vv]: 1000000000000
Title[vv]: MAXTOR DISK USED
PageTop[vv]: MAXTOR DISK USED
Options[vv]:noinfo, growright, gauge, nopercent, noo, pngdate
YLegend[vv]: Capacity (%)
kMG[vv]:k,M,G
ShortLegend[vv]: %
Colours[vv]: GRAY#808080,BLACK#FFFFFF,RED#ff0000,RED#ff0000
Legend1[vv]: File System Capacity Average
Legend2[vv]:
Legend3[vv]: File System Capacity Maximal
Legend4[vv]:
LegendI[vv]: Capacity:
LegendO[vv]:
Unscaled[vv]: dwmy
================== #mrtg .cfg檔出現的訊息 =========
Unknown SNMP var hrStorageUsed.33
at /usr/local/bin/mrtg line 2202
Unknown SNMP var hrStorageUsed.33
at /usr/local/bin/mrtg line 2202
2010-04-24 18:30:15: WARNING: Expected a number but got '9:30:32'
2010-04-24 18:30:15: WARNING: Expected a number but got 'abc.ooxx.net'
2010-04-24 18:30:17: ERROR: Target[vv][_IN_] ' $target->[6]{$mode} ' did not
eval into defined data
2010-04-24 18:30:17: ERROR: Target[vv][_OUT_] ' $target->[6]{$mode} ' did not
eval into defined data
但是如果我用snmpget去抓的話
> snmpget -v 1 -c xxx localhost hrStorageUsed.33
HOST-RESOURCES-MIB::hrStorageUsed.33 = INTEGER: 360975
似乎又抓的到
有人知道這個解法嗎??Google找一下 都只有提出這個問題 沒人回怎麼解
是有想過用du + script來代替 只是有現成的不用 有點在意
--
當然CPU Memory 網卡這些都已經配置完成
而且執行上也OK
不過我在弄硬碟目前使用量時 都會出現錯誤
===================cfg設定檔===============
Target[vv]:hrStorageUsed.33&hrStorageUsed.33:[email protected] (我先抓這個試試)
MaxBytes[vv]: 1000000000000
Title[vv]: MAXTOR DISK USED
PageTop[vv]: MAXTOR DISK USED
Options[vv]:noinfo, growright, gauge, nopercent, noo, pngdate
YLegend[vv]: Capacity (%)
kMG[vv]:k,M,G
ShortLegend[vv]: %
Colours[vv]: GRAY#808080,BLACK#FFFFFF,RED#ff0000,RED#ff0000
Legend1[vv]: File System Capacity Average
Legend2[vv]:
Legend3[vv]: File System Capacity Maximal
Legend4[vv]:
LegendI[vv]: Capacity:
LegendO[vv]:
Unscaled[vv]: dwmy
================== #mrtg .cfg檔出現的訊息 =========
Unknown SNMP var hrStorageUsed.33
at /usr/local/bin/mrtg line 2202
Unknown SNMP var hrStorageUsed.33
at /usr/local/bin/mrtg line 2202
2010-04-24 18:30:15: WARNING: Expected a number but got '9:30:32'
2010-04-24 18:30:15: WARNING: Expected a number but got 'abc.ooxx.net'
2010-04-24 18:30:17: ERROR: Target[vv][_IN_] ' $target->[6]{$mode} ' did not
eval into defined data
2010-04-24 18:30:17: ERROR: Target[vv][_OUT_] ' $target->[6]{$mode} ' did not
eval into defined data
但是如果我用snmpget去抓的話
> snmpget -v 1 -c xxx localhost hrStorageUsed.33
HOST-RESOURCES-MIB::hrStorageUsed.33 = INTEGER: 360975
似乎又抓的到
有人知道這個解法嗎??Google找一下 都只有提出這個問題 沒人回怎麼解
是有想過用du + script來代替 只是有現成的不用 有點在意
--
Tags:
BBS
All Comments
Related Posts
請教有關FreeBSD中文顯示的問題
By Quintina
at 2010-04-24T13:59
at 2010-04-24T13:59
大家的 FreeBSD 都拿來做甚麼事情比較多 ?
By Lily
at 2010-04-22T21:47
at 2010-04-22T21:47
多出來的\n
By Rebecca
at 2010-04-22T12:29
at 2010-04-22T12:29
詭異的問題…
By Sarah
at 2010-04-21T02:27
at 2010-04-21T02:27
標籤刪除
By Annie
at 2010-04-17T23:02
at 2010-04-17T23:02