Features: - Multiple probe methods: ICMP (subprocess), TCP connect, HTTP/HTTPS - No root required - SQLite storage for measurements - Beautiful terminal graphs with plotext - Single-file script with PEP 723 inline dependencies - CLI interface with rich output Commands: add, remove, list, enable, disable, probe, run, stats, graph, history, import-config Run with: uv run yaping.py
41 lines
744 B
TOML
41 lines
744 B
TOML
# yaping - Sample Configuration File
|
|
# Import with: uv run yaping.py import-config yaping.toml
|
|
|
|
[defaults]
|
|
interval = 60 # Default probe interval in seconds
|
|
timeout = 5 # Default timeout in seconds
|
|
|
|
# Example targets - uncomment and modify as needed
|
|
|
|
[[targets]]
|
|
name = "google-dns"
|
|
host = "8.8.8.8"
|
|
method = "icmp"
|
|
interval = 30
|
|
|
|
[[targets]]
|
|
name = "cloudflare-dns"
|
|
host = "1.1.1.1"
|
|
method = "tcp"
|
|
port = 53
|
|
interval = 30
|
|
|
|
[[targets]]
|
|
name = "cloudflare-https"
|
|
host = "1.1.1.1"
|
|
method = "tcp"
|
|
port = 443
|
|
interval = 60
|
|
|
|
# [[targets]]
|
|
# name = "github-api"
|
|
# host = "https://api.github.com"
|
|
# method = "http"
|
|
# interval = 120
|
|
|
|
# [[targets]]
|
|
# name = "httpbin"
|
|
# host = "https://httpbin.org/get"
|
|
# method = "http"
|
|
# interval = 60
|