The Pinging Microservice monitors network endpoints by checking both ping response times and port availability. It performs two main tasks:
- Ping Monitoring: Measures round-trip time (RTT) for specified IP addresses or URLs.
- Port Monitoring: Checks if a specified port (default: 443) is accessible.
- Real-time RTT and port availability monitoring
- Multithreaded checks for improved performance
- Dynamic configuration via environment variables
- Error logging for results and issues
- Automatic updates of monitoring results to JSON files
- Configuration: List target IPs or URLs in the
target.txt
file. - Execution: Run the script to start monitoring and save results in JSON files.
- Review: Check the
output
directory for the results.
-
Clone the repository:
git clone https://github.com/haitovs/pinging-microservice-inpython.git
-
Install dependencies:
pip install -r requirements.txt
-
Set environment variables (e.g.,
URL
,URL2
). -
Run the script:
python index.py
The project uses GitHub Actions for automatic execution on push events and scheduled runs every 5 minutes.
Contributions are welcome! Open an issue or submit a pull request for improvements.
Licensed under the MIT License.