HOWTO: Install MRTG (FULLY AUTOMATED) 2.12.2

Last edited:
Any advice on MaxBytes CPU, and Load should be?

I installed this on a Dual 3Ghz Xeon and am wondering what the best defaults are. Currently the CPU graph keeps spiking and flattening out, but it is under heavy load. :)
 
mars# /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/core/mrtg.cfg
/usr/local/mrtg-2/bin/mrtg: Command not found.
 
working for freeBSD, also changed the mirror for fast dl:

find this:
wget http://www.web4host.net/tools/mrtg-2.12.2.tar.gz

change to:
wget ftp://ftp.openpkg.org/sources/DST/m...g-2.12.2.tar.gz

find this:
tar zfx mrtg-2.12.2.tar.gz
cd mrtg*
./configure --with-gd=/usr/local/lib

change to:
tar zfx mrtg-2.12.2.tar.gz
cd mrtg-2.12.2
./configure --with-gd=/usr/local/lib


* You should have GD installed,

not work for freeBSD

mars# /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/core/mrtg.cfg
/usr/local/mrtg-2/bin/mrtg: Command not found.
 
I have just installed MRTG successfully for the first time on my system. (64bits CentOS 4.2).
It is running for about 2 hours now and the graphs are updated.

I have noticed a high CPU load according the graph which is not correct as I look into the system (for example with top).

Here are some of the values from the cpu.log file (/var/www/html/mrtg)
Does this look like a CPU load of 30% or more?
My average CPU load is around the 5-6% so quite low.


Code:
1142796301 5741411 6215933
1142796301 0 0 0 0
1142796002 0 0 0 0
1142796000 0 0 0 0
1142795700 0 0 1 1
1142795400 1 1 5 5
1142795100 5 5 5 6
1142794800 5 5 5 6
1142794500 5 5 5 5
1142794200 5 5 5 6
1142793900 5 6 5 6
1142793600 4 5 5 6
1142793300 1 2 2 2
1142793000 1 2 2 2
1142792700 2 2 3 4
1142792400 2 3 3 4
1142792100 1 1 1 1
1142791800 1 1 1 2
1142791500 1 2 3 3
1142791200 2 3 3 3

Another issue.
The uptime is measured in K's (kilo seconds??)
Is that correct?
The other graphs are looking fine, except Memory Utilization which shows nothing.
 
HOW TO : set your System Information

edit file
Code:
nano -w /var/www/html/mrtg/core/mrtg.cfg

find MaxBytes[load] and set what you need

find MaxBytes[cpu] and set what you need

find MaxBytes[memory] and set what you need

Save
END

all in Bytes




Wael
 
@how@ said:
HOW TO : set your System Information

edit file
Code:
nano -w /var/www/html/mrtg/core/mrtg.cfg

find MaxBytes[cpu] and set what you need
Save
END

all in Bytes

Wael

Thanks but ....

The values does not say a lot to me.
In my config file is for example:

Code:
MaxBytes[cpu]: 100

That means 100 bytes?
And related to what? 100 bytes is 100% ??? :confused:

I am confused ...

Anyway my CPU load has dropped now since the last 1-2 hours and it is all "0" in the cpu.log file
which is too low I guess.....
I would expect something like a few percent but not zero.
 
Ximmer said:
Thanks but ....

The values does not say a lot to me.
In my config file is for example:

Code:
MaxBytes[cpu]: 100

That means 100 bytes?
And related to what? 100 bytes is 100% ??? :confused:

I am confused ...

Anyway my CPU load has dropped now since the last 1-2 hours and it is all "0" in the cpu.log file
which is too low I guess.....
I would expect something like a few percent but not zero.

memory 1gb 1034104000
cpu 2.8gb 2801323000 if you have Duel 2.8 * 2 = (2801323000*2)
 
I think that maxbytes is jus a name of the maximum value shown on the generated graph.

That it is called MaxBytes is just a historical feature from mrtg's original design (measuring bandwidth).

You want this to be 100 so that the CPU usage is shown as a percentage. See http://www.debianhelp.co.uk/mrtg.htm
 
I installed MRTG via yum (RH9). I noticed that the default mrtg.cfg file doesn't have many config options written into it. Here's the one that came with yum...
 

Attachments

bigboy said:
not work for freeBSD

mars# /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/core/mrtg.cfg
/usr/local/mrtg-2/bin/mrtg: Command not found.

I second, where exactly I have to put .htaccess to make it passord protected
 
Back
Top