From 04a4919ddda4bed7eb953767284dd2b9ba147794 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 11 Feb 2013 23:09:08 +0100 Subject: [PATCH] Fixed ContextCSN check during standart check --- check_syncrepl_extended | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/check_syncrepl_extended b/check_syncrepl_extended index ef9a6f0..9052a3b 100755 --- a/check_syncrepl_extended +++ b/check_syncrepl_extended @@ -281,6 +281,13 @@ if options.nagios: else: noerror=True for srv in servers: + if not options.nocheckcontextcsn: + if srv==options.provider: + continue + if LdapServersCSN[srv]!=LdapServersCSN[options.provider]: + logging.warning('ContextCSN of %s not the same of provider' % srv) + noerror=False + if len(not_found[srv])>0: logging.warning('Not found objects on %s :\n - %s' % (srv,'\n - '.join(not_found[srv]))) noerror=False