Article
· May 29, 2019 1m read

Simple Remote Server Control

This example is extracted from a long-running installation.
The purpose is to have 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 processes or similar basic figures.
The example shows a basic skeleton that might be easily filled by your real needs.

It consists of 3 sections:

  • the data section to hold server access data
  • the server section to run unattended at the server you want to monitor
  • the client section that is just for demonstration and should be integrated by your code into your environment.

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 for your environment.

GitHub

Discussion (0)1
Log in or sign up to continue