feat: push-based monitoring with remote agent (self-elevating installer) #40

Merged
rafaga21 merged 1 commits from feat/push-monitoring-agent into master 2026-06-11 19:09:10 -04:00

1 Commits

Author SHA1 Message Date
0edc882f2e fix: installer self-elevates with script PTY instead of external sudo chain
- agent-install.sh and agent-uninstall.sh now detect if running as root
  at startup and re-execute via 'script -qc sudo bash' if needed
- AgentService commands simplified: just write to /tmp and run bash,
  the scripts handle privilege escalation internally
- Fixes exit code propagation: the script's exit code now correctly
  flows back through exec -> script -> sudo -> bash -> SSH
2026-06-11 19:07:14 -04:00