{"id":50527326,"url":"https://github.com/7c/pingmon","last_synced_at":"2026-06-03T09:02:29.916Z","repository":{"id":362122669,"uuid":"980065577","full_name":"7c/pingmon","owner":"7c","description":"A real-time ping monitoring and visualization tool with a Go backend and React frontend with multi host support","archived":false,"fork":false,"pushed_at":"2026-06-02T19:40:58.000Z","size":359,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-02T20:17:32.422Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/7c.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-08T14:03:49.000Z","updated_at":"2026-06-02T19:41:03.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/7c/pingmon","commit_stats":null,"previous_names":["7c/pingmon"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/7c/pingmon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2Fpingmon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2Fpingmon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2Fpingmon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2Fpingmon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/7c","download_url":"https://codeload.github.com/7c/pingmon/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2Fpingmon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33856287,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-03T02:00:06.370Z","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":"2026-06-03T09:02:28.769Z","updated_at":"2026-06-03T09:02:29.910Z","avatar_url":"https://github.com/7c.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PingMon\nA sysadmin/NOC-grade ICMP ping monitoring tool with long-term analytics: a Go API backend and a web frontend.\n\n## Overview\n\nPingMon continuously pings many hosts, persists every result to SQLite, and serves a REST API for live status and long-term analysis. The server is API-only; the frontend is a separate web app that consumes the API.\n\n### Features\n\n- **Multi-host monitoring** with **per-host** ping config (interval, timeout, packet size), display name, tags, and notes\n- **Long-term persistence** in SQLite with **hourly/daily rollups** for fast historical queries over months of data\n- **Analysis**: aggregated time-series (raw→minute→hour→day), percentiles (p50/p95/p99), jitter, uptime, and outage detection\n- **Organization**: host **groups** and **comments/incidents/maintenance** annotations pinned to the timeline\n- **Operations**: live NOC status overview, per-host **alert thresholds**\n- **Access**: optional **Bearer-token auth**, fully-open CORS, and **multi-backend** support (one UI, many servers)\n- **Read-only / demo mode** (`--readonly`): freeze all writes for a view-only or public-demo deployment\n- **ARP discovery** (`--arpscan`): periodically scan neighbors on all interfaces (ip/mac/name, accumulated) at `GET /api/arp`\n- **CLI commands**: `pingmon token` (generate a token), `pingmon arp` (scan), `pingmon stats` (stored-state summary), and store-backed `pingmon host add|list` / `pingmon group add|edit|list|assign` (no server/token) — plus an extensible command framework\n\nSee the [Server Documentation](./server/README.md) for the full API, flags, and behavior.\n\n## Project Structure\n\nThe application is divided into two main components:\n\n- **Server**: Go backend that handles ICMP ping operations\n- **Client**: React/Vite frontend for visualization and user interaction\n\n## Requirements\n\n- **Go 1.21+** (the module declares `go 1.25`; the toolchain is fetched automatically)\n- **Node.js 18+** (for the client)\n- **Root/Administrator privileges** (required for ICMP operations)\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/7c/pingmon.git\n   cd pingmon\n   ```\n\n2. Install server dependencies:\n   ```bash\n   cd server\n   go mod tidy\n   ```\n\n3. Install client dependencies:\n   ```bash\n   cd ../client\n   npm install\n   ```\n\n## Architecture note\n\nThe server and client are **independent**. The server is an API-only Go service\n(it does not serve the frontend), and the client is a separate web application\nthat talks to the server's REST API. Deploy and run them separately.\n\n## Building\n\nBuild the server binary (output: `bin/pingmon`, git-ignored):\n\n```bash\nmake build\n```\n\nOther targets: `make run` (build + run as root), `make test`, `make race`,\n`make vet`, `make fmt`, `make tidy`, `make clean`, `make help`.\n\nThe client is built and served on its own:\n\n```bash\ncd client\nnpm run build   # or: npm run dev\n```\n\n## Running\n\nThe server requires root/administrator privileges to use ICMP ping:\n\n```bash\nsudo ./bin/pingmon          # or: make run\n```\n\nOn start it prints a colorized overview and listens on `127.0.0.1:6868` by\ndefault; the API lives under `/api` (health check: `GET /api/ping`). Data is\npersisted under `./data` (`--datafolder`). Common flags: `--host`, `--port`,\n`--datafolder`, `--token` (optional auth), `--name`, `--debug`. See\n`./bin/pingmon --help` or the [Server Documentation](./server/README.md) for the\nfull list and the API contract.\n\nThe client points at the server's API via its own configuration (the dev server\nproxies `/api` to the server port).\n\n## Documentation\n\nFor more detailed information:\n\n- [Server Documentation](./server/README.md)\n- [Client Documentation](./client/README.md)\n\n## License\n\n[MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7c%2Fpingmon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F7c%2Fpingmon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7c%2Fpingmon/lists"}