I have downloaded and installed a SFTP plugin which checks SFTP connections. The plugin requires the information: host, port, user, password, and filepath to be entered into the Perl Script.
The password provided I was provided has a "#" within it. Since i need to enter the required information within the Perl Script, will this password work? If so, how do I enter this password so that the "#" is detected as part of the password.
SFTP Connection
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: SFTP Connection
Please attach the plugin here, along with the output when you run that plugin with the password you mentioned, you can sanitize the password, but show us the output it gives you, and the full command you ran.
Re: SFTP Connection
The plugin is: http://exchange.nagios.org/directory/Pl ... st/details
I am unable to get the plugin to run from my server as the error "No such file or directory" is received when running ./sftp.pl ...
I am unable to get the plugin to run from my server as the error "No such file or directory" is received when running ./sftp.pl ...
Re: SFTP Connection
Are you running that from the directory in which the plugin is located?
Former Nagios employee
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: SFTP Connection
Try enclosing the password in "double quotes".JCheever wrote:how do I enter this password so that the "#" is detected as part of the password.
Code: Select all
"#Str0ng P@ssw0rd"As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: SFTP Connection
I am running the plugin from /usr/local/nagios/libexec
Re: SFTP Connection
Can you post a screenshot of your terminal session? I want to see the actual output of the following:
Bear in mind you will also need some perl modules installed to run the plugin, specifically:
XML::Simple;
Net::SFTP::Foreign;
Net::SSH2;
File::Basename;
Code: Select all
pwd
ls /usr/local/nagios/libexec/sftp.pl
/usr/local/nagios/libexec/sftp.pl
XML::Simple;
Net::SFTP::Foreign;
Net::SSH2;
File::Basename;
Former Nagios employee