omni-lchen / zabbix-mongodb

MIT License
58 stars 73 forks source link

Python script not showing data #34

Open rahul15111990 opened 4 years ago

rahul15111990 commented 4 years ago

Traceback (most recent call last): File "./zabbix-mongodb.py", line 243, in mongodb.get_db_names() File "./zabbix-mongodb.py", line 73, in get_db_names master = db_handler.command('isMaster')['ismaster'] File "/home/rahul/.local/lib/python2.7/site-packages/pymongo/database.py", line 730, in command read_preference, session) as (sock_info, slave_ok): File "/usr/lib/python2.7/contextlib.py", line 17, in enter return self.gen.next() File "/home/rahul/.local/lib/python2.7/site-packages/pymongo/mongo_client.py", line 1300, in _socket_for_reads with self._get_socket(server, session) as sock_info: File "/usr/lib/python2.7/contextlib.py", line 17, in enter return self.gen.next() File "/home/rahul/.local/lib/python2.7/site-packages/pymongo/mongo_client.py", line 1222, in _get_socket self.all_credentials, checkout=exhaust) as sock_info: File "/usr/lib/python2.7/contextlib.py", line 17, in enter__ return self.gen.next() File "/home/rahul/.local/lib/python2.7/site-packages/pymongo/pool.py", line 1138, in get_socket sock_info.check_auth(all_credentials) File "/home/rahul/.local/lib/python2.7/site-packages/pymongo/pool.py", line 712, in check_auth auth.authenticate(credentials, self) File "/home/rahul/.local/lib/python2.7/site-packages/pymongo/auth.py", line 564, in authenticate auth_func(credentials, sock_info) File "/home/rahul/.local/lib/python2.7/site-packages/pymongo/auth.py", line 541, in _authenticate_default return _authenticate_scram(credentials, sock_info, 'SCRAM-SHA-1') File "/home/rahul/.local/lib/python2.7/site-packages/pymongo/auth.py", line 263, in _authenticate_scram res = sock_info.command(source, cmd) File "/home/rahul/.local/lib/python2.7/site-packages/pymongo/pool.py", line 613, in command user_fields=user_fields) File "/home/rahul/.local/lib/python2.7/site-packages/pymongo/network.py", line 167, in command parse_write_concern_error=parse_write_concern_error) File "/home/rahul/.local/lib/python2.7/site-packages/pymongo/helpers.py", line 159, in _check_command_response raise OperationFailure(msg % errmsg, code, response) pymongo.errors.OperationFailure: Authentication failed.

Ineptsmeagol commented 4 years ago

the messages shows that authentication failed pymongo.errors.OperationFailure: Authentication failed.