Mongodb real-time monitoring tool motop sharing

Source: Internet
Author: User
Tags mongodb

Motop

Project Download: https://github.com/tart/motop

Use

1. Install with easy_install
# Wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py-O-| python
# Easy_install motop

2. Source code installation
# Wget https://github.com/tart/motop/archive/master.zip
# Unzip master.zip
#./Setup. py install

3. Help
# Motop-h

4. Monitor multiple
# Motop 192.168.124.50 192.158.124.51

Action

Q Quit

P Pause

E Explain the query

K Kill operation using "mongo" executable

K Kill operations older than given seconds using "mongo" executable

R Try to reconnect to disconnected servers

R Try to reconnect to all servers

Dependency package

Python 2.6 or above
Pymongo 2.0 or above

Configuration (option)

The configuration file can be created in/etc/motop. conf. There can be multiple short configurations. Each section can contain the following parameters:

Address: the address of the server (required)

Username: login user name

Password: logon user password

Status: Display status (enabled by default)

ReplicationInfo: displays the copy status (default value: enabled)

ReplicaSet: displays the status of the replica set (default value: enabled)

Operations: Display operation (default value: enabled)

ReplicationOperations: displays master and slave replication operations continuously (default value: enabled)

"DEFAULT" is a special part. This section can be set as the default parameter.

The configuration example is as follows:

[MongoDB01]
Address = 10.42.2.121
ReplicationOperations = off
 
[MongoDB02]
Address = 10.42.2.122
 
[MongoDB03]
Address = 10.42.2.123
 
[MongoDB04]
Address = 10.42.2.124
Username = foo
Password = bar

Actual use

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.