Fixed ContextCSN check during standart check

This commit is contained in:
Benjamin Renard 2013-02-11 23:09:08 +01:00
parent 4be318bd84
commit 04a4919ddd

View file

@ -281,6 +281,13 @@ if options.nagios:
else: else:
noerror=True noerror=True
for srv in servers: 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: if len(not_found[srv])>0:
logging.warning('Not found objects on %s :\n - %s' % (srv,'\n - '.join(not_found[srv]))) logging.warning('Not found objects on %s :\n - %s' % (srv,'\n - '.join(not_found[srv])))
noerror=False noerror=False