Ability to monitor systemd units running in user context

5 votes

See this post for a brief description:
https://forum.checkmk.com/t/how-to-monitor-for-systemctl-user-services-using-checkmk/40603/3?u=pscheckmk

What checkmk needs to know for monitoring units in user context (via sudo):
- The Unix username.
- XDG_RUNTIME_DIR location - can be deducted using the uid of the username.

At the moment only systemd units running in system context are being monitored by checkmk. We'd want to implement "systemd --user" checks. Currently we have few workarounds in place:
- Monitor the processes managed by the systemd services we're interested in.
- Local checks using wrapper scripts. Good but not great, it's a hack.
Native systemd --user context support would be very useful for our use case.

Under consideration Checks&Agents Suggested by: PSCheckMK Upvoted: 29 Apr Comments: 0

Comments: 0