ceph-zabbix
ceph-zabbix copied to clipboard
Non Functional
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
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.
My fix was:
- add
sudo
in front of command inUserParameter
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
"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.