aboutsummaryrefslogtreecommitdiff
path: root/plugins/t
diff options
context:
space:
mode:
authorGravatar Sven Nierlein <Sven.Nierlein@consol.de> 2013-09-17 11:34:06 +0200
committerGravatar Sven Nierlein <sven@consol.de> 2013-09-17 11:34:06 +0200
commitb83904c528d98a6eaed570cf82e0595107bab53e (patch)
tree58b2e75e8f22107ec783bcd7e2a389e40ff1b6cd /plugins/t
parentddff48fb2525c507bc0b457bb0832079b173fade (diff)
downloadmonitoring-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/t')
-rw-r--r--plugins/t/check_by_ssh.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/t/check_by_ssh.t b/plugins/t/check_by_ssh.t
index 8d1b1904..4797390d 100644
--- a/plugins/t/check_by_ssh.t
+++ b/plugins/t/check_by_ssh.t
@@ -44,6 +44,10 @@ for (@responce) {
my $result;
+# expand paths
+$ssh_key = glob($ssh_key) if $ssh_key;
+$ssh_conf = glob($ssh_conf) if $ssh_conf;
+
## Single active checks
for (my $i=0; $i<4; $i++) {