Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

SFTP Test

Rating
0 votes
Favoured:
0
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
Owner
Hits
52099
Files:
FileDescription
sftp.plsftp.pl
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Perl script that uploads a file on a SFTP server and extract metrics
This script doesn't rely on any other external application as psftp to connect.
The script tries to upload and download a file to the Server and returns the time spent on the test

It's need to provide as a parameter the path of the configuration file

It defines all the parameters for the script
host: name of the SFTP host
port: port of the SFTP Server
user: user to connect to the SFTP Server
password: password to connect to the SFTP Server
filepath: path of the test file that will be uploaded/downloaded to the SFTP Server

warning: maximum time in seconds to complete the test before raise a WARNING alert
critical: maximum time in seconds to complete the test before raise a CRITICAL alert




127.0.0.1
22
test
test
C:testSFTPfile.txt
4
4