logind

package
v0.0.0-...-6ade924 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

README

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
    

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Timeout web.Duration `yaml:"timeout"`
}

type Logind

type Logind struct {
	module.Base
	Config `yaml:",inline"`
	// contains filtered or unexported fields
}

func New

func New() *Logind

func (*Logind) Charts

func (l *Logind) Charts() *module.Charts

func (*Logind) Check

func (l *Logind) Check() bool

func (*Logind) Cleanup

func (l *Logind) Cleanup()

func (*Logind) Collect

func (l *Logind) Collect() map[string]int64

func (*Logind) Init

func (l *Logind) Init() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL