Skip to content

Commit

Permalink
Make --plugins option work as planned.
Browse files Browse the repository at this point in the history
  • Loading branch information
jomono committed Sep 4, 2004
1 parent 700252b commit 1443362
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion node/munin-node-configure-snmp.in
Expand Up @@ -29,7 +29,8 @@ my $do_error = 0;

my $newer = undef;

my @plugins = ("if", "if_err", "fc_if", "fc_if_err", "df", "processes", "users", "load");
my @dplugins = ("if", "if_err", "fc_if", "fc_if_err", "df", "processes", "users", "load");
my @plugins = ();

my %plugconf = ();
my %hostconf = ();
Expand All @@ -47,6 +48,12 @@ $do_error = 1 unless GetOptions (
"newer=s" => \$newer
);

if (! @plugins)
{
@plugins = @dplugins;
}
@plugins = split (/,/, join (',', @plugins));

if ($do_error or $do_usage or !@ARGV)
{
print "Usage: $0 [options] <netmask> [...]
Expand Down

0 comments on commit 1443362

Please sign in to comment.