check_mongodb.py always returns OK -

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
bonanaza
Posts: 2
Joined: Wed Dec 02, 2015 3:17 pm

check_mongodb.py always returns OK -

Post by bonanaza »

when I run

Code: Select all

./check_mongodb.py -H xxx.xxx.xxx.xxx 
I always get back
OK - Connection took 0 seconds
, even when the mongodb on the host is not running. This even happens when the host machine does not even have mongodb installed. What could be the problem here? I am new to Nagios and have been tearing my hair out trying
to find the solution. Any help would be greatly appreciated.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_mongodb.py always returns OK -

Post by hsmith »

Can you show the output from the command line? The command you are trying to run, along with the result.
Former Nagios Employee.
me.
bonanaza
Posts: 2
Joined: Wed Dec 02, 2015 3:17 pm

Re: check_mongodb.py always returns OK -

Post by bonanaza »

./check_mongodb.py -H hostname
OK - Connection took 0 seconds
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: check_mongodb.py always returns OK -

Post by tmcdonald »

What is your Python version?

python --version with mine being 2.6.6

And what is the MD5 of the script?

md5sum check_mongodb.py with mine being 407d31827535191ec0b3def132b02999
Former Nagios employee
Locked