ceph-zabbix icon indicating copy to clipboard operation
ceph-zabbix copied to clipboard

Non Functional

Open donnydavis opened this issue 8 years ago • 3 comments

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

donnydavis avatar Feb 11 '17 20:02 donnydavis

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.

thelan avatar Feb 23 '17 14:02 thelan

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

ignaqui avatar Sep 13 '17 15:09 ignaqui

"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.

ub-bytes avatar Oct 20 '17 09:10 ub-bytes