Friday, March 16, 2012

Setting up MRTG for bits instead of bytes

I always have to look this up, so I’m blogging the cfgmaker command I like to use for windows.

perl cfgmaker community@10.10.10.10 -–global "WorkDir: c:\MRTG\MRTGDATA" --global "options[_]: growright,bits" --output FW1.cfg

Initially only the last 24 will show bits, but as data grows the other charts converts from bytes to bits.

If you use a Scheduled Tasks

Run:    C:\Perl64\bin\perl.exe mrtg FW1.cfg

Start in:   C:\MRTG\mrtg-2.xx.x\bin

Advanced settings to run ever 5 minutes for 23 hours and 55 minutes

If you already have MRTG setup and working and you want to move from bytes to bits, you can always just modify your .cfg file and remove the comment marks on the second line.

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

So it should look like

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

2 comments:

Toni_tone said...

great!! this helped me alot.

Craig said...

tried to do this a few times, read this, tried it again, it worked. thanks!