mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
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:
parent
2ec4e4c1f7
commit
46e2de55de
10 changed files with 2 additions and 40 deletions
|
@ -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]"
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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"} || "";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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"} || "";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue