Skip to main content

Posts

Showing posts with the label mongodb

Issues - Monitoring MongoDB using Nagios XI.

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...

Installing MongoDB on Ubuntu 14 LTS.

MongoDB is an open-source document database, and leading NoSQL database. MongoDB is written in c++. Below is a brief document about installing a mongodb on a test node to try it out. Import the public key used by the package management system. Signed Packages for dpkg and apt sudo apt-key adv --keyserver hkp: / /keyserver.ubuntu.com:80 --recv EA312927 Output. ahmed@ubuntu:~$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 [sudo] password for ahmed: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.ApILz9KbVd --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 gpg: requesting key EA312927 from hkp server keyserver.ubuntu.com gpg: key EA312927: public key "MongoDB 3.2 Release Signing Key " imported gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) Create ...