[error] Mongodb.py replication_lag

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
Vegie
Posts: 2
Joined: Tue May 13, 2014 8:04 am

[error] Mongodb.py replication_lag

Post by Vegie »

Hi ppl,

i hope someone can help me ^^

i using the chekc_mongodb.py plugin since around 1 month, just doing some connection checks and other main stuff.

now i need to check the replication_lag and replication_lag_percent and now i got the problem:

# ./check_mongodb.py -H xxx.xxx.xxx.165 -P 27017 -A replication_lag

CRITICAL - Unable to find host 'xxx.xxx.xxx.165' in replica set.

same with the replication_lag_percent

when i use it on an other mongodb server with no replication:

# ./check_mongodb.py -H xxx.xxx.xxx.94 -P 27017 -A replication_lag
OK - Not running with replSet

maybe im blind but i cnat find the error >.<


all other checks are running, connect/connections/lock...

anyone got a nice idea?


thanks for the help.
Vegie
Posts: 2
Joined: Tue May 13, 2014 8:04 am

Re: [error] Mongodb.py replication_lag

Post by Vegie »

can be Closed.

what a shame :D

error was that the plugin is checking the host name, no wonder that he cant find the ip as name in the string, so solution was:

i added in the hosts file on the nagios server how the ip should be resolve.

problem is, taht the replciation_lag is teh only one with that kind of check. all other checks are working fine just with the IP.
Locked