Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_mongodb_master.pl (Advanced Nagios Plugins Collection)
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios 4.x
- Nagios XI
26435
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
Part of the Advanced Nagios Plugins Collection.
Download it here:
https://github.com/harisekhon/nagios-plugins
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 : 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
Download it here:
https://github.com/harisekhon/nagios-plugins
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 :
-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
Reviews (0)
Be the first to review this listing!