I'm attempting to setup Telegraf to monitor my Proxmox Ceph cluster.
Hitting a couple of issues (mostly around permissions):
https://github.com/influxdata/telegraf/issues/5590
but I appear to be nearly there. (I had to install sudo on Proxmox in order to do testing - curious if there's a reason sudo isn't included out of the box?)
However, one thing is that still not working is ceph status. Specifically:
If I check that file:
If I try to change the group ownership of that file:
I assume this is perhaps related to the pmxcfs? (The wiki mentions that changing permissions isn't supported).
Is there a workaround, or another way of granting a non-root user access to /etc/ceph/ceph.conf?
Hitting a couple of issues (mostly around permissions):
https://github.com/influxdata/telegraf/issues/5590
but I appear to be nearly there. (I had to install sudo on Proxmox in order to do testing - curious if there's a reason sudo isn't included out of the box?)
However, one thing is that still not working is ceph status. Specifically:
Code:
root@syd1:/etc/ceph# sudo -u telegraf ceph status
2019-03-16 06:37:31.558292 7f3ee7ed1700 -1 Errors while parsing config file!
2019-03-16 06:37:31.558295 7f3ee7ed1700 -1 parse_file: cannot open /etc/ceph/ceph.conf: (13) Permission denied
Error initializing cluster client: PermissionDeniedError('error calling conf_read_file',)
If I check that file:
Code:
root@syd1:/etc/ceph# ls -lah
total 16K
drwxr-xr-x 2 root root 4.0K Mar 16 06:18 .
drwxr-xr-x 96 root root 4.0K Mar 16 06:09 ..
-rw------- 1 ceph ceph 159 Mar 14 07:45 ceph.client.admin.keyring
lrwxrwxrwx 1 root root 18 Mar 14 07:43 ceph.conf -> /etc/pve/ceph.conf
-rw-r--r-- 1 root root 92 Nov 20 07:29 rbdmap
Code:
root@syd1:/etc/ceph# chown root:ceph ceph.conf
chown: changing ownership of 'ceph.conf': Operation not permitted
Is there a workaround, or another way of granting a non-root user access to /etc/ceph/ceph.conf?