In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Lepus Monitoring mongodb issu
Python:2.6.6 operating system: centos 6.7
Using lepus to monitor mongo 3.2.11, there are two problems:
I. the issue of the version
Python test_connect_mongodb.py
Command SON ([('authenticate', 1), (' user', upright admin'), ('nonce', upright b996cae25bd8e3af')
('key', upland 674223b5f7af86b1b5d8041f76374cd6')] failed: auth failed
(for mongo2.7 and below, the user authentication encryption method defaults to "MONGODB-CR".
The user authentication encryption method after mongodb3 is changed to "SCRAM-SHA-1" by default, while the old version of mongo driver (that is, pymongo) does not support "SCRAM-SHA-1". It needs to be updated to version 2.8 of pymongo to support it.
So even if you specify the authentication method under the old version of pymongo, it will not work.)
Method: re-download the new version of pymongo (pymongo download version 3.3 will also report an error)
Pymongo-2.8.1.tar.gz
Tar zxf pymongo-2.8.1.tar.gz
$cd pymongo-2.8.1/
$python setup.py install two permission question:
Python check_mongodb.py
2017-06-16 14:30:39 [INFO] check mongodb controller started.
2017-06-16 14:30:40 [WARNING] check mongodb 172.16.11.For command SON ([('serverStatus', 1), (' repl', 2)]) on namespace admin.$cmd failed: not authorized on admin to execute command {serverStatus: 1, repl: 2}
2017-06-16 14:30:40 [INFO] check mongodb controller finished. If you want to monitor the user, you need serverStatus permission or root permission:
Create a user with sufficient permissions: db.createUser ({user:'root',pwd:'root',roles: [{"role": "root", "db": "admin"}]})
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.