Buy Percona ServicesBuy Now!

pmp-check-mongo.py

pmp-check-mongo.py - MongoDB Nagios check script.

SYNOPSIS

Usage: pmp-check-mongo.py [options]
Options:
  -h, --help            show this help message and exit
  -H HOST, --host=HOST  The hostname you want to connect to
  -P PORT, --port=PORT  The port mongodb is running on
  -u USER, --user=USER  The username you want to login as
  -p PASSWD, --password=PASSWD
                        The password you want to use for that user
  -W WARNING, --warning=WARNING
                        The warning threshold you want to set
  -C CRITICAL, --critical=CRITICAL
                        The critical threshold you want to set
  -A ACTION, --action=ACTION
                        The action you want to take. Valid choices are
                        (check_connections, check_election, check_lock_pct,
                        check_repl_lag, check_flushing, check_total_indexes,
                        check_balance, check_queues, check_cannary_test,
                        check_have_primary, check_oplog, check_index_ratio,
                        check_connect) Default: check_connect
  -s SSL, --ssl=SSL     Connect using SSL
  -r REPLICASET, --replicaset=REPLICASET
                        Connect to replicaset
  -c COLLECTION, --collection=COLLECTION
                        Specify the collection in check_cannary_test
  -d DATABASE, --database=DATABASE
                        Specify the database in check_cannary_test
  -q QUERY, --query=QUERY
                        Specify the query     in check_cannary_test
  --statusfile=STATUS_FILENAME
                        File to current store state data in for delta checks
  --backup-statusfile=STATUS_FILENAME_BACKUP
                        File to previous store state data in for delta checks
  --max-stale=MAX_STALE
                        Age of status file to make new checks (seconds)

VERSION

Percona Monitoring Plugins pmp-check-mongo.py 1.1.7

Table Of Contents

Previous topic

pmp-check-lvm-snapshots

Next topic

pmp-check-mysql-deadlocks

Visit Percona Store


General Inquiries

For general inquiries, please send us your question and someone will contact you.