diff options
author | Matthew Kent <mattkent@users.sourceforge.net> | 2004-11-25 05:06:25 +0000 |
---|---|---|
committer | Matthew Kent <mattkent@users.sourceforge.net> | 2004-11-25 05:06:25 +0000 |
commit | 9fb440a991c532c7df026e7f83c5d0150ed3b5a9 (patch) | |
tree | 1e626217cf8665a90e7ff289d76f48958e56ea14 /test.pl.in | |
parent | aac4f4539b0cf7a1f285b3c271ba7f253f9889a8 (diff) | |
download | monitoring-plugins-9fb440a991c532c7df026e7f83c5d0150ed3b5a9.tar.gz |
Updating test harness
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@942 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'test.pl.in')
-rwxr-xr-x | test.pl.in | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -14,14 +14,16 @@ require Exporter; | |||
14 | } | 14 | } |
15 | 15 | ||
16 | use Helper; | 16 | use Helper; |
17 | my ($tstdir,$spath,$hostname,$mailhost,$noserver,$nullhost,$quickcheck); | 17 | my ($tstdir,$spath,$hostname,$httphost,$mailhost,$dnshost,$noserver,$nullhost,$quickcheck); |
18 | 18 | ||
19 | use Getopt::Long; | 19 | use Getopt::Long; |
20 | GetOptions | 20 | GetOptions |
21 | ("tstdir:s"=>\$tstdir, | 21 | ("tstdir:s"=>\$tstdir, |
22 | "spath:s"=>\$spath, | 22 | "spath:s"=>\$spath, |
23 | "hostname:s"=>\$hostname, | 23 | "hostname:s"=>\$hostname, |
24 | "httpname:s"=>\$httphost, | ||
24 | "mailhost:s"=>\$mailhost, | 25 | "mailhost:s"=>\$mailhost, |
26 | "dnshost:s"=>\$dnshost, | ||
25 | "noserver:s"=>\$noserver, | 27 | "noserver:s"=>\$noserver, |
26 | "nullhost:s"=>\$nullhost, | 28 | "nullhost:s"=>\$nullhost, |
27 | "quickcheck"=>\$quickcheck); | 29 | "quickcheck"=>\$quickcheck); |
@@ -30,8 +32,10 @@ $spath = "." unless ($spath); | |||
30 | 32 | ||
31 | unless ($quickcheck) { | 33 | unless ($quickcheck) { |
32 | 34 | ||
33 | $hostname = get_option("hostname","host for FTP/HTTP/UDP tests") unless ($hostname); | 35 | $hostname = get_option("hostname","host for FTP/UDP tests") unless ($hostname); |
36 | $httphost = get_option("httphost","host for HTTP tests") unless ($httphost); | ||
34 | $mailhost = get_option("mailhost","host for SMTP/IMAP/POP tests") unless ($mailhost); | 37 | $mailhost = get_option("mailhost","host for SMTP/IMAP/POP tests") unless ($mailhost); |
38 | $dnshost = get_option("dnshost","hostname to lookup for DNS tests") unless ($dnshost); | ||
35 | $noserver = get_option("noserver","host that rejects above services") unless ($noserver); | 39 | $noserver = get_option("noserver","host that rejects above services") unless ($noserver); |
36 | # This machine should not be locatable from your network. Use IP | 40 | # This machine should not be locatable from your network. Use IP |
37 | # private addresses like 10.x.x.x and pick one that does not exist | 41 | # private addresses like 10.x.x.x and pick one that does not exist |