A real-time service status monitoring tool for Linux, built with Node.js and Socket.IO. This application enables users to check the status of system services remotely via WebSockets.
- Real-time status monitoring for system services.
- Asynchronous processing for efficient status retrieval.
- WebSocket-based communication using Socket.IO.
- Install dependencies:
npm install
- Start the Socket.IO server:
node servicewatcher.js
- Run the test client:
node test.js
To monitor additional services, update the services.json
file in the following format:
[
{
"name": "Redis",
"service": "redis"
},
{
"name": "Apache Server",
"service": "apache2"
}
]
name:
A human-readable name for the service.service:
The actual service name used in thesystemctl
command.
Save the file and restart the script.