The program is created to ping several ip addresses, put results in separate txt files, distribute files between folders, send email if ip is not reachable, send email if ip is reachable again, display reachable|unreachable messages in CLI screen. All action are independent for each ip address. The program has two logging modes - long and short, for detailed ping statistics and for just recording reachable/unreachable events.
The program has TRUE CLI, which is similar to CMD or router CLI. The CLI is based on subprocess.Popen class.
Note that the program can be used only in Windows OS and Unix (tested in Ubuntu 18.04, Debian-9.8.0-amd64-xfce, Debian 8, NAS ASUSTOR AS1002T) now, but you can do some changes to try to use it in your OS.
The program was tested in Python versions 3.4 - 3.7 . The program use SQL LITE 3 database (distributed with python, you do not need to upload it independently).
Feel free to ask questions and give remommendations. Feel free to use the code in your projects or to to learn from.
If you face any probelms, feel free to apply to me [email protected] , I'll do my best to help.
The program is not the final version, I'm going to add new changes in future, new contributors are welcome.
To use the program you need to upload all files. Then just to start program start main.py file by Python3.
All other files to run program will be automatically created after you did all required steps during first launch of the program.
If it is first launch, do setup and recipients commands. Note that when you start the commands you rewrite data, rather than add any new information to the old one.