{"id":45150924,"url":"https://github.com/lengordy/net-watchdog","last_synced_at":"2026-02-24T08:01:49.952Z","repository":{"id":339114037,"uuid":"1160525874","full_name":"lengordy/net-watchdog","owner":"lengordy","description":"Deterministic self-healing infrastructure watchdog for Linux VPS environments with modular health checks and structured recovery.","archived":false,"fork":false,"pushed_at":"2026-02-23T02:05:14.000Z","size":68,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-23T13:14:10.288Z","etag":null,"topics":["devops","docker","infrastructure","linux","monitoring","self-healing","systemd","vps","watchdog"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lengordy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-18T03:39:48.000Z","updated_at":"2026-02-23T02:05:17.000Z","dependencies_parsed_at":"2026-02-24T08:01:00.716Z","dependency_job_id":null,"html_url":"https://github.com/lengordy/net-watchdog","commit_stats":null,"previous_names":["lengordy/net-watchdog"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/lengordy/net-watchdog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lengordy%2Fnet-watchdog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lengordy%2Fnet-watchdog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lengordy%2Fnet-watchdog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lengordy%2Fnet-watchdog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lengordy","download_url":"https://codeload.github.com/lengordy/net-watchdog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lengordy%2Fnet-watchdog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29775771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T04:54:30.205Z","status":"ssl_error","status_checked_at":"2026-02-24T04:53:58.628Z","response_time":75,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["devops","docker","infrastructure","linux","monitoring","self-healing","systemd","vps","watchdog"],"created_at":"2026-02-20T03:02:15.097Z","updated_at":"2026-02-24T08:01:49.934Z","avatar_url":"https://github.com/lengordy.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Net Watchdog\n\n![shell](https://img.shields.io/badge/language-shell-green)\n![license](https://img.shields.io/badge/license-MIT-blue)\n![release](https://img.shields.io/github/v/release/lengordy/net-watchdog?label=release)\n![status](https://img.shields.io/badge/status-production-brightgreen)\n\nSelf-healing watchdog for Docker-based VPS environments.\n\nDetects network degradation and applies prioritized recovery with anti-flap protection.\n\n---\n\n## What's New (v1.1.0)\n\n- Container uptime-based VPN grace logic (`VPN_GRACE_SEC`)\n- Prevents false alerts during planned container restarts\n- Explicit `NET OK` notification after recovery\n- Improved Telegram state transitions\n- Added `.env.example` configuration template\n\n---\n\n## Quick Start\n\n```bash\ngit clone https://github.com/lengordy/net-watchdog.git\ncd net-watchdog\nchmod +x net-watchdog.sh\n```\n\nCreate environment file:\n\n```bash\ncp .env.example .env\n```\n\nOr export variables manually:\n\n```bash\nexport TG_TOKEN=your_bot_token\nexport TG_CHAT_ID=your_chat_id\n```\n\nRun once:\n\n```bash\n./net-watchdog.sh\n```\n\nOptional: enable systemd timer\n\n```bash\nsudo cp examples/systemd/net-watchdog.* /etc/systemd/system/\nsudo systemctl daemon-reload\nsudo systemctl enable --now net-watchdog.timer\n```\n\n---\n\n## Health Checks\n\n- Default route\n- Multi-target ping\n- DNS resolution\n- HTTPS reachability\n- Local TCP port\n- Docker daemon\n- Container state\n- Docker internal DNS\n- Memory pressure\n- MTU viability\n- Container uptime grace handling\n\n---\n\n## Recovery Strategy\n\nRecovery is controlled and anti-flap protected.\n\nPriority order:\n\n1. Restart container\n2. Restart Docker\n3. Restart systemd-resolved\n4. Restart systemd-networkd\n5. Optional reboot (explicitly enabled only)\n\nActions are triggered only after consecutive failures and cooldown validation.\n\nNo aggressive restarts. No blind loops.\n\n---\n\n## Modes\n\nRun diagnostic only:\n\n```bash\nDIAG=1 ./net-watchdog.sh\n```\n\nRun self-test:\n\n```bash\nSELFTEST=1 ./net-watchdog.sh\n```\n\nForce emergency reboot after threshold:\n\n```bash\nFORCE_REBOOT=1 ./net-watchdog.sh\n```\n\n---\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flengordy%2Fnet-watchdog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flengordy%2Fnet-watchdog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flengordy%2Fnet-watchdog/lists"}