Ceph Octopus zabbix configshow失败,出现python错误

2024-05-13 02:19:50 发布

您现在位置:Python中文网/ 问答频道 /正文

大家好,我已经成功地在CentOS Linux 8.2.2004版上安装了Ceph Octopus 15.2.4和python 3.6.8

集群健康状况良好。但是,当我尝试使用以下步骤配置zabbix模块时 https://docs.ceph.com/en/latest/mgr/zabbix/

我明白了

Error EINVAL: Traceback (most recent call last):
  File "/usr/share/ceph/mgr/mgr_module.py", line 1167, in _handle_command
    return self.handle_command(inbuf, cmd)
  File "/usr/share/ceph/mgr/zabbix/module.py", line 407, in handle_command
    return 0, json.dumps(self.config, index=4, sort_keys=True), ''
  File "/lib64/python3.6/json/__init__.py", line 238, in dumps
    **kw).encode(obj)
TypeError: __init__() got an unexpected keyword argument 'index'

我检查了模板,它看起来是最新的

不确定这里的问题是什么

问候,, j


Tags: inpyselfjsonsharereturnusrline