Skip to content

A lightweight network services monitoring system written in python.

License

Notifications You must be signed in to change notification settings

SiriusKoan/remote-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

remote-monintor

.github/workflows/main.yml

A simple network services monitoring system written in python.

Credits

Monitor icons created by juicy_fish - Flaticon

Setup

  1. Clone this project
$ git clone https://github.com/SiriusKoan/remote-monintor.git
  1. Make sure Docker is installed

  2. Update backend/app/monitor/hosts.py with your IP addresses and functions.

  3. Run it

$ docker-compose up -d
  1. Check whether it works on 80 port.

Customization

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

  1. The class has job method, which is the main monitoring function
  2. The class has proper __init__

CLI

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.

Screenshot

Web UI

image

CLI

image