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?
Mongo DB plugin returns an error
Re: Mongo DB plugin returns an error
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
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