OCF resource agent/script for permanently checking tcp socket on layer 4?

tk flag

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?

I sit in a Tesla and translated this thread with Ai:


Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.