In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-10-14 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.