mirror of
https://github.com/amidaware/rmmagent.git
synced 2026-04-26 22:56:09 +03:00
[GH-ISSUE #22] Feature Request: Agent Health Check CLI Argument #13
Labels
No labels
bug
bug
enhancement
fixed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rmmagent#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Originally created by @UranusBytes on GitHub (Oct 28, 2022).
Original GitHub issue: https://github.com/amidaware/rmmagent/issues/22
I have the scenario where the installation of the agent is delegated to others (I document what to do; others execute the install on their servers). When something "doesn't work right", I've written a debug script the user can run to gather info (what is contents of config file, can it ping the mgmt console, etc... ) But it would be extremely helpful if the agent supported a CLI flag to do a health check. None of the "mode" options seemed right, as they didnt print results.
I could see a flag like "-testhealth" that would:
@silversword411 commented on GitHub (Oct 29, 2022):
The installer will usually tell you what problem it encounters.
What problem scenario have you had in the past where it didn't tell you?
@UranusBytes commented on GitHub (Oct 30, 2022):
Out of ~300 agents deployed, we have ~10 that are supposedly working (individual system owners are installing; we don't have access until RMM agent installed), but are not showing up in the console. We have only troubleshoot one so far.
For this scenario, somehow the RMM agent was downloaded, the systemd service was registered and started, but no config file at /etc/tacticalrmm was generated (no file exists). The agent was producing no error logs (either in journald or in /var/log/tacticalrmm.log) of any form (only the generic "Agent has started..."). Our normal troubleshooting steps of "Have you verified the agent service is running" and "Can you ping/curl the console" didn't point us to the problem.
I suggest the "health check" because there are other scenarios I can see happening in the future, such as an agent installing but a firewall/network preventing reaching the API, or I can see an agent fully registering but the system being shutdown for an extended period (weeks+) and when it comes back online it no longer being registered in the console. A simplified "health check" that verifies all of the aspects of an agent being fully operational, but from the agent's perspective, would prove very useful.
And to explicitly say this, thank you for such a great tool!