X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=contrib%2Fcollection.cgi;fp=contrib%2Fcollection.cgi;h=100c0c73b2a469d37081b64200bd3e3375ba43e2;hb=3bd6fcdfd20002eee1f1803460728449c0c98f86;hp=cbdb76e846df35eed803e7de3940c03d00b98bdd;hpb=c253952ba26a4123aade567d590ff206f84ec82f;p=collectd.git diff --git a/contrib/collection.cgi b/contrib/collection.cgi index cbdb76e8..100c0c73 100755 --- a/contrib/collection.cgi +++ b/contrib/collection.cgi @@ -13,6 +13,7 @@ use Data::Dumper (); our $Config = "/etc/collection.conf"; our @DataDirs = (); +our @DontShowTypes = (); our $LibDir; our $ValidTimespan = @@ -78,6 +79,10 @@ sub read_config $value =~ s#/*$##; $LibDir = $value; } + elsif ($key eq 'dontshowtype') + { + push (@DontShowTypes, $value); + } else { print STDERR "Unknown key: $key\n"; @@ -239,6 +244,7 @@ sub _find_types my $name = "$_"; $name =~ s/\.rrd$//i; my ($type, $instance) = split (m/-/, $name, 2); + if (grep { $_ eq $type } @DontShowTypes) { next; } $types{$type} = [] if (!$types{$type}); push (@{$types{$type}}, $instance) if (defined ($instance)); }