Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[[inputs.system]] fails on SuSE with permission denied for utmp #3837

Closed
Crapworks opened this issue Feb 26, 2018 · 0 comments · Fixed by #4043
Closed

[[inputs.system]] fails on SuSE with permission denied for utmp #3837

Crapworks opened this issue Feb 26, 2018 · 0 comments · Fixed by #4043
Labels
bug unexpected problem or unintended behavior
Milestone

Comments

@Crapworks
Copy link
Contributor

Bug report

Relevant telegraf.conf:

[[inputs.system]]

System info:

Telegraf v1.5.2 (git: release-1.5 67440c9)
SuSE 11.3 (x86_64) (Kernel 3.0.93-0.8-xen)

Steps to reproduce:

  1. Enable System Input Plugin
  2. Run Telegraf

Expected behavior:

Gather metrics about load, uptime, etc.

Actual behavior:

Error:

Error in Plugin [inputs.system]: open /var/run/utmp: permission denied

Additional info:

ls -lha /var/run/utmp
-rw-r----- 1 root utmp 23K Feb 26 10:24 /var/run/utmp

Proposal:

It seems that this error is coming from the gopsutil library. It would be nice to be able to disable that specific feature to avoid reading utmp, or if reading it fails, still gather the metrics that are note dependent on that file being readable.

I am aware that I can also add the Telegraf user to the utmp group, but I would rather have this work out of the box.

@danielnelson danielnelson added this to the 1.6.1 milestone Apr 18, 2018
@danielnelson danielnelson added the bug unexpected problem or unintended behavior label Apr 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants