How tworjaga/netcheck works
netcheck is a command-line network diagnostic and monitoring tool. A user enters through the CLI or its interactive menu, runs targeted checks or the consolidated doctor workflow, and receives ranked findings, advice, live events, or reports. Its capabilities span local-network inventory and risk monitoring, connectivity and performance, DNS and domain/mail/website audits, server reachability, and remote-agent uptime monitoring. Source evidence is sampled unevenly; documented capability links are retained, while unverified implementation links are omitted.
Main entry points: cli Commands and menu · probe Network probes · domain Domain and mail audits · uptime.go Uptime checks
Components 22
CLI experience
- Commands and menu
internal/cli - Doctor summary
internal/cli/cmd_doctor.go - Terminal UI
internal/ui
Network checks
- Network probes
internal/probe - Route tracing
internal/tracex/trace.go - Port diagnosis
internal/portx/port.go - Link performance
internal/perf/perf.go
Domain audits
- LAN risk audit
internal/lanaudit/lanaudit.go - DNS operations
internal/dnsx - Domain and mail audits
internal/domain - Website and certificate audits
internal/webx/site.go - Ownership lookup
internal/rdap/rdap.go
Monitoring
- LAN change watch
internal/lanwatch/lanwatch.go - Uptime command
internal/cli/cmd_uptime.go - Uptime checks
internal/uptime/uptime.go - Uptime history
internal/uptime/history.go - Alert delivery
internal/alert/alert.go
Remote agents
- Agent command
internal/cli/cmd_agent.go - Remote agent service
internal/agent/agent.go
Other components
- User
- Local and public networks
- Remote hosts and services
Connections 29
- User → Commands and menu: runs checks
README.md - Commands and menu → Doctor summary: runs summary
README.md - Commands and menu → Terminal UI: shows menu
README.md - Doctor summary → Network probes: runs probes
internal/cli/cmd_doctor.go - Doctor summary → Terminal UI: renders findings
internal/cli/cmd_doctor.go - Commands and menu → Route tracing: runs route trace
README.md - Commands and menu → Port diagnosis: diagnoses ports
README.md - Commands and menu → Link performance: measures performance
README.md - Commands and menu → LAN risk audit: audits LAN
README.md - Commands and menu → LAN change watch: watches LAN
README.md - Commands and menu → DNS operations: runs DNS tools
README.md - Commands and menu → Domain and mail audits: audits domains
README.md - Commands and menu → Website and certificate audits: audits websites
README.md - Commands and menu → Ownership lookup: looks up ownership
README.md - LAN risk audit → Network probes: uses probes
internal/lanaudit/lanaudit.go - LAN risk audit → Domain and mail audits: grades findings
internal/lanaudit/lanaudit.go - LAN change watch → Network probes: samples network
internal/lanwatch/lanwatch.go - Domain and mail audits → DNS operations: queries DNS
internal/domain/mail.go - Website and certificate audits → Domain and mail audits: builds checks
internal/webx/site.go - Uptime command → Uptime checks: runs monitoring
internal/cli/cmd_uptime.go - Uptime checks → Network probes: checks targets
internal/uptime/uptime.go - Uptime command → Uptime history: reads history
internal/cli/cmd_uptime.go - Uptime command → Alert delivery: sends alerts
internal/cli/cmd_uptime.go - Agent command → Remote agent service: controls agent
internal/cli/cmd_agent.go - Agent command → Uptime checks: watches targets
internal/cli/cmd_agent.go - Agent command → Alert delivery: sends alerts
internal/cli/cmd_agent.go - Local and public networks → Network probes: answers probes
- Remote hosts and services → Route tracing: returns hops
- Remote hosts and services → Uptime checks: answers checks