openclaw-network-diagnostics
Standalone advanced network diagnostics for OpenClaw to continuously test end-to-end connectivity from OpenClaw agent to Telegram Bot API and approximate delivery to a personal Telegram client. Use when investigating latency spikes, packet loss, DPI/throttling/blocking suspicion, DNS instability, TLS/TCP issues, route changes, MTU shifts, retry/timeout behavior, or Telegram rate-limits with structured rotating JSON logs.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/h8kxrfp68z-lgtm/openclaw-network-diagnosticsOpenClaw Network Diagnostics
Overview
Run a pure network diagnostic worker from CLI to continuously monitor connectivity between:
- OpenClaw runtime host
- Telegram Bot API (
api.telegram.org) - Personal Telegram client approximation via delivery verification cycles
Keep diagnostics isolated from OpenClaw LLM flow:
- Use no LLM calls.
- Consume no AI tokens.
- Run in independent async worker loops.
Skill Files
scripts/netdiag.py: standalone CLI worker (run/start/stop/status/validate-config)references/config.example.json: complete example configurationreferences/example-log-entries.jsonl: sample structured JSON logsreferences/openclaw-integration.md: integration patterns with pros/consreferences/ai-log-analysis.md: workflow for later AI-based log analysis
Prerequisites
Install and verify:
- Python
3.11+ - macOS networking tools:
dig,ping,traceroute - Telegram bot token and personal chat id
Install
From skill root:
cd /Users/ivanbelugin/Documents/Connection\ Monitoring\ System/openclaw-network-diagnostics
python3 scripts/netdiag.py validate-config --config references/config.example.json
Create a real config file from the example and set real credentials:
cp references/config.example.json config.json
Then edit config.json:
telegram.bot_tokentelegram.personal_chat_id
Run Model
Foreground mode (manual stop via Ctrl+C)
python3 scripts/netdiag.py run --config config.json --pid-file ./logs/netdiag.pid
Behavior:
- Start manually from CLI.
- Run continuously until manual stop.
- Print JSON summary to stdout on stop.
- Save summary to
logging.summary_file_path.
Background mode (non-blocking service)
python3 scripts/netdiag.py start --config config.json --pid-file ./logs/netdiag.pid
python3 scripts/netdiag.py status --pid-file ./logs/netdiag.pid
python3 scripts/netdiag.py stop --pid-file ./logs/netdiag.pid
Use this mode to avoid blocking OpenClaw main thread.
Monitoring Behavior
Every intervals_sec.ping (default 30s) perform active cycle:
- Resolve DNS with TTL snapshot (system + public resolvers).
- Send Bot API probe (
getMe) and measure round-trip latency. - Run delivery verification cycle (
sendMessage+ selected ack mode). - Run packet-loss probe (
ping) and log packet loss indicators. - Update outage/recovery and anomaly counters.
Additional periodic diagnostics:
- Traceroute (
intervals_sec.traceroute) - MTU discovery via DF ping binary search (
intervals_sec.mtu_test) - DNS re-resolution (
intervals_sec.dns_reresolve)
Delivery Verification Modes
Set delivery_verification.mode:
bot_api_ack(default)
- Confirm only Bot API acceptance (
sendMessagesuccess). - Lowest overhead.
- Does not prove handset render/read.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-h8kxrfp68z-lgtm-openclaw-network-diagnostics": {
"enabled": true,
"auto_update": true
}
}
}