Skip to content

Health check

Terminal window
python -m src --healthcheck --all --workers 20

Read-only: only show commands are sent, no config changes. Each device’s raw output is captured to PRE_CHECK/{host}.cfg, parsed into metrics, evaluated against thresholds, and written to SUMMARY/YYYY-MM/HEALTH_timestamp.csv and .html.

Add --notify to send the report through enabled notification channels — HTML table via email, text summary via Telegram.

VendorCPU / MemoryVirtual chassis
Cisco IOS-XE / Catalystshow processes cpu, show processes memoryStackWise member state, StackWise Virtual / VSS VSL links
Cisco Nexus (NX-OS)show system resourcesvPC peer + keep-alive status
Alcatel AOSshow health all cpu, show health all memoryVirtual chassis topology
Alcatel WLCshow cpuload, show memory

Command files live at config/{vendor}/healthcheck_pre.txt — edit them to add or remove commands per vendor.

StatusMeaning
OKAll metrics under thresholds
WARNCPU or memory over the warn threshold
CRITCPU/memory over the crit threshold, or virtual chassis degraded (lost stack member, VSL down, vPC peer down, VC split)
ERRORDevice unreachable or no metrics parsed

Thresholds are configurable in config.yaml:

healthcheck:
cpu_warn: 80
cpu_crit: 90
mem_warn: 85
mem_crit: 95