Hi All,
          Got a strange one i hope someone can help me figure out.  I am 
setting up some MRTG monitoring & would like to include the harddisk 
usage in the graphs.  I have found the disk usage mib which is 
hrStorageUsed & hrStorageSize via snmpwalk which works fine as you can 
see below:

[EMAIL PROTECTED] /etc/mrtg# snmpwalk -v 1 -c public localhost hrStorageUsed.4
HOST-RESOURCES-MIB::hrStorageUsed.4 = INTEGER: 150946
[EMAIL PROTECTED] /etc/mrtg# snmpwalk -v 1 -c public localhost hrStorageSize.4
HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER: 515860


I then added the parameters to the mrtg.conf file as shown below:

/etc/mrtg.conf

HtmlDir: /home/httpd/sites/mrtg/
ImageDir: /home/httpd/sites/mrtg/images/
LogDir: /var/log/mrtg/
XSize[_]: 350
YSize[_]: 80

....

# /dev/md0
Target[md0]: hrStorageUsed.4&hrStorageSize.4:[EMAIL PROTECTED]
Title[md0]: Disk usage for /
PageTop[md0]:<h1>Disk usage for / (md0)</h1>
MaxBytes[md0]: 1354840
Options[md0]: gauge growright
Unscaled[md0]: dwmy
ylegend[md0]: kB used
ShortLegend[md0]: kB
LegendI[md0]: &nbsp;Used:
LegendO[md0]: &nbsp;Size:
Legend1[md0]: Disk usage
Legend2[md0]: Disk size

However i get an error when i run the following:

[EMAIL PROTECTED] /etc/mrtg# env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.conf

Unknown SNMP var hrStorageUsed.4
 at /usr/bin/mrtg line 1925
Unknown SNMP var hrStorageSize.4
 at /usr/bin/mrtg line 1925

If it works in snmpwalk i'm guessing its a config issue but i'm not sure 
where/how?  Any ideas

P.S. MRTG is working for everything else that is included in the default 
MRTG file (mem, processors etc...)

Thanks

Mark
_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss

Reply via email to