Mongo DB plugin returns an error

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
stecino
Posts: 248
Joined: Thu Mar 14, 2013 4:42 pm

Mongo DB plugin returns an error

Post by stecino »

Hello,

I am using this plugin: https://github.com/mzupan/nagios-plugin-mongodb

Check Replication Lag fails to execute on some servers and succeeds on the all the others. All servers are identical.

Here is what I get:

Successful

./check_nrpe -c dynamic_check_mongo_rep_lag -H xx.xx.xx.101 -a '-P 28001 -u ***** -p ****** -W 600 -C 300 -D'
OK - Lag is 0.0 seconds | replication_lag=0.0;600.0;300.0

Failed

./check_nrpe -c dynamic_check_mongo_rep_lag -H xx.xx.xx.115 -a '-P 28001 -u **** -p ***** -W 600 -C 300 -D'
CRITICAL - General MongoDB Error: can't set attribute

command[dynamic_check_mongo_rep_lag]=/usr/local/nagios/libexec/check_mongodb.py -H localhost -A replication_lag $ARG1$

I have talked to the DB team, and they are saying that replication is running and they don't see any issues. Has anyone had this issue?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Mongo DB plugin returns an error

Post by tmcdonald »

With 31 open issues for that plugin I am not shocked that there are problems:

https://github.com/mzupan/nagios-plugin-mongodb/issues

There must be something about the failing servers though that is different. I found a similar thread by you from 2013 where you had resolved it by using a different user. You also posted some logs, so those might be worth checking out again.

http://support.nagios.com/forum/viewtop ... 96&p=49726
Former Nagios employee
Locked