1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

Merge pull request #1131 from kjetilho/varnish-update

Varnish update
This commit is contained in:
Steve Schnepp 2020-11-15 11:19:20 +01:00 committed by GitHub
commit 8a9bd01346
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1228 additions and 3 deletions

View file

@ -631,15 +631,15 @@ my %ASPECTS = (
}, },
'bans_tested' => { 'bans_tested' => {
'type' => 'DERIVE', 'type' => 'DERIVE',
'min' => '0' 'min' => '0'
}, },
'bans_obj_killed' => { 'bans_obj_killed' => {
'type' => 'DERIVE', 'type' => 'DERIVE',
'min' => '0' 'min' => '0'
}, },
'bans_tests_tested' => { 'bans_tests_tested' => {
'type' => 'DERIVE', 'type' => 'DERIVE',
'min' => '0' 'min' => '0'
}, },
'bans_dups' => { 'bans_dups' => {
'type' => 'GAUGE' 'type' => 'GAUGE'
@ -1031,6 +1031,9 @@ sub set_aspect
{ {
$self = $0; $self = $0;
$self =~ s/^.*\/varnish[0-9]?_//; $self =~ s/^.*\/varnish[0-9]?_//;
return if defined($ASPECTS{$self});
# remove instance name and try again
$self =~ s/^.*?_//;
if (!defined($ASPECTS{$self}) && @ARGV == 0) { if (!defined($ASPECTS{$self}) && @ARGV == 0) {
usage "No such aspect"; usage "No such aspect";
} }

1222
plugins/varnish/varnish5_ Executable file

File diff suppressed because it is too large Load diff