mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-26 02:48:28 +00:00
need autoconf before config
This commit is contained in:
parent
dc30dc5c20
commit
92adac9dc2
1 changed files with 2 additions and 2 deletions
|
@ -88,7 +88,6 @@ init();
|
||||||
sub autoconf {
|
sub autoconf {
|
||||||
$0 =~ /bandwidth_(.+)*$/;
|
$0 =~ /bandwidth_(.+)*$/;
|
||||||
$interface = $1;
|
$interface = $1;
|
||||||
exit 2 unless defined $interface;
|
|
||||||
$history = "/var/lib/munin/plugin-state/bandwidth_$interface.state";
|
$history = "/var/lib/munin/plugin-state/bandwidth_$interface.state";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -281,8 +280,9 @@ sub munin_output {
|
||||||
}
|
}
|
||||||
|
|
||||||
sub init {
|
sub init {
|
||||||
arg();
|
|
||||||
autoconf();
|
autoconf();
|
||||||
|
arg();
|
||||||
|
exit 2 unless defined $interface;
|
||||||
retrieve_history();
|
retrieve_history();
|
||||||
read_traffic();
|
read_traffic();
|
||||||
bit32or64();
|
bit32or64();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue