Let an agent report a chosen hostname
CI / tests (Python 3.10) (pull_request) Successful in 22s
CI / tests (Python 3.11) (pull_request) Successful in 22s
CI / tests (Python 3.12) (pull_request) Successful in 22s
CI / tests (Python 3.13) (pull_request) Successful in 21s
CI / lint (pull_request) Successful in 3s

REPORT_HOSTNAME in agent.conf replaces hostname -f in the report, for hosts
registered under a label that differs from their real hostname (otherwise the
dashboard notes a mismatch forever). install.sh --report-hostname NAME sets it,
--default-report-hostname clears it, and re-running with --server (register,
rotate) keeps it. Agent 0.4.1.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
patrickandClaude Sonnet 5.5 committed 2026-10-29 22:14:41 -04:00
1 parent 3e62d086d1
commit 10b1d6abb8
6 files changed
+57 -6

No files matched your search

+5
View File
@@ -12,3 +12,8 @@ TOKEN_FILE=/etc/kernelwatch/agent.token
# curl timeout in seconds.
#TIMEOUT=30
# Hostname to report instead of the machine's own (`hostname -f`). Set this when
# the host is registered under a different name, so the dashboard doesn't note
# the mismatch. Usually set with: install.sh --report-hostname NAME
#REPORT_HOSTNAME=web01