Monitor mongodb

Good fellows. I have configured the monitoring to mondodb ( MongoDB monitoring with Netdata | Learn Netdata )
But it doesn’t work, I get this error:

bash-5.1# /usr/libexec/netdata/plugins.d/python.d.plugin 1 debug trace mongodb
2022-05-09 21:10:40: python.d INFO: plugin[main] : using python v3
2022-05-09 21:10:40: python.d DEBUG: plugin[main] : looking for ‘/etc/netdata/python.d.conf
2022-05-09 21:10:40: python.d INFO: plugin[main] : ‘/etc/netdata/python.d.conf’ not found
2022-05-09 21:10:40: python.d DEBUG: plugin[main] : searching ‘/usr/lib/netdata/conf.d/python.d.conf’.
2022-05-09 21:10:40: python.d DEBUG: plugin[main] : ‘/usr/lib/netdata/conf.d/python.d.conf’ is loaded
2022-05-09 21:10:40: python.d DEBUG: plugin[main] : looking for ‘pythond-jobs-statuses.json’ in /var/lib/netdata
2022-05-09 21:10:40: python.d WARNING: plugin[main] : ‘pythond-jobs-statuses.json’ not found
2022-05-09-21:10:40: python.d DEBUG: plugin[main] : [mongodb] searching for ‘mongodb.conf’ in [’/etc/netdata/python.d’, ‘/usr/lib/netdata/conf.d/python.d’]
2022-05-09 21:10:40: python.d DEBUG: plugin[main] : [mongodb] loading ‘/etc/netdata/python.d/mongodb.conf’.
2022-05-09 21:10:40: python.d DEBUG: plugin[main] : [mongodb] ‘/etc/netdata/python.d/mongodb.conf’ is loaded
2022-05-09 21:10:40: python.d INFO: plugin[main] : [mongodb] built 1 job(s) configs
2022-05-09 21:10:40: python.d DEBUG: mongodb[local] : creating connection, connection parameters: [‘host’, ‘port’]
2022-05-09 21:10:40: python.d DEBUG: mongodb[local] : authenticating, user: netdata, password: netdata
2022-05-09 21:10:40: python.d WARNING: plugin[main] : mongodb[local] : unhandled exception on check : TypeError("‘Collection’ object is not callable. If you intended to call the ‘authenticate’ method on a ‘Database’ object it is failing because no such method exists."), skipping the job
2022-05-09 21:10:40: python.d INFO: plugin[main] : no jobs to be served
2022-05-09 21:10:40: python.d INFO: plugin[main] : exiting main…

My configuration file is this: ( default).
local:
name : ‘local’
authdb: ‘admin’
host : '127.0.0.1
port : 27017
user : 'netdata
pass : ‘netdata’

Do you think it is because I don’t have the python-pymongo package v2.4+ installed? If I have it dockerized, how do I activate the python-pymongo package v2.4+?

Thank you very much!!!

Translated with DeepL Translate: The world's most accurate translator (free version)

Hello @Juanjotravelc

Could you please focus your efforts on the go.d.plugin’s MongoDB module? MongoDB monitoring with Netdata | Learn Netdata

This is supposed to work smoothly in a container. Make sure you first have disabled the MongoDB module in the python.d.conf

image

Please follow the section in our docs that I mentioned above and let us know!

Tasos.

Thanks, it actually worked for me with the procedure MongoDB monitoring with Netdata | Learn Netdata

I did not need to enable mongodb in the python.d.conf module
Thanks again!

1 Like