{"id":31767887,"url":"https://github.com/webdevtodayjason/ping_monitor","last_synced_at":"2025-10-10T01:48:45.431Z","repository":{"id":272815610,"uuid":"917843206","full_name":"webdevtodayjason/ping_monitor","owner":"webdevtodayjason","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-16T19:51:42.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-06T01:30:32.933Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webdevtodayjason.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-16T18:45:09.000Z","updated_at":"2025-01-16T19:51:43.000Z","dependencies_parsed_at":"2025-01-16T20:16:17.517Z","dependency_job_id":"71b6f721-448a-4a54-81db-79053e83e4ac","html_url":"https://github.com/webdevtodayjason/ping_monitor","commit_stats":null,"previous_names":["webdevtodayjason/ping_monitor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/webdevtodayjason/ping_monitor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevtodayjason%2Fping_monitor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevtodayjason%2Fping_monitor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevtodayjason%2Fping_monitor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevtodayjason%2Fping_monitor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webdevtodayjason","download_url":"https://codeload.github.com/webdevtodayjason/ping_monitor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevtodayjason%2Fping_monitor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002400,"owners_count":26083375,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-10T01:48:35.452Z","updated_at":"2025-10-10T01:48:45.423Z","avatar_url":"https://github.com/webdevtodayjason.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IP Ping Monitor\n\nThis Python script monitors the reachability of multiple IP addresses, logs the results to a file, and provides alerts in the CLI when an IP becomes unreachable.\n\n## Features\n\n- Pings multiple IP addresses specified in `targets.csv`.\n- Logs ping results and timestamps to `ping_log.txt`.\n- Alerts in the CLI when an IP address becomes unreachable.\n- Runs continuously in a detached `screen` session for background monitoring.\n\n## Requirements\n\n- Python 3.x\n- `screen` utility (for running the script in detached mode)\n\n## Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/webdevtodayjason/ping_monitor.git\n   cd ping_monitor\n   ```\n2. No external dependencies beyond Python standard library are required.\n## Configuration\n1. targets.csv: Edit this file to specify the IP addresses, target names, and ping intervals.\n\nExample format:\n   ```bash\n  IP,TARGET_NAME,PING_INTERVAL\n  8.8.8.8,Google,5\n  1.1.1.1,CloudFlair,10\n  ```\n## Usage\n1. Start a screen session to run the monitor script in the background:\n  ```bash\nscreen -S ping_monitor -dm python ip_ping_monitor.py\n```\nThis command starts a detached screen session named ping_monitor and runs the monitor.py script, which continuously monitors the IP addresses specified in targets.csv.\n\n2. To view the ping_monitor screen session:\n```bash\nscreen -x ping_monitor\n```\nPress Ctrl+A followed by Ctrl+D to detach from the screen session without terminating it.\n\n3. To stop the monitor script, reattach to the ping_monitor screen session and press Ctrl+C to interrupt the script execution. Then, you can exit the screen session.\n\n## Logging\nThe script logs all ping results and timestamps to ping_log.txt in the following format:\n```ruby\nYYYY-MM-DD HH:MM:SS - \u003cIP or TARGET_NAME\u003e is reachable.\nYYYY-MM-DD HH:MM:SS - \u003cIP or TARGET_NAME\u003e is not reachable! Alert!\n```\nReplace \u003cIP or TARGET_NAME\u003e with the actual IP address or target name being monitored.\n\n## Contributing\nFeel free to fork the repository, submit issues, and contribute enhancements. Pull requests are welcome!\n\n## License\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdevtodayjason%2Fping_monitor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdevtodayjason%2Fping_monitor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdevtodayjason%2Fping_monitor/lists"}