SFTP Connection

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
JCheever
Posts: 10
Joined: Wed Apr 30, 2014 2:50 am

SFTP Connection

Post by JCheever »

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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: SFTP Connection

Post by slansing »

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.
JCheever
Posts: 10
Joined: Wed Apr 30, 2014 2:50 am

Re: SFTP Connection

Post by JCheever »

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 ...
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: SFTP Connection

Post by tmcdonald »

Are you running that from the directory in which the plugin is located?
Former Nagios employee
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: SFTP Connection

Post by Box293 »

JCheever wrote:how do I enter this password so that the "#" is detected as part of the password.
Try enclosing the password in "double quotes".

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.
JCheever
Posts: 10
Joined: Wed Apr 30, 2014 2:50 am

Re: SFTP Connection

Post by JCheever »

I am running the plugin from /usr/local/nagios/libexec
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: SFTP Connection

Post by tmcdonald »

Can you post a screenshot of your terminal session? I want to see the actual output of the following:

Code: Select all

pwd
ls /usr/local/nagios/libexec/sftp.pl
/usr/local/nagios/libexec/sftp.pl
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;
Former Nagios employee
Locked