Mongo DB plugin returns an error
Posted: Fri Jun 12, 2015 1:38 pm
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?
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?