CLI-Anything Bundle #97 — Nagios Monitoring 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 Nagios monitoring trust surface — the layer that tells you whether a deployment's install, main-config grammar, command-definition hygiene and status-log artifacts can still be TRUSTED (an operator whose nagios.cfg, cgi.cfg, resource.cfg $USERn$ macros, define command blocks and status.dat cannot be honestly censused has no monitoring-trust story at all): the main-config grammar layer, the command-definition layer, the status.dat/objects.cache layer, and the hostgroup/service/log artifact layer. Each tool stats/globs configs/artifacts and parses documented grammar line-based — nothing is ever executed, no nagios binary is ever spawned, nothing is ever written, nothing networks, and no macro value, contact email, plugin output, performance_data payload or log message body is ever read or printed (CRED-PRESENT presence rows only; contact identities ride CONTACT1 tokens; plugin outputs ride OUT1 tokens; performance_data rides PERF1 tokens; log LINE-CLASS severity W/E counts only, message bodies NEVER printed).
- nagconfpeek — Nagios main-config grammar census: nagios.cfg/*.cfg files across /etc/nagios + /etc/nagios3 + /usr/local/nagios/etc probe (CONF rows, CONF1/CONF2 tokens, PERM class); LINE-BASED key=value census over the nagios.cfg vocabulary (cfg_file, cfg_dir, use_authentication, log_file, status_file, object_cache_file, command_file, lock_file, check_external_commands, temp_file, log_rotation_method) as KEY-PRESENCE rows (NEVER a yaml/configparser module); PATH values ride PATH1 tokens unless public /etc/nagios vocabulary; cgi.cfg 5-key census (use_authentication, authorized_for_system_information, authorized_for_configuration_information, authorized_for_all_services, authorized_for_all_hosts); USE_AUTH_OFF finding; resource.cfg $USERn$ macros with CRED-PRESENT values NEVER read/printed; findings CHECK_EXT_CMDS_OFF (external commands off posture) + CONF_PERM; rc 0 / 4 / 6 / 3 law.
- nagcmdpeek — Nagios command-definition grammar census: objects/*.cfg define block census (COMMAND/CONTACT name-shape rows; public check/notify/process shapes print; custom ride CMD1 tokens); command_line rides CRED-PRESENT presence row with arg payload NEVER printed; BLOCK_UNCLOSED finding when EOF before closing brace; NESTED_DEFINE finding on define-inside-define; contact email/pager/name values ride CONTACT1 tokens; DUP_COMMAND finding on per-name duplicate counts; timeperiod public 24x7 print; rc 0 / 4 / 6 / 3 law.
- nagstatpeek — Nagios status.dat/objects.cache census: status.dat/objects.cache files across /var/log/nagios + /var/cache/nagios probe (STAT/OBJCACHE1 tokens, PERM class); LINE-BASED hoststatus/servicestatus block census (current_state integer prints; plugin_output/performance_data values ride OUT1/PERF1 tokens, NEVER printed); STALE_STATUS finding when last_check mtime is zero/absent; CACHE_STALE ordering finding (cache mtime vs status mtime); ARCHIVE rows on archives/ dir; rc 0 / 4 / 6 / 3 law.
- naghostpeek — Nagios hostgroup/service/log artifact census: objects/*.cfg define blocks census (hostgroup/servicegroup/host/service rows; group names GROUP1 tokens, public linux-servers shape may print; service_description SVC1 tokens, public Ping/HTTP shapes may print; custom hostnames ride HOST1 tokens, localhost prints); nagios.log artifact rows across /var/log/nagios probe (mtime buckets; LINE-CLASS severity W/E counts only, message bodies NEVER printed); rc 0 / 4 / 6 / 3 law.
Read-only by construction — no binary is ever executed, nothing is ever written, nothing networks, and no macro value, contact email, plugin output, performance_data payload or log message body ever prints raw (values ride CONF1/CONTACT1/CMD1/OUT1/PERF1/STAT1/GROUP1/HOST1/SVC1/PATH1/CRED-PRESENT class tokens only); MIT, stdlib-only, self-test batteries inside (841 executed checks across the four tools — 200 + 205 + 220 + 216 — fired three times at 0 failed, plus clean-room fires unpacked from this exact shipping zip — one /tmp room, one home-path room — 0 failed in both).