Monitoring for mongodb using nagiosxi is straight forword but you might have some issues when we are setting up. Here are few issues which might come up using mongodb version 3 . Issue getting monitoring data in nagios . 1. ConnectionFailure object has no attribute strip [ahmed @localhost libexec] $ ./check_mongodb.py - H 192.168 . 94.137 - P 27017 -u admin -p admin Traceback (most recent call last) : File "./check_mongodb.py" , line 1372 , in < module > sys.exit(main(sys.argv[ 1 : ])) File "./check_mongodb.py" , line 196 , in main err, con = mongo_connect(host, port, ssl, user, passwd, replicaset) File "./check_mongodb.py" , line 294 , in mongo_connect return exit_with_general_critical(e), None File "./check_mongodb.py" , line 310 , in exit_with_general_critical if e.strip() == "not master" : AttributeError : 'ConnectionFailure' object has no attribute 'strip...