[nagiosplug] check_by_ssh: tests expand key and config path

Nagios Plugin Development nagios-plugins at users.sourceforge.net
Tue Sep 17 23:40:20 CEST 2013


    Module: nagiosplug
    Branch: master
    Commit: b83904c528d98a6eaed570cf82e0595107bab53e
    Author: Sven Nierlein <Sven.Nierlein at consol.de>
 Committer: Sven Nierlein <sven at consol.de>
      Date: Tue Sep 17 11:34:06 2013 +0200
       URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=b83904c

check_by_ssh: tests expand key and config path

some systems do not expand the path automatically.

---

 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) {
 
 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++) {





More information about the Commits mailing list