MRTG - 'Options[_]: bits' position in .cfg file

MRTG - 'Options[_]: bits' position in .cfg file

Post by stev » Fri, 04 Jul 2003 23:50:08



Should it matter where in the .cfg file the Options[_]: bits parameter
is placed?

From my MKCFG.BAT file (edited):


--global "WorkDir: C:\MRTG_Data\%1"
--global "Options[_]: bits"
--output C:\MRTG_Data\%1\%1.CFG

The above are all on one line.

From one of the .cfg files MKCFG.BAT creates (edited):

This is the top section:

# Created by

--global 'Options[_]: bits' --output
C:\MRTG_Data\128.1.1.1\128.1.1.1.CFG

### Global Config Options

#  for UNIX
# WorkDir: /home/http/mrtg

#  or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

#  to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits

This is the bottom section:

    <TR><TD>ifName:</TD>     <TD>Nu0</TD></TR>
    <TR><TD>Max Speed:</TD>  <TD>536.9 MBytes/s</TD></TR>
  </TABLE>

WorkDir: C:\MRTG_Data\128.1.1.1
Options[_]: bits

--------------------------------------------
If 'Options[_]: bits' is at the bottom of the .cfg file, as created by
MKCFG.BAT, the graphs are displayed in bytes.

If I put 'Options[_]: bits' at the top of the file the graphs are
displayed in bits. Does this mean I have to manually edit each .cfg
file to position the 'Options[_]: bits' line near the top?