mzupan/nagios-plugin-mongodb — Issue #15: replication lag output incorrect
Author: jhoff909
Created: 2011-10-11 17:56:15+00:00
State: open

from the nagios UI:

OK - Max replication lag: 2 [ip-10-2-31-239.ec2.internal:27017 lag=1:ip-10-122-161-138.ec2.internal:27017 lag=]

You can see it's cutting off the last character.

you can also see this from the command line;

ubuntu@ip-10-212-115-11:/etc/oggi/nagios$ /usr/lib/nagios/plugins/nagios-plugin-mongodb/check_mongodb.py -H 10.255.101.220 -A replication_lag
OK - Max replication lag: 1 [ip-10-2-31-239.ec2.internal:27017 lag=1;ip-10-122-161-138.ec2.internal:27017 lag=]

If I have time today, I will look at the code. This should be easy :)