Skip to main content

systemd-logind collector

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.

MetricScopeDimensionsUnits
sessionsglobalremote, localsessions
sessions_typeglobalconsole, graphical, othersessions
sessions_stateglobalonline, closing, activesessions
users_stateglobaloffline, closing, online, lingering, activeusers

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

Do you have any feedback for this page? If so, you can open a new issue on our netdata/learn repository.