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
50109
Files:
FileDescription
sftp.plsftp.pl
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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