
Download mongodb plugin driver#
sasl Enable SASL authentication, must be compiled in to the MongoDB perl driver to work. ssl Enable SSL, MongDB libraries must have been compiled with SSL and server must support it. See -help for details in header description) read-concern MongoDB read concern (defaults to '1' for a single node or 'majority'. write-concern MongoDB write concern (defaults to '1' for a single node or 'majority'.
Download mongodb plugin password#
p -password MongoDB password ($MONGODB_PASSWORD, $PASSWORD) u -user MongoDB user ($MONGODB_USERNAME, $MONGODB_USER, $USERNAME, $USER) C -collection Collection to write test document to (default: check_mongodb_write) d -database Database to use (default: nagios) Specifying any one host is sufficient as the rest will be auto-determined to find the primary ($MONGODB_HOST, $HOST) Tries hosts in given order from left to right to find Primary for write. H -host MongoDB host(s) to connect to (should be from same replica set), comma separated, with optional : suffixes. The query timeout for each write => read => delete operation is one quarter of the global -timeout 'N' = N number of Mongod instances must acknowledge including Primary

Write concern and Read concern take the following options with -write-concern and -read-concern: Tested on MongoDB 2.4.8, standalone mongod, mongod Replica Sets, mongos with Sharded Replica Sets, with and without authentication compares each operation's time taken against the warning/critical thresholds if given records the write/read/delete timings to a given precision and outputs perfdata for graphingĥ. read the same document back, checking the value is identical to the value generated and writtenĤ.

write a new unique document to the nagios collection with dynamically generated valueĢ. Once it connects to the Primary, it will perform the following checks:ġ. Failing to find a viable Primary will result in the whole check aborting as the replica set / cluster is non-writable in that scenario. It will find and connect to the Primary from the given list of Mongod / Mongos nodes. Nagios Plugin to check MongoDB is working by writing a unique document and then reading it back Part of the Advanced Nagios Plugins Collection.
