Skip to content
This repository has been archived by the owner on Nov 12, 2018. It is now read-only.

Non Functional #15

Open
donnydavis opened this issue Feb 11, 2017 · 3 comments
Open

Non Functional #15

donnydavis opened this issue Feb 11, 2017 · 3 comments

Comments

@donnydavis
Copy link

donnydavis commented Feb 11, 2017

Nothing works with this template or script. The zabbix-agent runs as the zabbix user, and is not allowed to access ceph commands by default.

auth: unable to find a keyring on /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin: (2) No such file or directory

@thelan
Copy link
Owner

thelan commented Feb 23, 2017

Hello,

The shell script currently parse the ceph command output
If you care about security, i suggest that you create a new keyring for this purpose then edit the ceph_bin variable inside to pass additional argument to use this specific user / keyring.

@donnydavis donnydavis changed the title Non Funtional Non Functional Mar 22, 2017
@ignaqui
Copy link

ignaqui commented Sep 13, 2017

My fix was:

  • add sudo in front of command in UserParameter values for /etc/zabbix/zabbix_agentd.d/zabbix_agent_ceph_plugin.conf:
    ~
    UserParameter=ceph.health,**sudo** /opt/ceph-status.sh health
    ~
  • add file /etc/sudoers.d/zabbix with the following content:
    zabbix ALL=NOPASSWD:/opt/ceph-status.sh

@ub-bytes
Copy link

"ceph-zabbix-1:ceph.peering" changed: Value "2017-10-20 09:17:20.288229 7fec045e1700 -1 auth: unable to find a keyring on /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin: (2) No such file or directory

the solution above cant work to me, so any helps please. huge thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants