Projet

Général

Profil

Paste
Télécharger au format
Statistiques
| Branche: | Révision:

root / plugins / apache / apache_byprojects @ 17f78427

Nom Taille Révision Âge Auteur Commentaire
README.md 2,08 ko 17f78427 plus de 7 ans Lars Kruse Whitespace cleanup * remove trailing whitespac...
byprojects_access 2,74 ko 17f78427 plus de 7 ans Lars Kruse Whitespace cleanup * remove trailing whitespac...
byprojects_bandwidth 3,07 ko 17f78427 plus de 7 ans Lars Kruse Whitespace cleanup * remove trailing whitespac...
byprojects_inout_bandwidth 3,31 ko 17f78427 plus de 7 ans Lars Kruse Whitespace cleanup * remove trailing whitespac...

Dernières révisions

# Date Auteur Commentaire
17f78427 2018-08-01 20:33 Lars Kruse

Whitespace cleanup

  • remove trailing whitespace
  • remove empty lines at the end of files
7c62b9b6 2018-03-08 18:18 Lars Kruse

added executable permission for multiple plugins

4b2fcbf8 2017-04-18 17:32 Lars Kruse

replace hard-coded paths (e.g. '/var/lib/munin/plugin-state') with '$MUNIN_PLUGSTATE'

see http://guide.munin-monitoring.org/en/latest/plugin/env.html

b19b3a81 2017-02-21 12:24 dipohl

Category Tree: Reduce number of categories

a2bedd79 2014-10-04 14:31 Stig Sandbeck Mathisen

Fix syntax error in string concatenation

760b07cd 2013-12-04 06:26 Steve Schnepp

Merge pull request #407 from northox/glob_support

Add file expansion (glob) and switch to MIT license

cf03f9b0 2013-12-03 21:23 Danny Fullerton

Add file expansion (glob) and switch to MIT license

b0f3e434 2013-04-02 05:25 ToM

[FIX] apache_byprojects/byprojects_access: missing \n.

5271859f 2012-12-12 22:56 Danny Fullerton

Switch to strict mode.
Fix hash/array syntax causing regex-based log to fail.

614c22df 2012-04-17 17:49 Danny Fullerton

Add ithe byprojects family (vhost AND regex monitoring) to apache and nginx.

Voir les 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. byproject_access

muninbyprojectsbandwidth

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

muninbyprojectsinout_bandwidth

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

Installation

The setup is pretty straight forward. First you need to configure the plugin:

Define the path to logtail:

  $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