- On Prem MMS Monitoring >
- Getting Started with On Prem MMS Monitoring >
- Install Monitoring Agent >
- Install PyMongo with C Extensions
Install PyMongo with C Extensions¶
On this page
Overview¶
If you installed PyMongo without the C extensions (i.e. on a system without a C compiler, or not using the Windows installer), PyMongo should be re-installed with C extensions.
While the C extensions are not required for MMS Monitoring, they significantly improve performance. You must have a C compiler (e.g. gcc) and Python header files installed on your system.
Prerequisites¶
Before you install the PyMongo C extensions, these software packages must be available or installed on the target system:
- Python 2.6+
pymongo
to install the Python driver used by the monitoring agentagent.py
to install the MongoDB monitoring agentgcc
or similar to install a C compilerpip
to install and uninstall PyMongo- For Debian and Ubuntu:
python-dev
to install Python C extensions - For Red Hat, CentOS, and Fedora:
python-devel
,python-setuptools
, andpython-setuptools-devel
to install Python C extensions
Procedure¶
Install gcc and Python Packages¶
For Debian and Ubuntu environments, issue this command:
For Red Hat, CentOS, and Fedora environments, issue this command:
Install the pip Utility¶
Remove PyMongo¶
Re-Install PyMongo¶
Restart Monitoring Agent¶
Replace LOG-DIRECTORY
with the path to your MongoDB logs.
When you restart your agent there is a 5 minute timeout before the agent will begin sending data to MMS again.
Next Steps¶
Once the agent is running and configured, the next step is to deploy the monitoring agent in production.
Also, consider reading the PyMongo documentation.