The motopmongodb real-time monitoring tool can monitor multiple MongoDB servers at the same time. Displays the current operation. Project address: github. comtartmotop use 1. Install with easy_install # wgetbitbucket. orgpypasetuptoolsrawbootstrapez_setup.py-O
The motop mongodb real-time monitoring tool can monitor multiple MongoDB servers at the same time. Displays the current operation. Project address: https://github.com/tart/motop with 1. Install # wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py-O-| python # easy _
Motop
The real-time mongodb monitoring tool can monitor multiple MongoDB servers at the same time. Displays the current operation. Project address: 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 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 :? Server address (required) username: Login User Name password: Login User password status: Display status (enabled by default) replicationInfo: display copy status (enabled by default) replicaSet: show the status of the replica set (default value: enabled) operations: Show operation (default value: enabled) replicationOperations: continuously show master and slave copy operations (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.121replicationOperations=off[MongoDB02]address=10.42.2.122[MongoDB03]address=10.42.2.123[MongoDB04]address=10.42.2.124username=foopassword=bar
Actual use
Original article address: mongodb Real-time Monitoring Tool motop, thanks to the original author for sharing.