[ceph-users] ceph-mgr bug - zabbix module division by zero

Brady Deetz bdeetz at gmail.com
Tue Nov 7 09:27:27 PST 2017


I'm guessing this is not expected behavior


$ ceph zabbix send
Error EINVAL: Traceback (most recent call last):
  File "/usr/lib64/ceph/mgr/zabbix/module.py", line 234, in handle_command
    self.send()
  File "/usr/lib64/ceph/mgr/zabbix/module.py", line 206, in send
    data = self.get_data()
  File "/usr/lib64/ceph/mgr/zabbix/module.py", line 174, in get_data
    osd_fill.append((float(osd['kb_used']) / float(osd['kb'])) * 100)
ZeroDivisionError: float division by zero


$rpm -qa |grep ceph
ceph-mon-12.2.1-0.el7.x86_64
ceph-12.2.1-0.el7.x86_64
libcephfs2-12.2.1-0.el7.x86_64
python-cephfs-12.2.1-0.el7.x86_64
ceph-base-12.2.1-0.el7.x86_64
ceph-common-12.2.1-0.el7.x86_64
ceph-osd-12.2.1-0.el7.x86_64
ceph-radosgw-12.2.1-0.el7.x86_64
ceph-deploy-1.5.39-0.noarch
ceph-selinux-12.2.1-0.el7.x86_64
ceph-mgr-12.2.1-0.el7.x86_64
ceph-release-1-1.el7.noarch
ceph-mds-12.2.1-0.el7.x86_64
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ceph.com/pipermail/ceph-users-ceph.com/attachments/20171107/10ab9cb3/attachment.html>


More information about the ceph-users mailing list