Page 1 of 1

Mongo check fail after Nagios xi upgrade

Posted: Sat Oct 03, 2020 8:50 am
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

Re: Mongo check fail after Nagios xi upgrade

Posted: Mon Oct 05, 2020 4:21 pm
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