Permalink
Browse files

Merge pull request #16 from jhoff909/master

fixed replication lag output incorrect
  • Loading branch information...
2 parents 57689bf + ddb7af5 commit f31e36a5748919e9a4094350f8087e918782cf09 @mzupan mzupan committed Oct 20, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 README.md
  2. +1 −1 check_mongodb.py
View
@@ -185,6 +185,6 @@ define service {
use generic-service
hostgroup_name Mongo Servers
service_description MongoDB Database size your-database
- check_command check_mongodb_database!collections!27017!300!500!your-database
+ check_command check_mongodb_database!database_size!27017!300!500!your-database
}
</code></pre>
View
@@ -204,7 +204,7 @@ def check_rep_lag(con, warning, critical, perf_data):
data = data + member['name'] + " lag=%s;" % replicationLag
lag = max(lag, replicationLag)
- data = data[0:len(data)-2]
+ data = data[0:len(data)-1]
message = "Max replication lag: %i [%s]" % (lag, data)
if perf_data:
message += " | max_replication_lag=%is" % lag

0 comments on commit f31e36a

Please sign in to comment.