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]:
APACHE hits
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:
SetHandler server-info
Order deny,allow
Deny from all
Allow from yourmrtghost.com
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 Fri, 24 Sep 2010 13:07:16 -0300