On Wednesday, October 26, 2016 at 11:55:11 PM UTC+3, Bennett, Conrad wrote: > Hello can anyone advise how exactly to have telegraf run as root user or > correct the problem reported? I am able to pull cpu, mem etc but nothing > related to ceph. > > > Telegraf - version 1.0.1 > > > 2016/10/26 16:41:40 error reading from socket > '/var/run/ceph/ceph-osd.112.asok': error running ceph dump: exit status 22 > > 2016/10/26 16:41:40 error reading from socket > '/var/run/ceph/ceph-osd.126.asok': error running ceph dump: exit status 22 > > 2016/10/26 16:41:40 error reading from socket > '/var/run/ceph/ceph-osd.141.asok': error running ceph dump: exit status 22 > > 2016/10/26 16:41:40 error reading from socket > '/var/run/ceph/ceph-osd.153.asok': error running ceph dump: exit status 22 > > 2016/10/26 16:41:40 error reading from socket > '/var/run/ceph/ceph-osd.211.asok': error running ceph dump: exit status 22
Hi, If the group has read privileges, you can try adding the telegraf user in the group that owns the ceph directory. To run telegraf as root, you can modify the USER variable in the service init file (/etc/init.d/telegraf). Running Telegraf service as root is NOT suggested. You may also encounter issues restarting telegraf if you change back from root to telegraf/other user, as the init file modifies the ownership of the pidfile and other directories. -- Remember to include the version number! --- You received this message because you are subscribed to the Google Groups "InfluxData" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/influxdb. To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/182c6647-9490-42b2-b881-bc4cca42d952%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
