Coder Social home page Coder Social logo

napsty / check_sftp Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 22 KB

Monitoring plugin to check a remote SFTP server

License: GNU General Public License v3.0

Shell 100.00%
monitoring monitoring-plugins nagios-plugin sftp monitoring-plugin nagios-plugins

check_sftp's Introduction

check_sftp

This is a monitoring plugin written in Bash to check SFTP servers. The plugin supports both key and password authentication. Both open and encrypted (by passphrase) private keys are supported. The plugin will attempt to establish a connection to a specified SFTP server -H. After a successful connection, the plugin will upload and then download a temporary file into a specified remote directory -d.

This is the public repository for development.

Please visit the link below for the latest release and documentation:

https://www.claudiokuenzler.com/monitoring-plugins/check_sftp.php

check_sftp's People

Contributors

napsty avatar

Stargazers

 avatar

Watchers

 avatar  avatar

check_sftp's Issues

Add support for protected/encrypted private key (passphrase)

When using an encrypted private key protected with a passphrase, check_sftp.sh doesn't work yet.

$ /usr/lib/nagios/plugins/check_sftp.sh -H sftpserver.example.com -u sftpuser -i ~/.ssh/private_key -o "-o StrictHostKeyChecking=no "
CHECK_SFTP CRITICAL: Unable to establish a connection to SFTP server with given credentials

By manually launching the sftp command shows the connection could not be established:

$ sftp -P 22 -i ~/.ssh/private_key -o StrictHostKeyChecking=no -b - [email protected]
[email protected]: Permission denied (publickey).

Without batch mode shows the key requests the passphrase:

$ sftp -P 22 -i ~/.ssh/private_key -o StrictHostKeyChecking=no [email protected]
Enter passphrase for key '~/.ssh/private_key': 

This is currently not covered.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.