2014-07-10 16:04:24 +02:00
|
|
|
Munin Plugin for Varnish 4
|
|
|
|
==========================
|
|
|
|
|
|
|
|
Modified version of the plugin for Varnish 2/3 from the munin distribution
|
|
|
|
to adapt to the XML output of Varnish 4 varnishstat.
|
|
|
|
|
|
|
|
Installation
|
|
|
|
------------
|
|
|
|
|
2015-02-22 14:40:21 +01:00
|
|
|
- Copy `varnish4_` to the Munin plugins directory (`/usr/share/munin/plugins/`)
|
2015-01-08 18:45:56 +01:00
|
|
|
- Make `varnish4_` runnable (`chmod +x /usr/share/munin/plugins/varnish4_`)
|
2014-07-10 16:04:24 +02:00
|
|
|
|
|
|
|
Configuration
|
|
|
|
-------------
|
|
|
|
|
2015-02-22 14:40:21 +01:00
|
|
|
Run `munin-node-configure --shell` and link the aspects to monitor to
|
2014-07-10 16:04:24 +02:00
|
|
|
your actual plugins directory.
|
|
|
|
|
|
|
|
In your plugins.conf add
|
|
|
|
```
|
|
|
|
[varnish4_*]
|
2015-11-09 11:24:04 +01:00
|
|
|
group varnish
|
2014-07-10 16:04:24 +02:00
|
|
|
env.varnishstat varnishstat
|
|
|
|
env.name
|
|
|
|
```
|
2015-11-09 11:24:04 +01:00
|
|
|
`group varnish` Since Varnish version 4.1, Varnish shared log utilities must be run in a context with *varnish* group membership.
|
|
|
|
|
2015-02-22 14:40:21 +01:00
|
|
|
`env.varnishstat` can be a full path to varnishstat if it's
|
2014-07-10 16:04:24 +02:00
|
|
|
not in the path already.
|
|
|
|
|
2015-02-22 14:40:21 +01:00
|
|
|
`env.name` is blank (undefined) by default and can be used to specify a -n
|
2014-07-10 16:04:24 +02:00
|
|
|
name argument to varnish if multiple instances are running on the same
|
|
|
|
server.
|