Page 1 of 1

check_mongodb.py always returns OK -

Posted: Wed Dec 02, 2015 3:25 pm
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.

Re: check_mongodb.py always returns OK -

Posted: Wed Dec 02, 2015 5:14 pm
by hsmith
Can you show the output from the command line? The command you are trying to run, along with the result.

Re: check_mongodb.py always returns OK -

Posted: Thu Jan 14, 2016 4:36 pm
by bonanaza
./check_mongodb.py -H hostname
OK - Connection took 0 seconds

Re: check_mongodb.py always returns OK -

Posted: Fri Jan 15, 2016 1:07 pm
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