And left out - your command line for the ceph checks in nagios should be prefixed by sudo 'sudo ceph health' server# su nagios $ ceph health Error initializing cluster client: Error('error calling conf_read_file: errno EACCES',) $sudo ceph health HEALTH_OK On Wed, Feb 1, 2017 at 9:55 AM, Brian :: <bc@xxxxxxxx> wrote: > Hi Michael, > > Install sudo on proxmox server and add an entry for nagios like: > > nagios ALL=(ALL) NOPASSWD:/usr/bin/ceph > > in a file in /etc/sudoers.d > > Brian > > On Wed, Feb 1, 2017 at 8:55 AM, Michael Hartz <michael.hartz@xxxxxxxxxx> 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? >> _______________________________________________ >> ceph-users mailing list >> ceph-users@xxxxxxxxxxxxxx >> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com