cabot
cabot copied to clipboard
Can I monitor SSH / FTP connections with CABOT?
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
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
That use-case sounds similar to #545.
I started some bare-bones documentation on writing check plugins at http://cabotapp.com/dev/writing-check-plugins.html
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).
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