check-linux-by-ssh icon indicating copy to clipboard operation
check-linux-by-ssh copied to clipboard

Add SSH class

Open AnatomicJC opened this issue 8 years ago • 0 comments

As discussed with you by mail, here is a pull request. I added a SSH class who allows you to use native SSH in replacement of python Paramiko module.

It is still a work in progress. For now, all params like user, port, etc. must be managed in ssh config file.

If you can reach a host with "ssh host", you will be able to use any check like this:

python2 check_cpu_stats_by_ssh.py -H host -a ssh

Never forget you have to populate a ~/.ssh/config file with at least SSH multiplexing params: ControlMaster auto ControlPath ~/.ssh/sockets/%r@%h:%p ControlPersist 600

http://blog.scottlowe.org/2015/12/11/using-ssh-multiplexing/

AnatomicJC avatar Dec 04 '16 20:12 AnatomicJC