Actually it wasn't. Light-headed, I failed to recognize, that 
/etc/ceph/ceph.conf is only a symlink to the Proxmox fuse location below 
/etc/pve which permissions aren't easily changed.

I have now resorted to a workaround, dumping the output of 'ceph health' as a 
cron job and reading that periodically. That is fully sufficient for my 
situation.

Many thanks



01.02.2017, 09:58, "Henrik Korkuc" <li...@kirneh.eu>:
> On 17-02-01 10:55, Michael Hartz wrote:
>>  I am running ceph as part of a Proxmox Virtualization cluster, which is 
>> doing great.
>>
>>  However for monitoring purpose I would like to periodically check with 
>> 'ceph health' as a non-root user.
>>  This fails with the following message:
>>>  su -c 'ceph health' -s /bin/bash nagios
>>  Error initializing cluster client: PermissionDeniedError('error calling 
>> conf_read_file',)
>>
>>  Please note: running the command as root user works as intended.
>>
>>  Someone else suggested to allow group permissions on the admin keyring, 
>> i.e. chmod 660 /etc/ceph/ceph.client.admin.keyring
>>  Link: https://github.com/thelan/ceph-zabbix/issues/12
>>  This didn't work.
>>
>>  Has anyone hints on this?
>
> is /etc/ceph/ceph.conf readable for that user?
>
>>  _______________________________________________
>>  ceph-users mailing list
>>  ceph-users@lists.ceph.com
>>  http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
> _______________________________________________
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to