diff options
author | Sven Nierlein <Sven.Nierlein@consol.de> | 2013-09-17 09:34:06 (GMT) |
---|---|---|
committer | Sven Nierlein <sven@consol.de> | 2013-09-17 09:34:06 (GMT) |
commit | b83904c528d98a6eaed570cf82e0595107bab53e (patch) | |
tree | 58b2e75e8f22107ec783bcd7e2a389e40ff1b6cd /plugins | |
parent | ddff48fb2525c507bc0b457bb0832079b173fade (diff) | |
download | monitoring-plugins-b83904c528d98a6eaed570cf82e0595107bab53e.tar.gz |
check_by_ssh: tests expand key and config path
some systems do not expand the path automatically.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/t/check_by_ssh.t | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/t/check_by_ssh.t b/plugins/t/check_by_ssh.t index 8d1b190..4797390 100644 --- a/plugins/t/check_by_ssh.t +++ b/plugins/t/check_by_ssh.t | |||
@@ -44,6 +44,10 @@ for (@responce) { | |||
44 | 44 | ||
45 | my $result; | 45 | my $result; |
46 | 46 | ||
47 | # expand paths | ||
48 | $ssh_key = glob($ssh_key) if $ssh_key; | ||
49 | $ssh_conf = glob($ssh_conf) if $ssh_conf; | ||
50 | |||
47 | ## Single active checks | 51 | ## Single active checks |
48 | 52 | ||
49 | for (my $i=0; $i<4; $i++) { | 53 | for (my $i=0; $i<4; $i++) { |