telegraf: open /var/run/ceph: permission denied for ceph output plugin
Bug report
Relevant telegraf.conf:
[[inputs.ceph]]
ceph_binary = "/usr/bin/ceph"
socket_dir = "/var/run/ceph"
mon_prefix = "ceph-mon"
osd_prefix = "ceph-osd"
socket_suffix = "asok"
System info:
Ubuntu 16.04 telegraf 1.0.0-beta3 ceph jewel 10.2.1 influxDB 0.9.6
Actual behavior:
2016/08/22 14:59:20 Starting Telegraf (version 1.0.0-beta3)
2016/08/22 14:59:20 Loaded outputs: influxdb
2016/08/22 14:59:20 Loaded inputs: ceph
2016/08/22 14:59:20 Tags enabled: host=ngcephmon01 user=ceph
2016/08/22 14:59:20 Agent Config: Interval:10s, Debug:false, Quiet:false, Hostname:"ngcephmon01", Flush Interval:10s
2016/08/22 14:59:30 ERROR in input [ceph]: failed to find sockets at path '/var/run/ceph': Failed to read socket directory '/ var/run/ceph': open /var/run/ceph: permission denied
Use case: [Why is this important (helps with prioritizing requests)]
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 16 (7 by maintainers)
I also have just experienced this permissions issue. In my case adding the user telegraf to the ceph group didn’t help as only the ceph user has permission to access the sockets. As a workaround I’ve started running Telegraf as user ceph (!), but with this the Ceph input plugin works successfully and we can at least see if all the metrics we require are available.