mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
asterisk: rename options for enabling/disabling graphs
With this "enable_" prefix, it will be clearer to users that those options are boolean flags.
This commit is contained in:
parent
5fff12db96
commit
b8eba4d75c
1 changed files with 13 additions and 13 deletions
|
@ -30,15 +30,15 @@ This plugin will produce multiple graphs showing:
|
|||
The following configuration parameters are used by this plugin
|
||||
|
||||
[asterisk]
|
||||
env.host - hostname to connect to
|
||||
env.port - port number to connect to
|
||||
env.username - username used for authentication
|
||||
env.secret - secret used for authentication
|
||||
env.channels - The channel types to look for
|
||||
env.codecsx - List of codec IDs (hexadecimal values)
|
||||
env.codecs - List of codecs names, matching codecsx order
|
||||
env.meetme - Set to 1 to enable graphs for the MeetMe application
|
||||
env.confbridge - Set to 1 to enable graphs for the ConfBridge application
|
||||
env.host - hostname to connect to
|
||||
env.port - port number to connect to
|
||||
env.username - username used for authentication
|
||||
env.secret - secret used for authentication
|
||||
env.channels - The channel types to look for
|
||||
env.codecsx - List of codec IDs (hexadecimal values)
|
||||
env.codecs - List of codecs names, matching codecsx order
|
||||
env.enable_meetme - Set to 1 to enable graphs for the MeetMe application
|
||||
env.enable_confbridge - Set to 1 to enable graphs for the ConfBridge application
|
||||
|
||||
The "username" and "secret" parameters are mandatory, and have no
|
||||
defaults.
|
||||
|
@ -51,8 +51,8 @@ defaults.
|
|||
env.channels Zap IAX2 SIP
|
||||
env.codecsx 0x2 0x4 0x8
|
||||
env.codecs gsm ulaw alaw
|
||||
env.meetme 0
|
||||
env.confbridge 1
|
||||
env.enable_meetme 0
|
||||
env.enable_confbridge 1
|
||||
|
||||
=head2 WILDCARD CONFIGURATION
|
||||
|
||||
|
@ -126,8 +126,8 @@ my @CHANNELS = exists $ENV{'channels'} ? split ' ',$ENV{'channels'} : qw(Zap IAX
|
|||
my @CODECS = exists $ENV{'codecs'} ? split ' ',$ENV{'codecs'} : qw(gsm ulaw alaw);
|
||||
my @CODECSX = exists $ENV{'codecsx'} ? split ' ',$ENV{'codecsx'} : qw(0x2 0x4 0x8);
|
||||
|
||||
my $meetme_enabled = $ENV{'meetme'} || '0';
|
||||
my $confbridge_enabled = $ENV{'confbridge'} || '1';
|
||||
my $meetme_enabled = $ENV{'enable_meetme'} || '0';
|
||||
my $confbridge_enabled = $ENV{'enable_confbridge'} || '1';
|
||||
|
||||
my $line, my $error;
|
||||
my $socket = new IO::Socket::INET(PeerAddr => $peeraddr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue