# Monitor mongodb

**URL:** <https://community.netdata.cloud/t/monitor-mongodb/2858>\
**Category:** Help\
**Tags:** configuration, agent, collectors\
**Created:** [May 9, 2022, 9:13pm UTC](https://community.netdata.cloud/t/monitor-mongodb/2858 "2022-05-09T21:13:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juanjotravelc](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/juanjotravelc/32/1777_2.png) [@Juanjotravelc](https://community.netdata.cloud/u/Juanjotravelc)\
**Post date:** [May 9, 2022, 9:13pm UTC](https://community.netdata.cloud/t/monitor-mongodb/2858/1 "2022-05-09T21:13:32Z")

</div>

Good fellows. I have configured the monitoring to mondodb ( [MongoDB monitoring with Netdata | Learn Netdata](https://learn.netdata.cloud/docs/agent/collectors/python.d.plugin/mongodb) )  
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](http://www.DeepL.com/Translator) (free version)

---

<div class="post-metadata">

**Author:** ![Tasos\_Katsoulas](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/tasos_katsoulas/32/1344_2.png) [@Tasos\_Katsoulas](https://community.netdata.cloud/u/Tasos_Katsoulas)\
**Post date:** [May 9, 2022, 10:19pm UTC](https://community.netdata.cloud/t/monitor-mongodb/2858/2 "2022-05-09T22:19:34Z")

</div>

Hello @Juanjotravelc

Could you please focus your efforts on the go.d.plugin’s MongoDB module? [MongoDB monitoring with Netdata | Learn Netdata](https://learn.netdata.cloud/docs/agent/collectors/go.d.plugin/modules/mongodb)

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

![image](https://canada1.discourse-cdn.com/flex029/uploads/netdata2/original/2X/9/99324cbbcc0a74b1169566654139642718613ba3.png)

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

Tasos.

---

<div class="post-metadata">

**Author:** ![Juanjotravelc](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/juanjotravelc/32/1777_2.png) [@Juanjotravelc](https://community.netdata.cloud/u/Juanjotravelc)\
**Post date:** [May 11, 2022, 3:28pm UTC](https://community.netdata.cloud/t/monitor-mongodb/2858/3 "2022-05-11T15:28:11Z")

</div>

Thanks, it actually worked for me with the procedure [MongoDB monitoring with Netdata | Learn Netdata](https://learn.netdata.cloud/docs/agent/collectors/go.d.plugin/modules/mongodb)

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