How to utilize the OCF, Pacemaker and Corosync to permanently check the availability of a tcp socket?
For the handling of certain services from within Pacemaker/Corosync I would like to constantly monitor a remote tcp socket. Similar to a healthcheck as haproxy and similar software can do it.
So far, I crawled through several OCF resource agent listings and directories but cannot find anything fitting. Whats the proper and clean way to achieve the task above?