SSH-based collector for .180 (OMV) and .171 (ripper) #8
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Proxmox doesn't see these two bare-metal boxes. Add a generic SshHostCollector reading
df/free/uptimeover the existing SSH trust (read-only commands only). Needs:SshHostCollectorimplementing the same collector interface as ProxmoxCollector.Starting this one: adding a generic
SshHostCollectorfor.180(omv) and.171(ripper), the two bare-metal boxes Proxmox cannot see. Will reuse the existing SSH trust already used elsewhere in the homelab (read-only commands only).Done and deployed.
SshHostCollectoradded, dedicated ed25519 key generated on CT122 (never leaves that host beyond the mounted container path), installed onomvandripperwith a forced authorized_keys command — the server always runs a fixed read-only stats script regardless of what the client requests, so a leaked key still can't do anything beyond producing those stats. Details + how to add another SSH-monitored host indocs/ssh-collector-key-setup.md.Verified end-to-end:
/api/hostsnow returnsssh:omvandssh:ripperwith live CPU/mem/disk, numbers cross-checked against rawfree/dfoutput on both boxes. CPU is a load-average approximation (documented in code) since true utilization needs two/proc/statsamples.Note:
diskPathsinconfig/hosts.yamlis descriptive only — the remote forced-command scripts have to be updated by hand to match (documented, only 2 hosts so not worth automating yet).