Skip to content

1.0.0-rc0: Systemd version detection not working #1646

@paulfantom

Description

@paulfantom

Systemd detection on standard Fedora 30 system doesn't work and possibly prevents some collectors from working correctly.

Systemd reports:

$ systemctl --version
systemd 241 (v241-14.git18dd3fb.fc30)
+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid

Host operating system: output of uname -a

Linux nas.ankhmorpork 5.5.9-100.fc30.x86_64 #1 SMP Thu Mar 12 14:15:32 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

node_exporter version: output of node_exporter --version

node_exporter, version 1.0.0-rc.0 (branch: HEAD, revision: ef7c05816adcb0e8923defe34e97f6afcce0a939)
  build user:       root@b38a2df1a38b
  build date:       20200220-12:54:05
  go version:       go1.13.8

node_exporter command line flags

    --collector.textfile \
    --collector.textfile.directory=/var/lib/node_exporter \
    --collector.filesystem \
    --collector.filesystem.ignored-fs-types=^(sys|proc|auto)fs$ \
    --collector.filesystem.ignored-mount-points=^/(sys|proc|dev|mnt/data|mnt/parity)($|/) \
    --collector.diskstats \
    --collector.diskstats.ignored-devices=^(dm-.*)$ \
    --collector.netdev \
    --collector.netdev.ignored-devices=^(veth.*|br.*)$ \
    --collector.systemd \
    --collector.systemd.enable-restarts-metrics \
    --no-collector.logind \
    --no-collector.ntp \
    --web.listen-address=0.0.0.0:9100

Are you running node_exporter in Docker?

no

What did you do that produced an error?

started a service

What did you expect to see?

no problems with systemd detection

What did you see instead?

Mar 23 11:50:42 nas.ankhmorpork node_exporter[5413]: level=warn ts=2020-03-23T10:50:42.884Z caller=systemd_linux.go:475 collector=systemd msg="Got invalid systemd version" version=v241-14.git18dd3fb.fc30
Mar 23 11:50:42 nas.ankhmorpork node_exporter[5413]: level=warn ts=2020-03-23T10:50:42.884Z caller=systemd_linux.go:126 collector=systemd msg="Detected systemd version is lower than minimum" current=0 minimum=212

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions