[mrtg] Unknown SNMP var

SYED JAHANZAiB ~!~ AA Internet Cable.Network Services aacable at hotmail.com
Fri Apr 11 16:49:42 CEST 2008


Hi,
I want to graph remote Windows Memory & Harddisk. I got these values from a windows pc via SNMP by running following command.
[root at gw2 bin]# snmpwalk -v2c  -c public 10.0.0.1
. . . . .(pasting only relative data)HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: C:\Label:W2003 C  Serial Number 7cda6213HOST-RESOURCES-MIB::hrStorageDescr.8 = STRING: Physical Memory
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 4096 BytesHOST-RESOURCES-MIB::hrStorageAllocationUnits.8 = INTEGER: 65536 Bytes
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 2560351HOST-RESOURCES-MIB::hrStorageSize.8 = INTEGER: 16223
HOST-RESOURCES-MIB::hrStorageUsed.1 = INTEGER: 1163807HOST-RESOURCES-MIB::hrStorageUsed.8 = INTEGER: 11361.........
Also I can get values by running,[root at gw2 bin]# snmpwalk -v2c  -c public 10.0.0.1 hrStorageSize.1
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 2560351
 
But when I setup it in mrtg.cfg file like this,Target[server.memory]: hrStorageSize.5&hrStorageUsed.5:public at 10.0.0.3. . . .I get this error
18:55:07 -- Started mrtg with config '/usr/local/mrtg-2/bin/mrtg.cfg'18:55:07 -- Unknown SNMP var hrStorageSize.1 at /usr/local/mrtg-2/bin/mrtg line 220218:55:07 -- Unknown SNMP var hrStorageUsed.1 at /usr/local/mrtg-2/bin/mrtg line 220218:55:07 -- 2008-04-11 18:55:07: ERROR: Target[server.memory][_IN_] '                   
$target->[0]{$mode} ' did not eval into defined data18:55:07 -- 2008-04-11 18:55:07: ERROR: Target[server.memory][_OUT_]                   ' 
$target->[0]{$mode} ' did not eval into defined data
Please Help me.Thx
 Regards, 

zaib
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20080411/aaa7805c/attachment-0001.html 


More information about the mrtg mailing list