[mrtg] Disk monitoring problem

Syrovátka, Zdeněk, VF-CZ zdenek.syrovatka at vodafone.com
Mon Jun 30 09:59:50 CEST 2008


Thank you, Steve.
This is the first disk item from the configuration file. Should it start with dskPercent.0 or did you mean something else? We have the same configuration on other servers with no problems. Also Google says it should start from 1.

## servername #  # / ######################
Target[servername.]: dskPercent.1&dskPercent.1:communityname at servername
Title[servername.]: / on servername
routers.cgi*Desc[servername.]: / on servername
routers.cgi*ShortDesc[servername.]: /
MaxBytes[servername.]: 100
AbsMax[servername.]: 100
Options[servername.]: growright,nopercent,gauge
YLegend[servername.]: used disk space
ShortLegend[servername.]: % used
Legend1[servername.]: usage
Legend2[servername.]: usage
Legend3[servername.]: peak usage
Legend4[servername.]: peak usage
LegendI[servername.]: usage
LegendO[servername.]: usage
routers.cgi*Icon[servername.]: disk-sm.gif
routers.cgi*Options[servername.]: noo,nomax,noabsmax
Unscaled[servername.]: dwmy 



Whatconfiguration do you have in your MRTG Target[] lines?  It is hard to spot the error without this information.
Remember that the index should start at 0, not at 1.  This may be where you're going wrong?

Steve

--- original message
I have interesting problem with disk monitoring on Solaris 10. In /etc/sma/snmp/snmpd.conf I have configured 5 disks but MRTG sees only 4 of them. I receive two error messages:
...
After adding the first disk twice, all is OK:
disk / 5%
disk / 5%
disk /var 5%
disk /crashfs 5%
disk /export/home 5%
disk /disk5name 5%

It seems that MRTG does not recognize the first disk in snmpd.conf. Does anybody experienced the same problem? I think the first error message applies to system uptime, but it also disappears after adding the first disk twice.



More information about the mrtg mailing list