Remove unused "autoconf" handling from plugins without this capability

Some plugins contained code for handling "autoconf" (always returning
"no") but did not announce the respective capability via the magic
marker.
This commit is contained in:
Lars Kruse 2018-09-16 04:23:14 +02:00
parent 2ec4e4c1f7
commit 46e2de55de
10 changed files with 2 additions and 40 deletions

View File

@ -73,9 +73,6 @@ community = ENV['community'] || "public"
version = ENV['version'] == '1' ? :SNMPv1 : :SNMPv2c
case ARGV[0]
when "autoconf"
puts "no"
exit 1
when "snmpconf"
puts "require 1.3.6.1.4.1.3955.89.108.1.1.2.1. [0-9]"
puts "require 1.3.6.1.4.1.3955.89.108.1.1.5.1. [0-9]"

View File

@ -46,10 +46,6 @@
#%# family=auto
if ( $ARGV[0] and $ARGV[0] eq "autoconf" ) {
exit 1;
}
if ( $ARGV[0] and $ARGV[0] eq "config" ) {
my $category = $ENV{"category"} || "";
print "graph_title rTorrent memory usage\n";

View File

@ -44,10 +44,6 @@
#%# family=auto
if ( $ARGV[0] and $ARGV[0] eq "autoconf" ) {
exit 1;
}
if ( $ARGV[0] and $ARGV[0] eq "config" ) {
my $category = $ENV{"category"} || "";
print "graph_title rTorrent peer statistics\n";

View File

@ -56,10 +56,6 @@
#%# family=auto
if ( $ARGV[0] and $ARGV[0] eq "autoconf" ) {
exit 1;
}
if ( $ARGV[0] and $ARGV[0] eq "config" ) {
my $diff = $ENV{"diff"} || "";
my $category = $ENV{"category"} || "";

View File

@ -46,10 +46,6 @@
my @views = ( "default", "started", "stopped", "complete", "incomplete" );
if ( $ARGV[0] and $ARGV[0] eq "autoconf" ) {
exit 1;
}
if ( $ARGV[0] and $ARGV[0] eq "config" ) {
my $category = $ENV{"category"} || "";
print "graph_args --base 1000 -r --lower-limit 0\n";

View File

@ -44,10 +44,6 @@
#%# family=auto
if ( $ARGV[0] and $ARGV[0] eq "autoconf" ) {
exit 1;
}
if ( $ARGV[0] and $ARGV[0] eq "config" ) {
my $category = $ENV{"category"} || "";
print "graph_title rTorrent memory usage\n";

View File

@ -44,10 +44,6 @@
#%# family=auto
if ( $ARGV[0] and $ARGV[0] eq "autoconf" ) {
exit 1;
}
if ( $ARGV[0] and $ARGV[0] eq "config" ) {
my $category = $ENV{"category"} || "";
print "graph_title rTorrent peer statistics\n";

View File

@ -57,10 +57,6 @@
#%# family=auto
if ( $ARGV[0] and $ARGV[0] eq "autoconf" ) {
exit 1;
}
if ( $ARGV[0] and $ARGV[0] eq "config" ) {
my $diff = $ENV{"diff"} || "";
my $category = $ENV{"category"} || "";

View File

@ -45,10 +45,6 @@
my @views = ( "default", "started", "stopped", "complete", "incomplete" );
if ( $ARGV[0] and $ARGV[0] eq "autoconf" ) {
exit 1;
}
if ( $ARGV[0] and $ARGV[0] eq "config" ) {
my $category = $ENV{"category"} || "";
print "graph_args --base 1000 -r --lower-limit 0\n";

View File

@ -33,11 +33,8 @@
#
my $wualadir = $ENV{wualadir};
if ($ARGV[0] and $ARGV[0] eq "autoconf")
{
print "no\n";
exit 1;
} elsif ($ARGV[0] and $ARGV[0] eq "config")
if ($ARGV[0] and $ARGV[0] eq "config")
{
if($0 =~ /.*_uptime/) {
print "graph_args -l0 --vertical-label %\n";