Open saurajeet opened 11 years ago
Pasting Python Listfunc Dump CRITICAL - General MongoDB Error: 'note'
functions called:
filename: /usr/lib/python2.6/site-packages/hashlib-20081119-py2.6-linux-x86_64.egg/hashlib.py, modulename: hashlib, funcname: <lambda>
filename: /usr/lib/python2.6/site-packages/hashlib-20081119-py2.6-linux-x86_64.egg/hashlib.py, modulename: hashlib, funcname: <module>
filename: /usr/lib64/nagios/plugins/custom/check_mongodb.py, modulename: check_mongodb, funcname: <module>
filename: /usr/lib64/nagios/plugins/custom/check_mongodb.py, modulename: check_mongodb, funcname: exit_with_general_critical
filename: /usr/lib64/nagios/plugins/custom/check_mongodb.py, modulename: check_mongodb, funcname: index_miss_ratio
filename: /usr/lib64/nagios/plugins/custom/check_mongodb.py, modulename: check_mongodb, funcname: main
filename: /usr/lib64/nagios/plugins/custom/check_mongodb.py, modulename: check_mongodb, funcname: optional_arg
filename: /usr/lib64/nagios/plugins/custom/check_mongodb.py, modulename: check_mongodb, funcname: set_read_preference
....
Looks like you don't have that in your mongo stats.. can you send post the output of
db.serverStatus();
In your mongo shell
I also pushed a change just now to make the try/except fail better if it has note in the indexCounter array which means the check has failed
$ python /usr/lib64/nagios/plugins/custom/check_mongodb.py -H mongo-host -u admin -d mrs -p qwedsa -D -A index_miss_ratio -C .1 CRITICAL - General MongoDB Error: 'note' Using Pymongo 2.1.1