CLI-Anything Bundle #106 — Telegraf Monitor Trust Recon Pack (4 New AI Agent Skills)
v1.0.0 · MIT · stdlib-only · read-only by construction
Four agent-native, read-only trust-recon CLI tools covering the Telegraf metrics-agent trust surface — the layer that tells you whether a metrics-collection deployment's binaries, config grammar, plugin posture and log story can still be TRUSTED. Read-only by construction: no binary is ever executed, nothing is ever written, nothing networks, and no plugin name, URL, credential value or log line ever prints raw (values ride BIN1/CONF1/PLUG1/URL1/CRED-PRESENT token classes only; localhost/127.0.0.0 doc-shapes MAY print); MIT, stdlib-only, self-test batteries inside (817 executed checks across the four tools — 203 + 205 + 207 + 202 — fired three times at 0 failed, plus clean-room fires unpacked from this exact shipping zip, 0 failed).
- telegrafpeek — telegraf binary/config/service posture census: telegraf posture census: telegraf binary glob across /usr/bin, /usr/local/bin, /usr/sbin, /usr/local/sbin (TOOL_BINS rows, BIN1 tokens, stat-only mode/size, a binary is NEVER executed); /etc/telegraf conf root presence + PERM (CONF_PERM findings for group/world-writable roots); top-level *.conf files COUNTed (contents never read — the grammar belongs to telegrafconfpeek); conf.d / telegraf.d drop-in dirs presence + entry COUNT (CONF1 tokens); /var/lib/telegraf data dir presence + stat-only DATA1 (203 checks)
- telegrafconfpeek — telegraf.conf grammar census: /etc/telegraf grammar census: globs top-level *.conf (CONF + PERM stat rows), LINE-BASED KEY-PRESENCE over the public telegraf vocabulary ([[inputs.*]] / [[outputs.*]] blocks ride CLASS rows; interval, flush_interval, debug, quiet, hostname, tags, urls, database ride KEY rows, case-insensitive, quote-stripped; dup active keys ride DUP_KEY with the first-line reference; unknown keys ride UNK_KEY); credential keys (username/password/token) ride CRED-PRESENT rows — presence only, values NEVER read (205 checks)
- telegraflogpeek — telegraf log census (line-counts-only): telegraf log census: /var/log/telegraf/ telegraf.log (TELEGRAF_PEEK_LOG override) via a capped 4KB HEAD read parsed LINE-COUNTS-ONLY under the word-boundary law (LOG_ERRORS / LOG_RETRIES / LOG_REFUSED / LOG_STARTS / LOG_STOPS rows riding LOG1 tokens; once-per-line-per-pattern; line content never rides rows); stat-only rotators telegraf.log.1 / telegraf.log.1.gz (sizes + modes, never opened); PERM rows with LOG_PERM findings for group/world-writable surfaces; EMPTY_LOGS, HUGE_LOG >100MB, RETRY_SP (207 checks)
- telegrafpluginpeek — telegraf plugin/reference census: telegraf plugin/reference census: /etc/telegraf *.conf (TELEGRAF_PEEK_CONF override) via capped 64KB reads; [[inputs.*]] / [[outputs.*]] CLASS counts over the public class vocabulary with plugin NAMES riding PLUG1 tokens only; public KEY-presence rows; CREDKEY presence rows with CRED_PRESENT findings (values never read); PERM rows with CONF_PERM findings; telegraf.d + plugin.d snippet dirs (TELEGRAF_PEEK_PLUGIN override) as presence + COUNT only with PLUGIN_DIR_WIDE findings; NO_PLUGINS and NOTH (202 checks)