A reactive server monitoring system
This simple project is a Node.js centralised server monitoring system written in Typescript, with a distributed reactive mechanism. All communication among nodes is obtained via MQTT. User alerting uses a Telegram BOT.
Installation is the same on the monitoring server and on the monitored ones.
{
"clientId": "client",
"serverId": "server",
"serverListPath": "/etc/server-list.json",
"serviceListPath": "/etc/service-list.json",
"telegramToken": "<your token here>",
"telegramChatId": -1,
"mqttUrl": "mqtt://test.mosquitto.org:1883",
"mqttBaseTopic": "server-monitor"
}
Satellites need a serviceListPath, defined in the monitor-config.json file. The structure of the service list is a JSON array with the following structure:
[
{
"id": "Google",
"url": "https://www.google.it/",
"interval": 1,
"restartCommand": "initctl restart <service name>"
}
]
On the monitoring server:
sudo remo-server
On each monitored server:
sudo remo-satellite
Content type
Image
Digest
Size
35.9 MB
Last updated
over 8 years ago
docker pull fabiopav/remo