This example is extracted from a long-running installation. The purpose is to have a simple monitoring of several servers at a rather primitive level. Just slightly more intelligent than a raw PING. But still easy to integrate. It avoids the overkill of information you are often confronted with while you are just interested in the number of active process or similar basic figures. The example shows a basic skeleton that might be easy filled by you real needs.
It consists of 3 sections:
Operation is simple:
the server starts and listens for requests.
from client various inquiries go to server and get replied.
The whole example is kept very simple and it is your task to add what you require and to adapt the client section to your needs and into your environment.