MongoDB Services Incorrect Username/Password

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sarfarosh
Posts: 211
Joined: Fri Oct 05, 2012 3:56 am

MongoDB Services Incorrect Username/Password

Post by sarfarosh »

Hi Team,
We configured the mongodb server but we are facing the issue of incorrect username/password. I am using username=testuser and password=testuser. The plugin is check_mongodb.py
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: MongoDB Services Incorrect Username/Password

Post by lmiltchev »

What is the version of the Nagios XI and the MongoDB Server wizard that you are currently using? Can you show us an example of a check that you are running from the command line, along with the output of it?

Example:

Code: Select all

[root@main-nagios-xi nagiosxi]# /usr/local/nagios/libexec/check_mongodb.py -H x.x.x.x -A collections -P 27017 -W 300 -C 500 -u test -p test -D --all-databases
OK - Number of collections: 4 |collections=4;300.0;500.0
Do you see any relevant errors in the apache error log, when you run the check?

Code: Select all

tail -100 /var/log/httpd/error_log
Be sure to check out our Knowledgebase for helpful articles and solutions!
sarfarosh
Posts: 211
Joined: Fri Oct 05, 2012 3:56 am

Re: MongoDB Services Incorrect Username/Password

Post by sarfarosh »

Hi lmiltchev,
Please find the asked details with screenshot in attachment.
You do not have the required permissions to view the files attached to this post.
sarfarosh
Posts: 211
Joined: Fri Oct 05, 2012 3:56 am

Re: MongoDB Services Incorrect Username/Password

Post by sarfarosh »

Hi lmiltchev,
Nagios xi version is 5.4.5 and MongoDB server version is 3.2
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: MongoDB Services Incorrect Username/Password

Post by tgriep »

Can you verify that the Mongo database has authentication enabled and that the user account has sufficient permissions that are outlined on page 1 of the following document?
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked