systemd-logind monitoring with Netdata
systemd-logind is a system service that
manages user logins.
Monitors number of sessions and users as reported by the org.freedesktop.login1 DBus API.
Requirements
- Works only on Linux systems.
Metrics
All metrics have "logind." prefix.
| Metric |
Scope |
Dimensions |
Units |
| sessions |
global |
remote, local |
sessions |
| sessions_type |
global |
console, graphical, other |
sessions |
| sessions_state |
global |
online, closing, active |
sessions |
| users_state |
global |
offline, closing, online, lingering, active |
users |
Configuration
No configuration required.
Troubleshooting
To troubleshoot issues with the logind collector, run the go.d.plugin with the debug option enabled. The
output should give you clues as to why the collector isn't working.
-
Navigate to the plugins.d directory, usually at /usr/libexec/netdata/plugins.d/. If that's not the case on
your system, open netdata.conf and look for the plugins setting under [directories].
cd /usr/libexec/netdata/plugins.d/
-
Switch to the netdata user.
sudo -u netdata -s
-
Run the go.d.plugin to debug the collector:
./go.d.plugin -d -m logind