cabot icon indicating copy to clipboard operation
cabot copied to clipboard

Can I monitor SSH / FTP connections with CABOT?

Open chinovelasco opened this issue 7 years ago • 5 comments

Recently discovered CABOT and was wondering if I can monitor either SSH or FTP connections with it. PS: I am currently using Nodeping for this

chinovelasco avatar Sep 27 '17 11:09 chinovelasco

I don't think there's a plugin for that yet but you can write your own - there's a skeleton available as a base to create such a plugin and you can see an example that we use in production: https://github.com/cabotapp/cabot-check-cloudwatch

dbuxton avatar Sep 27 '17 12:09 dbuxton

That use-case sounds similar to #545.

JeanFred avatar Sep 27 '17 13:09 JeanFred

I started some bare-bones documentation on writing check plugins at http://cabotapp.com/dev/writing-check-plugins.html

JeanFred avatar Oct 03 '17 09:10 JeanFred

I suggested an improvement to the network checker https://github.com/ralienpp/cabot-check-network/blob/master/cabot_check_network/models.py

It would allow you to test the FTP server by sending a command and checking if the server's response matches your expected reply. For example, if your FTP server replies with something that begins with 2 you know it responded with a success code, thus the check is OK.

In the case of SSH, you don't need to send anything, the server will respond right away by sending a string like SSH-2.0-OpenSSH_6.0p1 Debian-4+deb7u2 - so you can rely on that to determine that it is alive and really acting as an SSH server should (vs merely accepting your TCP connection).

ralienpp avatar Oct 03 '17 11:10 ralienpp

No love for https://github.com/arachnys/cabot/issues/564 ? This seems like potentially another special case of a more general ansible check. Edit: What port checks look like in ansible is mentioned here

matt-pilgrim avatar Oct 03 '17 21:10 matt-pilgrim