[mrtg] mrtg for hd-free monitoring

Thomas Schweikle tschweikle at fiducia.de
Tue Mar 4 00:01:16 MET 2003


Hi!

after playing arround for some time now without finding a solution:

I want to monitor hd free space using mrgt. I've set up my config file:

# This Report File Template measures HDD from a Machine running NET-SNMP
#
# Example CFGNAME : [DEVICE NAME]-net-snmp_hdd

Target[xcnlm00s-rm]: \
  ( .1.3.6.1.2.1.25.2.3.1.5.6:public at xcnlm00s \
  -.1.3.6.1.2.1.25.2.3.1.6.6:public at xcnlm00s) \
  *.1.3.6.1.2.1.25.2.3.1.4.6:public at xcnlm00s& \
  ( .1.3.6.1.2.1.25.2.3.1.5.6:public at xcnlm00s \
  -.1.3.6.1.2.1.25.2.3.1.6.6:public at xcnlm00s) \
  *.1.3.6.1.2.1.25.2.3.1.4.6:public at xcnlm00s
MaxBytes[xcnlm00s-rm]: 58
YLegend[xcnlm00s-rm]: GB Free=Green
ShortLegend[xcnlm00s-rm]: Gbytes
Legend1[xcnlm00s-rm]: Free HDD space
Legend2[xcnlm00s-rm]: .
Legend3[xcnlm00s-rm]: Max value per interval on graph
Legend4[xcnlm00s-rm]: .
LegendI[xcnlm00s-rm]:  Used:
LegendO[xcnlm00s-rm]: .
Title[xcnlm00s-rm]: /dev/ea/rm
PageTop[xcnlm00s-rm]: <H1>/dev/ea/rm</H1>
Options[xcnlm00s-rm]:gauge, nopercent, unknaszero
Colours[xcnlm00s-rm]: GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
WithPeak[xcnlm00s-rm]: ymw

since there are only about 4 Gbyte on this 58 GByte device left I was 
awaiting a green field ending up at about 4 in the graphics. But there is 
only one line drawn --- at zero!

mrtg-log only says:
2003-03-03 23:40:03 -- Started mrtg
2003-03-03 23:45:03 -- Started mrtg
2003-03-03 23:50:02 -- Started mrtg
2003-03-03 23:55:02 -- Started mrtg

"snmpwalk -c public xcnlm00s .1.3.6.1.2.1.25.2.3.1.6.6" responds:
host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageUsed.6 = 13250884

I have to subtract this from .1.3.6.1.2.1.25.2.3.1.5.6, then multiply with 
.1.3.6.1.2.1.25.2.3.1.4.6
host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageSize.6 = 15118869
host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageAllocationUnits.6 = 
4096 Bytes

I am a bit clueless at the moment. Any idea what is wrong with my 
configuration file?

using:
- ucdsnmp-4.2.5-78
- mrtg-2.9.22-27
- rrdtool-1.0.39-43

all on SuSE Linux 8.1

-- 
Thomas

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list