mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
If no friendly name (no "names" parameter), will automatically use
IP/FQDN.
This commit is contained in:
parent
65c824bb9a
commit
3407617b07
@ -26,7 +26,8 @@
|
||||
# ping_args2 - Arguments after the host name (required for Solaris)
|
||||
# ping - Ping program to use
|
||||
# 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:
|
||||
# ping_args -s
|
||||
@ -51,7 +52,7 @@
|
||||
use strict;
|
||||
|
||||
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_args = exists $ENV{ping_args} ? $ENV{ping_args} : '-c 2 -w 1';
|
||||
my $ping_args2 = exists $ENV{ping_args2} ? $ENV{ping_args2} : '';
|
||||
|
Loading…
Reference in New Issue
Block a user