A simple network services monitoring system written in python.
Monitor icons created by juicy_fish - Flaticon
- Clone this project
$ git clone https://github.com/SiriusKoan/remote-monintor.git
-
Make sure Docker is installed
-
Update
backend/app/monitor/hosts.py
with your IP addresses and functions. -
Run it
$ docker-compose up -d
- Check whether it works on 80 port.
You can also create your monitoring functions.
All the functions are callable class, and they inherit from Base
class.
Please add them in backend/app/monitor/funcs.py
, and make sure
- The class has
job
method, which is the main monitoring function - The class has proper
__init__
The application also provides CLI tool.
Before using it, you have to install necessary dependencies.
$ pip install -r cli/requirements.txt
And then you can run it.
$ python3 cli/main.py
It will update the results of the monitoring functions every second.
But because the results of text functions may be too long, the interface will NOT show text functions.