[mrtg] Re: Dive Utilization On WinNT 4.0

Mats mats at 4gurus.org
Fri Jun 6 16:56:03 MEST 2003


Sorry for typing faster than reading and understanding, because Garth had
this info on his page but it seems to have disapeared or I can't find it
anymore.

1. The elegend colours can be switched in the cfg file. See
http://people.ee.ethz.ch/~oetiker/webtools/mrtg/reference.html for detailed
instr.

But you already have that line in your cfg file :
Colours[ciscoworks-microsoft_winnt_hdd]:
GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
and you can just swap the GREEN and BLUE posistions here to achive the same
goal as swapping the OID order.


2. The OIDs for HD size, with garts snmp extension installed:
.1.3.6.1.2.1.25.2.3.1.5.1 = A:
.1.3.6.1.2.1.25.2.3.1.5.3 = C: the value multiplied with block size (in my
case 4096) is the size in bytes.
.1.3.6.1.2.1.25.2.3.1.5.4 = D:
.1.3.6.1.2.1.25.2.3.1.5.5 = E:
and so on.

The block size is the values in OID .1.3.6.1.2.1.25.2.3.1.4.3 for C: and so
on.

So to make this automatic just have an multiply function in the cfg file
where you multiply "HD block number" by "HD block size", ex.:

----- < Snip from ref guide >----
Multi Target Syntax
You can also use several statements in a mathematical expression. This could
be used to aggregate both B channels in an ISDN connection or multiple T1s
that are aggregated into a single channel for greater bandwidth. Note the
whitespace arround the target definitions.

Example:
 Target[ezwf]: 2:public at wellfleetA + 1:public at wellfleetA * 4:public at ciscoF
----- < /Snip from ref guide >----


Hope this is an better more detailed reply ?


/Mats

----- Original Message ----- 

> > Hello Group,
> > I am trying to graph MB used and drive size in MB. Below is my
> > config. the value MaxBytes is from the HD properties. The value:
> > .1.3.6.1.4.1.311.1.1.3.1.1.5.1.4.0 is the used space in MB. The value:
> > .1.3.6.1.4.1.311.1.1.3.1.1.5.1.3.0 is the percent free, which I don't
want
> > to graph. In the graph, the MB used is represented in the green shading.
> > This is what I want to do....
> > 1. Have the drive utilization (used in MB) graphed as blue. This I can
do by
> > swapping the position of the MIBS in Target.
> > 2. Have the green shading represent the total drive size. Since I an
unable
> > to locate that value in the MIBS, I would like to set up a fixed value
> > (4192731136). I don't know how to get that to graph.
> >
> > The system I am monitoring is a WinNT box with the snmp4tcp installed. I
use
> > a Linux box to gather the info via SNMP and create the graphs.
> >
> > Thanks,
> > Austin Wolfe
> >
> > # This Report File Template measures HDD from a Windows NT Machine
> > #
> > WorkDir: /home/mrtg/disk/winnt
> > RunAsDaemon: Yes
> > Options[ciscoworks-microsoft_winnt_hdd]: gauge, unknaszero, growright,
nobanner
> > Target[ciscoworks-microsoft_winnt_hdd]:
.1.3.6.1.4.1.311.1.1.3.1.1.5.1.4.0&.1.3.6.1.4.1.311.1.1.3.1.1.5.1.3.0:commun
ity at ip.ip.ip.ip
> > MaxBytes[ciscoworks-microsoft_winnt_hdd]: 4192731136
> > YLegend[ciscoworks-microsoft_winnt_hdd]: HDD Utilization
> > ShortLegend[ciscoworks-microsoft_winnt_hdd]: Mbytes
> > Legend1[ciscoworks-microsoft_winnt_hdd]: Average free hard disk space
> > Legend2[ciscoworks-microsoft_winnt_hdd]: .
> > Legend3[ciscoworks-microsoft_winnt_hdd]: 4192731136
> > Legend4[ciscoworks-microsoft_winnt_hdd]: &nsbp
> > LegendI[ciscoworks-microsoft_winnt_hdd]: Used:
> > LegendO[ciscoworks-microsoft_winnt_hdd]: Percent Free:
> > PageTop[ciscoworks-microsoft_winnt_hdd]: <H1>ciscoworks</H1>
> >
Colours[]: GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
Colours[]: GREEN#00eb0c,BLUE#1000ff,DARK GREEN#006600,VIOLET#ff00ff

> > #WithPeak[ciscoworks-microsoft_winnt_hdd]: ymw
> > Title[ciscoworks-microsoft_winnt_hdd]: Ciscoworks
> > kilo[ciscoworks-microsoft_winnt_hdd]: 1024
> > Xsize[ciscoworks-microsoft_winnt_hdd]: 600
> > Ysize[ciscoworks-microsoft_winnt_hdd]: 200
> > Ytics[ciscoworks-microsoft_winnt_hdd]: 10

--
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