Anybody know of good mongo-admin-script-repository? My main interest would be to check performance/status/monitoring/issues, but I’d welcome other stats/tools as well.
Thanks!
-Mike
Anybody know of good mongo-admin-script-repository? My main interest would be to check performance/status/monitoring/issues, but I’d welcome other stats/tools as well.
Thanks!
-Mike
If you have more of these, please reply.
Here are 2 good scripts I found… so far!
They are both written for ‘Nagios’, but you can execute them in python/bash to get good results.
And NO you don’t need Nagios to enjoy them!
#1 - check_mongodb.py
check_mongodb.py -H 127.0.0.1 -u admuser -p mypw -A connections -W 60 -C 80
check_mongodb.py -H 127.0.0.1 -u admuser -p mypw -P 27017 -A memory -W 80 -C 90
check_mongodb.py -H 127.0.0.1 -u admuser -p mypw -P 27017 -A replication_lag -W 80 -C 90
check_mongodb.py -H 127.0.0.1 -u admuser -p mypw -P 27017 -A replset_state -W 80 -C 90
.
.
.
#2 check_mongodb
This one will execute a query, and see if mongo is responsive - No actual results, but still useful!
check_mongodb -h 127.0.0.1 -u admuser -p 1234 -d local --collection test -q “db.test.findOne()”
.
.
Looking forward to more scripts, if you have them!!!
Thanks
-Mike