Mongo Monitoring Wizard.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
netaura
Posts: 31
Joined: Tue Feb 16, 2016 5:52 pm

Mongo Monitoring Wizard.

Post by netaura »

Hi,
Please we need help in setting up our mongo servers for monitoring in nagios, using the mongo wizard.Whenever we want to setup the monitoring, the wizard prompts us to install pymongo on the xi server, which we have already done on two occasions.
Thank you,
Ola Adeiga.
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Mongo Monitoring Wizard.

Post by bwallace »

What version of Xi are you running? I just ran through both of the mongo wizards on a 5.2.7 test machine here and did not encounter the prompts you mention.
Have you referred to either of these docs?

Nagios XI - Monitoring MongoDB
https://support.nagios.com/kb/article.php?id=251

Also, what is the version of the Mongo wizards? In the XI GUI go to:
Admin > System Extensions > Manage Config Wizards
Be sure to check out the Knowledgebase for helpful articles and solutions!
netaura
Posts: 31
Joined: Tue Feb 16, 2016 5:52 pm

Re: Mongo Monitoring Wizard.

Post by netaura »

Our nagios is up to date also, it's 5.2.7. The Mongodb wizard server version 1.0.3, and the version for the database is 1.0.1.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Mongo Monitoring Wizard.

Post by rkennedy »

What issues are you currently seeing? Can you show us screenshots?
Former Nagios Employee
netaura
Posts: 31
Joined: Tue Feb 16, 2016 5:52 pm

Re: Mongo Monitoring Wizard.

Post by netaura »

Error: It looks like you are missing pymongo on your Nagios XI server.
To use this wizard you must install pymongo on your server. If you are using CentOS or RHEL you can run "yum install pymongo".

The above is the error we are witnessing, and pymongo is already installed on our xi server.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Mongo Monitoring Wizard.

Post by rkennedy »

I wonder if it's a version thing, both wizards seem to be running fine on my end. What is the output of rpm -qa | grep 'mongo'?

For reference, here's the output on my system -

Code: Select all


[root@localhost ~]# rpm -qa | grep 'mongo'
python-pymongo-2.5.2-4.el7.x86_64

Former Nagios Employee
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Mongo Monitoring Wizard.

Post by ssax »

What is the output of these commands?

Code: Select all

ls -l /usr/local/nagios/libexec/check_mongodb.py
/usr/local/nagios/libexec/check_mongodb.py | head --lines=1

Thank you
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Mongo Monitoring Wizard.

Post by ssax »

Actually, edit this file:

Code: Select all

/usr/local/nagios/libexec/check_mongodb.py
Change line 310 from:

Code: Select all

if e.split() == "not master":
To:

Code: Select all

if e == "not master":
Let us know if that works for you.
netaura
Posts: 31
Joined: Tue Feb 16, 2016 5:52 pm

Re: Mongo Monitoring Wizard.

Post by netaura »

Hi, I couldn't locate the line 310 of check_mongodb.py to edit... But below is the output of the specified commands;

# rpm -qa | grep 'mongo'
python-pymongo-2.5.2-4.el7.x86_64

ls -l check_mongodb.py
-rwxr-xr-x 1 nagios nagios 62494 May 6 11:52 check_mongodb.py
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Mongo Monitoring Wizard.

Post by tgriep »

Can you run the following commands and post the output?

Code: Select all

su nagios
/usr/local/nagios/libexec/check_mongodb.py --help
find / -name pymongo
ls -l /usr/lib64/python2.7/site-packages/
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked