omni-lchen / zabbix-mongodb

MIT License
58 stars 72 forks source link

TypeError: 'Database' object is not callable #40

Open fran7ik opened 2 years ago

fran7ik commented 2 years ago

Traceback (most recent call last): File "/opt/zabmon/zabbix-mongodb.py", line 237, in mongodb.get_db_names() File "/opt/zabmon/zabbix-mongodb.py", line 72, in get_db_names db_names = self.__conn.database_names() TypeError: 'Database' object is not callable

MongoDB server version: 6.0.1 db version v4.0.28

rpelissi commented 1 year ago

Got the same issue, for that particular bug, replace line 78:

< db_names = self.__conn.database_names()
> db_names = self.__conn.list_database_names()

Still some issues after that but..