Navigation
This version of the documentation is archived and no longer supported. To learn how to upgrade your version of MongoDB Ops Manager, refer to the upgrade documentation.
You were redirected from a different version of the documentation. Click here to go back.

Requirements for Python 2.4

Overview

If your system is running Python 2.4, you will need to install the hmac and hashlib Python modules.

Prerequisites

  • hmac to install Python package for hash-based message authentication code
  • hashlib to install Python package of hash libraries
  • easy_install to install Python libraries

Procedure

1

Install hmac and hashlib Python modules

Install these Python modules with easy_install:

sudo easy_install hmac hashlib

Do not use pip to install modules when using Python 2.4 or 2.5, as there are some compatibility issues. Some users have reported problems installing hmac, if easy_install produces an error or you suspect a problem with these libraries see instructions for installing hmac manually.

If easy_install produces an error when trying to install hmac, or you see the following error in your agent logs, you will need to install the hmac package manually:

AttributeError:'builtin_function_or_method' object has no attribute 'new'

To install the hmac package, begin by downloading the latest source package. The following example uses version 20101005. Issue the following command:

curl -O http://pypi.python.org/packages/source/h/hmac/hmac-20101005.tar.gz

Always download the latest version of hmac, which you can find at the hmac page on PyPi.

2

Extract hmac Files

Extract the files from the archive with the following command:

sudo easy_install hmac hashlib
3

Install hmac Files

Extract the files from the archive with the following command:

cd hmac-20101005/
python setup.py install

You may need root (i.e. sudo) privileges to run the final install step.

Next Steps

Once the agent is running and configured, the next step is to deploy the monitoring agent in production.