Mongo check fail after Nagios xi upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lrnnetops
Posts: 75
Joined: Thu May 18, 2017 5:31 am

Mongo check fail after Nagios xi upgrade

Post by lrnnetops »

Hi Team,

We upgraded our Test nagios XI server from "5.6.5" to "5.7.3". After upgrade our one of the mongo check stoped working & started giving below error.
test_from-QA_nagios-serevr.jpg
It was working before upgrade. Please see below screen shot.
mongodb_cert-manager_queries_per_second.jpg
We campaired plugin for any update after upgrade with plugin from backup, but found its same.

We are running Nagios XI version "5.6.5" on our PROD & DR environment (Two different dedicated servers). We checked on both these server for the same check & its working properly, plugin is same as Test nagios xi server.

Command for the check is below.
Name = check_mongodb_server
Command Line = $USER1$/check_mongodb.py -H $HOSTADDRESS$ -A $ARG1$ -P $ARG2$ -W $ARG3$ -C $ARG4$ -u $ARG5$ -p $ARG6$ -D --all-databases

We had similar issue earlier with our Mongo Db monitoring with Nagiso XI. Please check below links for details.

1 - https://support.nagios.com/forum/viewto ... 16&t=52699
2 - https://support.nagios.com/forum/viewto ... 16&t=51577

Attaching the "check_mongodb.py" for reference.
check_mongodb.py
Please let us know what cause this & fix for the same.

Regards,
Rohan
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Mongo check fail after Nagios xi upgrade

Post by benjaminsmith »

Hi Rohan,

Considering that it is working on the production system and the plugin version is the same, let's verify on both systems are running the same version of pymongo and also check any different in between python versions. Also, please confirm that these two systems are checking the same Mongodb database.

Check Pymongo

Code: Select all

 pip list installed | grep pymongo
Python Versions

Code: Select all

python --version
Thanks,
Bejamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked