mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Merge pull request #116 from C-Duv/upstreamFixes
If no friendly name, will automatically use IP/FQDN
This commit is contained in:
commit
0df18b5314
@ -26,7 +26,8 @@
|
|||||||
# ping_args2 - Arguments after the host name (required for Solaris)
|
# ping_args2 - Arguments after the host name (required for Solaris)
|
||||||
# ping - Ping program to use
|
# ping - Ping program to use
|
||||||
# hosts - List of comma-separated hosts to ping (IP address or FQDN)
|
# hosts - List of comma-separated hosts to ping (IP address or FQDN)
|
||||||
# names - Friendly display name of each host given in the "hosts" parameter (comma-separated list)
|
# names - Friendly display name of each host given in the "hosts" parameter (comma-separated list).
|
||||||
|
# If not set, "hosts" elements will be used
|
||||||
#
|
#
|
||||||
# Arguments for Solaris:
|
# Arguments for Solaris:
|
||||||
# ping_args -s
|
# ping_args -s
|
||||||
@ -51,7 +52,7 @@
|
|||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
my @hosts = exists $ENV{hosts} ? split(/,/, $ENV{hosts}) : 'www.google.com.au';
|
my @hosts = exists $ENV{hosts} ? split(/,/, $ENV{hosts}) : 'www.google.com.au';
|
||||||
my @names = exists $ENV{names} ? split(/,/, $ENV{names}) : 'Google Australia';
|
my @names = exists $ENV{names} ? split(/,/, $ENV{names}) : @hosts;
|
||||||
my $ping_cmd = exists $ENV{ping} ? $ENV{ping} : 'ping';
|
my $ping_cmd = exists $ENV{ping} ? $ENV{ping} : 'ping';
|
||||||
my $ping_args = exists $ENV{ping_args} ? $ENV{ping_args} : '-c 2 -w 1';
|
my $ping_args = exists $ENV{ping_args} ? $ENV{ping_args} : '-c 2 -w 1';
|
||||||
my $ping_args2 = exists $ENV{ping_args2} ? $ENV{ping_args2} : '';
|
my $ping_args2 = exists $ENV{ping_args2} ? $ENV{ping_args2} : '';
|
||||||
|
Loading…
Reference in New Issue
Block a user