fix: homelab-audit.sh variable interpolation and collector bugs (#23) #34

Merged
cal merged 18 commits from issue/23-homelab-audit-sh-fix-variable-interpolation-and-co into main 2026-04-03 01:49:12 +00:00

18 Commits

Author SHA1 Message Date
Cal Corum
1ed911e61b fix: single-quote awk program in stuck_procs() collector
All checks were successful
Auto-merge docs-only PRs / auto-merge-docs (pull_request) Successful in 3s
Reindex Knowledge Base / reindex (push) Successful in 3s
The awk program was double-quoted inside the single-quoted
COLLECTOR_SCRIPT, causing $1/$2/$3 to be expanded by the remote
shell as empty positional parameters instead of awk field references.
This made the D-state process filter silently match nothing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 20:48:56 -05:00
Cal Corum
7c801f6c3b fix: guard --output-dir arg and use configurable ZOMBIE_WARN threshold
- Validate --output-dir has a following argument before accessing $2
  (prevents unbound variable crash under set -u)
- Add ZOMBIE_WARN config variable (default: 1) and use it in the zombie
  check instead of hardcoding 0

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 20:48:56 -05:00
Cal Corum
9a39abd64c fix: add homelab-audit.sh with variable interpolation and collector fixes (#23)
Closes #23

- Fix STUCK_PROC_CPU_WARN not reaching remote collector: COLLECTOR_SCRIPT
  heredoc stays single-quoted; threshold is passed as $1 to the remote
  bash session so it is evaluated correctly on the collecting host
- Fix LXC IP discovery for static-IP containers: lxc-info result now falls
  back to parsing pct config when lxc-info returns empty
- Fix SSH failures silently dropped: stderr redirected to
  $REPORT_DIR/ssh-failures.log; SSH_FAILURE entries counted and printed
  in the summary
- Add explicit comment explaining why -e is omitted from set options

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-02 20:48:56 -05:00
Cal Corum
def437f0cb docs: sync KB — troubleshooting.md 2026-04-02 20:48:39 -05:00
Cal Corum
2e86864e94 docs: sync KB — ace-step-local-network.md 2026-04-02 20:48:06 -05:00
Cal Corum
016683cc35 docs: sync KB — release-2026.4.02.md 2026-04-02 20:48:06 -05:00
Cal Corum
51389c612a docs: sync KB — database-release-2026.4.1.md 2026-04-02 20:48:06 -05:00
Cal Corum
98c69617ff docs: sync KB — troubleshooting-gunicorn-worker-timeouts.md 2026-04-02 20:48:06 -05:00
Cal Corum
50125d8b39 docs: sync KB — release-2026.3.31.md,release-2026.4.01.md 2026-04-02 20:48:06 -05:00
Cal Corum
7bdaa0e002 docs: sync KB — troubleshooting.md 2026-04-02 20:48:06 -05:00
Cal Corum
2cb1ced842 docs: sync KB — troubleshooting.md 2026-04-02 20:48:06 -05:00
Cal Corum
ad6adf7a4c docs: sync KB — release-2026.3.31-2.md 2026-04-02 20:48:06 -05:00
Cal Corum
acb1a35170 docs: sync KB — release-2026.3.31.md 2026-04-02 20:48:06 -05:00
Cal Corum
1d85ed26b9 docs: sync KB — release-2026.3.31.md 2026-04-02 20:48:06 -05:00
Cal Corum
1e7f99269e docs: sync KB — 2026-03-30.md 2026-04-02 20:48:06 -05:00
Cal Corum
f5eab93f7b docs: sync KB — subagent-write-permission-blocked.md,release-2026.3.28.md 2026-04-02 20:48:06 -05:00
Cal Corum
bf4b7dc8b7 docs: sync KB — codex-agents-marketplace.md 2026-04-02 20:48:06 -05:00
Cal Corum
3ac33d0046 docs: sync KB — open-packs-checkin-crash.md 2026-04-02 20:48:06 -05:00