mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Plugin multibandwidth: explicit handling of configuration variables
This commit is contained in:
parent
580a39ed41
commit
5fb2e02eab
1 changed files with 16 additions and 6 deletions
|
@ -20,7 +20,8 @@ You can install bing by using (Ubuntu/Debian): apt-get install bing
|
||||||
|
|
||||||
=head1 CONFIGURATION
|
=head1 CONFIGURATION
|
||||||
|
|
||||||
The following is the default configuration
|
The following example configuration shows all settings. Only "hosts" is required for
|
||||||
|
minimal configuration.
|
||||||
|
|
||||||
[multibandwidth]
|
[multibandwidth]
|
||||||
user root
|
user root
|
||||||
|
@ -30,19 +31,22 @@ env.small_packet_size 44
|
||||||
env.big_packet_size 108
|
env.big_packet_size 108
|
||||||
env.max_valid_bps 15728640
|
env.max_valid_bps 15728640
|
||||||
|
|
||||||
- env.hosts explanation: hostname or IP of the hosts to calculate the bandwidth.
|
- env.hosts: space separated list of hostnames or IPs of the hosts to calculate the bandwidth.
|
||||||
|
This setting is required.
|
||||||
|
|
||||||
- env.samples explanation: Reset stats after sending samples ECHO_REQUEST packets.
|
- env.samples: Reset stats after sending this number of ECHO_REQUEST packets.
|
||||||
|
Defaults to 15 samples.
|
||||||
|
|
||||||
- env.small_packet_size explanation: Specifies the number of data bytes to be sent in the small
|
- env.small_packet_size: Specifies the number of data bytes to be sent in the small
|
||||||
packets. The default and minimum value is 44.
|
packets. The default and minimum value is 44.
|
||||||
|
|
||||||
- env.big_packet_size explanation: Specifies the number of data bytes to be sent in the big
|
- env.big_packet_size: Specifies the number of data bytes to be sent in the big
|
||||||
packets. The default is 108. The size should be chosen so that big packet roundtrip times
|
packets. The default is 108. The size should be chosen so that big packet roundtrip times
|
||||||
are long enough to be accurately measured.
|
are long enough to be accurately measured.
|
||||||
|
|
||||||
- env.max_valid_bps explanation: bing have some random spikes. This variable is used to indicate
|
- env.max_valid_bps: bing have some random spikes. This variable is used to indicate
|
||||||
the maximum value of mbps that can be recorded (in bps).
|
the maximum value of mbps that can be recorded (in bps).
|
||||||
|
Defaults to the empty string (no validity check).
|
||||||
|
|
||||||
=head1 MAGIC MARKERS
|
=head1 MAGIC MARKERS
|
||||||
|
|
||||||
|
@ -64,6 +68,12 @@ GPLv2
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
|
|
||||||
|
hosts=${hosts:-}
|
||||||
|
samples=${samples:-15}
|
||||||
|
small_packet_size=${small_packet_size:-44}
|
||||||
|
big_packet_size=${big_packet_size:-108}
|
||||||
|
max_valid_bps=${max_valid_bps:-15728640}
|
||||||
|
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
config)
|
config)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue