-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
procstat permission denied #517
Comments
I've run into this issue as well. The easiest solution is to run the Telegraf service as |
Influxdata can be create a unique group to all softwares (influxdb, telgraf, kapacitor, etc)... |
"netstat" input has the same issue (since telegarf is using lsof internally). Aside from running telegarf as root is there any other trick i can apply? |
@ralidousti You should be able to use
or
there's also |
Good thinking. Thank you. |
@ralidousti Did it solve your issue? Which of those capabilities did it? |
@sparrc actually neither worked in this case (lsof) but the idea is neat. Currently I'm just running it as root. |
In the current version you shouldn't get this warning anymore, however these fields will just not be included in the output. The netstat lsof permission issue was fixed in #656 |
From
I tried to figure out how to configure this but was unsuccessful reading. Anyone know how to give a user or group these permissions? |
I believe this issue was resolved, to the degree it can be, in Telegraf 1.3. Please open a new issue if there are remaining issues. |
Telegraf - Version 0.10.0
cat /var/log/telegraf/telegraf.log
2016/01/14 19:29:00 procstat, fd stats not available: NumFD error: open /proc/4564/fd: permission denied
2016/01/14 19:29:00 procstat, io stats not available: IOCounters error: open /proc/4564/io: permission denied
ps -aux | grep telegraf
telegraf 4788 0.0 0.1 319472 14660 pts/0 Sl 19:27 0:00 /usr/bin/telegraf -pidfile /var/run/telegraf/telegraf.pid -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d
ls -la /proc/4564/
-dr-x------ 1 influxdb influxdb 0 Jan 14 19:23 /proc/4564/io/fd
-r-------- 1 influxdb influxdb 0 Jan 14 19:23 /proc/4564/io
How can you see we have different users and group.
tks
joao
The text was updated successfully, but these errors were encountered: