Check Modules & Roadmap#
check_multi is plugin-driven: every file in lib/checks/<name>.sh that defines
a run_check() function becomes a selectable check. This page lists the modules
that ship today and a prioritised roadmap of proposed additions.
Module contract#
#!/usr/bin/env bash
# check: <name> β <one-line description>
run_check() {
local device=$1
ssh_exec "$device" "tmsh ..." || return 1
}
- Return
0on success, non-zero on failure. - Use
ssh_exec(never rawssh) so retries, timeouts, dry-run and quoting are handled centrally. - Keep remote commands read-only.
check_multiis an audit tool; modules must never mutate device state.
Shipping modules#
| Module | Purpose | Primary command(s) |
|---|---|---|
preflight |
Connectivity + version smoke test | echo OK, tmsh show sys version |
platform |
Version, hardware, provisioning | tmsh show sys version/hardware, list sys provision |
umm |
Provisioned modules | tmsh list sys provision |
certs |
SSL certificate inventory | tmsh list sys file ssl-cert |
keys |
SSL key inventory | tmsh list sys file ssl-key |
syncgroup |
Device-group sync status | tmsh show cm sync-status |
network |
Interfaces & trunks | tmsh show net interface/trunk |
ntp |
Clock sync & NTP config | tmsh list sys ntp, ntpq -pn |
license |
Licence status & feature modules | tmsh show sys license |
diskspace |
Filesystem utilisation | df -h, tmsh show sys disk |
ha |
Active/standby & failover health | tmsh show sys failover |
Roadmap β proposed modules#
Grouped by theme and roughly ordered by value for a staging pre-check workflow.
Change-readiness (high priority)#
ucsβ Verify a recent UCS backup exists and is restorable (tmsh show sys ucs, age of newest archive).config-sync-driftβ Detect pending/unsynced config across the device group beyond a simple status string.cert-expiryβ Flag certificates expiring within N days (parse theexpirationfield rather than dumping the inventory).ssl-profilesβ Map cert/key usage to client/server SSL profiles to catch orphaned or shared material before rotation.
Health & capacity#
cpu-memβ TMM/CPU and memory pressure (tmsh show sys cpu/memory).connection-statsβ Current vs. licensed connection/throughput limits.pool-healthβ Pools/members with down or forced-offline nodes (tmsh show ltm pool).virtual-serversβ Virtual server availability and offline VIPs.
Platform & security#
software-imagesβ Installed/boot volumes and available images (tmsh show sys software).hotfixβ Applied hotfixes vs. a desired baseline.accountsβ Local admin accounts, auth source, and password policy.snmp-loggingβ SNMP, syslog and remote logging destinations.dns-resolversβ Configured DNS resolvers and reachability.
Reporting & integration#
- JSON/HTML per-check artefacts β Structured per-device output for each module (not just pass/fail) so reports can show the captured data.
- Baseline diffing β Compare a run against a stored golden baseline and report drift.
Suggesting or contributing a module#
Open an issue describing the check and the tmsh command(s) it runs, or follow CONTRIBUTING.md to add one directly. New modules should ship with a matching entry in the CI dry-run smoke test and a short note here.