2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Merge pull request #670 from valurhrafn/master

Varnish 4.1 update
This commit is contained in:
Stig Sandbeck Mathisen 2016-03-03 10:43:45 +01:00
commit 0ecf76cda6
2 changed files with 10 additions and 5 deletions

View File

@ -19,9 +19,12 @@ your actual plugins directory.
In your plugins.conf add
```
[varnish4_*]
group varnish
env.varnishstat varnishstat
env.name
```
`group varnish` Since Varnish version 4.1, Varnish shared log utilities must be run in a context with *varnish* group membership.
`env.varnishstat` can be a full path to varnishstat if it's
not in the path already.

View File

@ -34,6 +34,7 @@ The plugin needs to be able to execute varnishstat.
The configuration section shows the defaults
[varnish4_*]
group varnish
env.varnishstat varnishstat
env.name
@ -630,15 +631,15 @@ my %ASPECTS = (
},
'bans_tested' => {
'type' => 'DERIVE',
'min' => '0'
'min' => '0'
},
'bans_obj_killed' => {
'type' => 'DERIVE',
'min' => '0'
'min' => '0'
},
'bans_tests_tested' => {
'type' => 'DERIVE',
'min' => '0'
'min' => '0'
},
'bans_dups' => {
'type' => 'GAUGE'
@ -750,6 +751,7 @@ my %ASPECTS = (
},
'sess_pipe_overflow' => {
'type' => 'DERIVE'
}
}
},
@ -778,9 +780,9 @@ my %ASPECTS = (
sub translate_type
{
my $d = $_[0];
if ($d eq "i") {
if ($d eq "i" or $d eq "g") {
$d = "GAUGE";
} elsif ($d eq "a") {
} elsif ($d eq "a" or $d eq "c") {
$d = "DERIVE";
}
return $d;