thelan / ceph-zabbix

Zabbix plugin for Ceph monitoring
65 stars 81 forks source link

Non Functional #15

Open donnydavis opened 7 years ago

donnydavis commented 7 years ago

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 commented 7 years ago

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.

ignaqui commented 7 years ago

My fix was:

ub-bytes commented 7 years ago

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