[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116294":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":13,"stars7d":17,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":10,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":16,"starSnapshotCount":16,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},116294,"chronytop","geerlingguy\u002Fchronytop","geerlingguy","A TUI for chrony NTP time server monitoring","",null,"Go",154,9,5,3,0,70,35,88,"MIT License",false,"master",[],"2026-11-22 15:22:49","2026-11-23 15:52:57","# chronytop\n\n[![CI](https:\u002F\u002Fgithub.com\u002Fgeerlingguy\u002Fchronytop\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fgeerlingguy\u002Fchronytop\u002Factions\u002Fworkflows\u002Fci.yml)\n\nA TUI for [chrony](https:\u002F\u002Fchrony-project.org) NTP time server monitoring, in the style of [btop](https:\u002F\u002Fgithub.com\u002Faristocratos\u002Fbtop).\n\n![chronytop demo](resources\u002Fchronytop.gif)\n\nIt graphs NTP requests per second, and shows server counters, the clients chrony is rate limiting the most, sources, tracking, bandwidth, and CPU and memory use (including chronyd's).\n\nPanels resize with the terminal, and can be shown or hidden.\n\n## Requirements\n\n- Linux, with chronyd 4.3 or later (older versions may work, but aren't tested)\n- Root (or `sudo`) for the server and offenders panels, or see [Running without root](#running-without-root)\n\nchronytop is a single static binary with no dependencies outside the Go standard library, so it runs on any distribution (Debian, Ubuntu, Fedora, RHEL, Arch, Alpine, etc.). It talks to chronyd directly over its Unix command socket, or over UDP with `-host`; `chronyc` isn't needed.\n\n## Install\n\nDownload the binary for your architecture from [Releases](https:\u002F\u002Fgithub.com\u002Fgeerlingguy\u002Fchronytop\u002Freleases), and install it:\n\n```\nsudo install --owner=root --group=root --mode=755 chronytop-linux-amd64 \u002Fusr\u002Flocal\u002Fbin\u002Fchronytop\n```\n\nOr build it from source with Go 1.24 or later:\n\n```\nCGO_ENABLED=0 go build -trimpath -ldflags \"-s -w\" -o chronytop .\n```\n\nPackagers can change the default socket path with `-ldflags \"-X main.defaultSocket=\u002Frun\u002Fchrony\u002Fchronyd.sock\"`.\n\n## Usage\n\n```\nsudo chronytop\n```\n\n| Option | Default | Description |\n| --- | --- | --- |\n| `-i` | `1s` | Sample interval (500ms to 10s) |\n| `-p` | `100` | Minimum packets for a client to be listed in offenders |\n| `-socket` | `\u002Fvar\u002Frun\u002Fchrony\u002Fchronyd.sock` | chronyd's Unix command socket (if chronyd's is elsewhere, e.g. under `\u002Fopt` with Entware) |\n| `-host` | | Monitor chronyd over UDP instead: host, `host:port` or `[IPv6]:port` (default port 323) |\n| `-version` | | Print the version and exit |\n\n| Key | Action |\n| --- | --- |\n| `1`-`7` | Show\u002Fhide a panel |\n| `+` \u002F `-` | Slower \u002F faster sampling |\n| `?` \u002F `h` | Show\u002Fhide help |\n| `Esc` | Close help, or quit |\n| `q` | Quit |\n\nVisible panels and the sample interval are saved when you quit, to `~\u002F.config\u002Fchronytop\u002Fchronytop.conf` (`\u002Froot\u002F.config\u002F...` when run with `sudo`), and restored on the next run. `-i` overrides the saved interval.\n\nThe offenders list is refreshed every 10 seconds in the background. chronyd filters clients by `-p` itself, so the list stays cheap to fetch on busy public servers with hundreds of thousands of clients.\n\n### Remote monitoring\n\n`chronytop -host ntp.example.com` monitors another server, which needs to allow it in `chrony.conf`:\n\n```\nbindcmdaddress 0.0.0.0\ncmdallow 192.0.2.20\nopencommands activity manual rtcdata smoothing sourcename sources sourcestats tracking serverstats clients\n```\n\n`opencommands` (chrony 4.7+) replaces the defaults, so the list repeats them before adding `serverstats` and `clients`. The net and system panels aren't shown for remote hosts.\n\n## Running without root\n\nIf chronyd's Unix socket isn't at the default path or isn't accessible, chronytop uses UDP on localhost, like `chronyc`. That shows everything except the server and offenders panels, since chronyd only answers `serverstats` and `clients` over UDP if allowed:\n\n**chrony 4.7 or later:** add the `opencommands` line above to `chrony.conf` (`\u002Fetc\u002Fchrony\u002Fchrony.conf` on Debian and Ubuntu, `\u002Fetc\u002Fchrony.conf` elsewhere), restart chronyd, and run `chronytop` as any user. Only localhost can send these queries unless `cmdallow` says otherwise.\n\n**Older versions:** adding your user to chrony's group (`_chrony` on Debian and Ubuntu, `chrony` on Fedora, RHEL, and Arch) only works if that group can write to `\u002Frun\u002Fchrony`, since chronytop creates its reply socket there. Check with `ls -ld \u002Frun\u002Fchrony`. If it shows `drwxrwx---`, add your user to the group, then log out and back in:\n\n```\nsudo usermod --append --groups _chrony $USER\n```\n\nDebian and Ubuntu don't make that directory group-writable, so this doesn't work there; use `sudo` instead. Where it does work, it gives full access to chronyd's control socket, so members of the group can also step the clock or change sources.\n\n## Security\n\nSince it usually runs as root, chronytop:\n\n- Only sends read-only monitoring commands to chronyd, and never resets its counters or runs other programs.\n- Only reads local stats from `\u002Fproc`, and only uses UDP with `-host` or the localhost fallback.\n- Creates its reply socket in a private, randomly named directory beside chronyd's socket, and removes it on exit.\n- Only writes its settings file, and only if you changed a setting. It skips the file and its directories unless they're owned by the user running chronytop (so a non-root `HOME` under `sudo` is ignored), and saves through a temporary file, so it never follows a symlink.\n- Strips non-printable characters from everything it displays, so data from chrony can't inject terminal escape sequences.\n\nCI runs `go vet`, `staticcheck`, `gosec`, and `govulncheck` on every change, and tests against chronyd 4.3, 4.6, and the latest release.\n\n## Testing\n\n```\ngo test -race .\u002F...\nCHRONYTOP_TEST_CHRONYD=\"$(command -v chronyd)\" go test -run TestChronydIntegration -v\n```\n\nThe first uses fake daemons; the second starts its own chronyd on loopback.\n\n## License\n\nMIT\n","chronytop 是一个基于终端的 chrony NTP 时间服务监控工具，提供实时可视化界面。它通过 Unix 套接字或 UDP 直连 chronyd 守护进程，无需依赖 chronyc，支持动态面板（如 NTP 请求速率、时间源状态、客户端限速列表、带宽与资源占用等），并可自定义采样间隔、过滤阈值及远程监控。采用 Go 编写，编译为无依赖静态二进制，兼容主流 Linux 发行版。适用于系统管理员对 chrony 服务进行运维诊断、性能调优和异常客户端排查。",2,"2026-11-24 04:53:28","CREATED_QUERY"]