tag1consulting/check_mongo — Issue #1: pymongo: DeprecationWarning
Author: bionicman
Created: 2012-01-21 00:05:04+00:00
State: open

Hello.

I have:
```[root@rhea ~/check_mongo]$ uname -srm```
```FreeBSD 8.1-RELEASE amd64```
```[root@rhea ~/check_mongo]$ pkg_info | grep pymongo```
```pymongo-2.1.1 Python driver for MongoDB```

and latest check_mongo.

I try:
```[root@rhea ~/check_mongo]$ ./check_mongo -H somehost.com -A count```

And I receive:
/usr/local/lib/python2.5/site-packages/pymongo-2.1.1-py2.5-freebsd-8.1-RELEASE-amd64.egg/pymongo/connection.py:378: DeprecationWarning: slave_okay is deprecated. Please use read_preference instead.
"use read_preference instead.", DeprecationWarning)
OK - Operation Count 0

I think this is abnormal... Am I right? How to fix it?