There are:
- script pinger.py that fetches ip address list from database, makes ping for each ip and save results to database.
- web application app.py for managing monitoring list and viewing monitoring results
- view this and this pictures to know how it looks
Launch Pinger with following steps:
- clone repository:
$ git clone https://github.com/manonduty/pinger
- go to created directory "pinger":
$ cd pinger/
- run "
pip install -r requirements.txt
"(using virtualenv is recomended) - add pinger.py to crontab:
$ crontab -e
set to execute pinger.py every minute. For example, add the string:
* * * * * /usr/bin/python /data/work/virtualenvs/pinger-test/src/pinger/pinger.py
- run web application to manage ip address list and view monitoring results:
$ python app.py
- Go to web-page http://127.0.0.1:8888/ and try to use.
- First running app.py or pinger.py will create a database file in a pinger directory
- At the upper part of the scripts app.py and pinger.py there are some variables that you may change (name for database, path to ping utility).