Nagios Check_mongodb

kasus error :

/usr/local/nagios/libexec/check_mongodb.py
No module named pymongo

untuk menjalankan check_mongodb.py pada server centos perlu di install beberapa modul
pertama isntall python-devel

# yum install python-devel.x86_6

kemudian lihat versi python yang digunakan pada server tersebut, jika sudah masuk ke
http://pypi.python.org/pypi/setuptools

kemudian download paket setuptools sesuaikan dengan versi python yang ada di server

saat ini server menggunakan python versi 2.4

download file :

wget http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c11-py2.4.egg#md5=bd639f9b0eac4c42497034dec2ec0c2b

kemudian eksekusi setuptools

# sh setuptools-0.6c11-py2.4.egg

install module pymongo

# /usr/bin/easy_install-2.4 pymongo

jika berhasil jalan kan modul tersebut

# /usr/local/nagios/libexec/check_mongodb.py -H 192.168.1.61 -D detikcom -P 100
OK – Connection took 0 seconds | connection_time=0.0;3;6

terakhir tambahkan ke nrpe.cfg di setiap server yang ingin di monitoring untuk service mongodb

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.