root / plugins / apache / apache_byprojects @ 8589c6df
| Nom | Taille | Révision | Âge | Auteur | Commentaire |
|---|---|---|---|---|---|
| README.md | 2,27 ko | 5271859f | presque 13 ans | Danny Fullerton | Switch to strict mode. Fix hash/array syntax ca... |
| byprojects_access | 2,76 ko | b19b3a81 | presque 9 ans | dipohl | Category Tree: Reduce number of categories |
| byprojects_bandwidth | 3,09 ko | b19b3a81 | presque 9 ans | dipohl | Category Tree: Reduce number of categories |
| byprojects_inout_bandwidth | 3,32 ko | b19b3a81 | presque 9 ans | dipohl | Category Tree: Reduce number of categories |
Dernières révisions
README
The 'byprojects' family
Those plugins are used to monitor different projects or vhost (i.e. either different log files or using regular expression as filters) on the same web server.
muninbyprojectsaccess
Count the number of hits per projects/vhost.

muninbyprojectsbandwidth
Count the total bandwidth used by each projects/vhost. Logtail is required.

muninbyprojectsinout_bandwidth
Counts the in/out bandwidth used by each projects/vhost. Logtail is required.

Installation
The setup is pretty straight forward. First you need to configure the plugin:
Define the file which will be used by logtail to identify it's position in the log and the path to logtail:
$statepath = '/usr/local/var/munin/plugin-state'; # directory where logtail will save the state
$logtail = '/usr/local/bin/logtail';
Multiple logs can be used for the same project/vhost and a regular expression (regex) can be used as a filter:
my %logs = (
'prod' => [
{'path' => '/home/prod/log/access.log'}
],
'dev' => [
{'path' => '/var/log/httpd/ssl-dev-access.log'},
{'path' => '/home/dev/log/access.log'}
],
'test' => [
{'path' => '/var/log/access.log', 'regex' => '"[A-Z]+ /test/'},
{'path' => '/home/test/log/access.log'}
],
);
In the previous example the prod project graph will be using everything in /home/prod/log/access.log. The test project will be using eveything in /home/test/log/access.log and stuff that match '"[A-Z] /test/' in /var/log/httpd/access.log (e.g. "GET /test/).
Then link the file just as any other plugins.
ln -s /usr/local/sbin/<plugin> /usr/local/etc/munin/plugins/<plugin>
Formats disponibles : Atom
