1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
mrtgutils
---------
In order to obtain values from the binaries, you must add the command and the modificators in your mrtg.cfg. For example:
Title[hits]: Apache hits
Target[hits]: `mrtg-apache 171.67.12.41 -s server-status`
PageTop[hits]: <h1>APACHE hits</h1>
Ylegend[hits]: hits in 171.67.12.41
Options[hits]: gauge
ShortLegend[hits]: hits
MaxBytes[hits]: 5000000
Legend1[hits]: hits
LegendI[hits]: 5min
LegendO[hits]: 15min
WithPeak[hits]: ymwd
Please, check the manpages to know which options you can put on Target value.
mrtg-apache
-----------
The web server which you want to monitor the hits must have the mod_info installed and properly configured. Here is an example:
<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all
Allow from yourmrtghost.com
</Location>
This configuration allows the host yourmrtghost.com, where mrtg with mrtgutils is running, to query about the server information. Please, check the Apache webpage for more information: http://httpd.apache.org/docs/2.0/mod/mod_info.html
-- Luciano Bello <luciano@debian.org> Fri, 24 Sep 2010 13:07:16 -0300
|