Projet

Général

Profil

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

root / plugins / varnish / README-varnish4.md @ 17f78427

Historique | Voir | Annoter | Télécharger (982 octets)

1
Munin Plugin for Varnish 4
2
==========================
3

    
4
Modified version of the plugin for Varnish 2/3 from the munin distribution
5
to adapt to the XML output of Varnish 4 varnishstat.
6

    
7
Installation
8
------------
9

    
10
- Copy `varnish4_` to the Munin plugins directory (`/usr/share/munin/plugins/`)
11
- Make `varnish4_` runnable (`chmod +x /usr/share/munin/plugins/varnish4_`)
12

    
13
Configuration
14
-------------
15

    
16
Run `munin-node-configure --shell` and link the aspects to monitor to
17
your actual plugins directory.
18

    
19
In your plugins.conf add
20
```
21
[varnish4_*]
22
     group varnish
23
     env.varnishstat varnishstat
24
     env.name
25
```
26
`group varnish` Since Varnish version 4.1, Varnish shared log utilities must be run in a context with *varnish* group membership.
27

    
28
`env.varnishstat` can be a full path to varnishstat if it's
29
not in the path already.
30

    
31
`env.name` is blank (undefined) by default and can be used to specify a -n
32
name argument to varnish if multiple instances are running on the same
33
server.