mzupan/nagios-plugin-mongodb — pull request #31 by tatyanak (2012-05-06 16:10:13+00:00)
Title: Improvements for nagios mongodb plugin

Hi,

The following were added to the plugin.
please consider merging it to master branch.

the changes that were done:

1. add verification of configured slave_delay so it will not become critical/warning if configured (for replication_lag action)
2. add option to get max lag from primary (instead OK) with additional --max-lag flag (for replication_lag action)
3. fix connection verification by actual host instead of the connection string.
4. lock_percentage perf data was printed twice
5. organizing perf data to be printed in the same format (created separate function)
6. organizing all level checks to separate function (check_levels)
7. check memory function correct virtual and mapped memory semantics for sun platform and allowing check of mapped memory with new --mapped-memory flag
8. add performance data for check_database
9. New option --all-databases to check total size of all DB's were added10. changes to replset_state action, so "Not running with replSet" message will be displayed instead of 'General MongoDB Error: command SON([('replSetGetStatus', 1)]) failed: not running with --replSet'
10. Adding new action to check queues