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