From ff21dd3ec4d5147fab1ecfa15c591cb8a85e6599 Mon Sep 17 00:00:00 2001 From: Tomas Edwardsson Date: Fri, 26 Apr 2013 10:36:23 +0000 Subject: [PATCH] Added missing OK when things worked out --- check_ipa/check_ipa_replication | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/check_ipa/check_ipa_replication b/check_ipa/check_ipa_replication index 0f3c696..5d5669e 100644 --- a/check_ipa/check_ipa_replication +++ b/check_ipa/check_ipa_replication @@ -15,7 +15,7 @@ # along with this program. If not, see . import ldap -from pynag.Plugins import PluginHelper,critical, warning +from pynag.Plugins import PluginHelper, critical, warning, ok plugin = PluginHelper() @@ -48,6 +48,8 @@ for rhost in replication: plugin.add_summary("Replica %s Status: %s" % (rhost[1]['nsDS5ReplicaHost'][0], rhost[1]['nsds5replicaLastUpdateStatus'][0])) if rhost[1]['nsds5replicaLastUpdateStatus'][0][:2] != "0 ": plugin.status(critical) + else + plugin.status(ok) if not len(replication): plugin.add_summary("Warning: No replicas found")