mzupan/nagios-plugin-mongodb — pull request #26 by krobertson (2012-02-20 04:32:10+00:00)
Title: Fix issue with replication lag check and whitespace issues

Was trying to set up this check today and ran into a few issues.

First, there were some whitespace issues that was causing Python to choke.

Second, and not in here, was getting a `'module' object has no attribute 'version'` error for the `pymongo.version` checks. I don't really use Python, so I just took out the version checks and it worked. The pymongo docs say it should have a `pymongo.version`, but not sure why it didn't work.

And finally, the replication lag check was always returning a warning. Found it was because the if statement was comparing a number against a string, while the check for the critical level was doing it right.