Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Checks a given Mongod is the Master of a Replica Set
Current Version
Last Release Date
March 17, 2014
Owner
Hari Sekhon
Website
https://github.com/harisekhon/nagios-plugins
Download URL
Compatible With
Part of the Advanced Nagios Plugins Collection.
Download it here:
check_mongodb_master.pl
Nagios Plugin to check a given Mongod is the Master of a Replica Set
usage: check_mongodb_master.pl [ options ]
-H --host MongoDB host(s) to connect to (should be from same replica set), comma separated, with optional :<port> suffixes. Tries hosts in given order from left to right ($MONGODB_HOST, $HOST) -u --user MongoDB user ($MONGODB_USERNAME, $MONGODB_USER, $USERNAME, $USER) -p --password MongoDB password ($MONGODB_PASSWORD, $PASSWORD) -e --expected-master Checks the master against a specific regex rather than the specified --host. Required if specifying more than one --host --ssl Enable SSL, MongDB libraries must have been compiled with SSL and server must support it. Experimental --sasl Enable SASL authentication, must be compiled in to the MongoDB perl driver to work. Experimental --sasl-mechanism SASL mechanism (default: GSSAPI eg Kerberos on MongoDB Enterprise 2.4+ in which case this should be run from a valid kinit session, alternative PLAIN for LDAP using user/password against MongoDB Enterprise 2.6+ which is sent in plaintext so should be used over SSL). Experimental -t --timeout Timeout in secs (default: 10) -v --verbose Verbose mode (-v, -vv, -vvv ...) -h --help Print description and usage options -V --version Print version and exit
You must be logged in to submit a review.
To:
From: