Benjamin Renard commited on 2013-02-11 22:09:08
Showing 1 changed files, with 7 additions and 0 deletions.
... | ... |
@@ -281,6 +281,13 @@ if options.nagios: |
281 | 281 |
else: |
282 | 282 |
noerror=True |
283 | 283 |
for srv in servers: |
284 |
+ if not options.nocheckcontextcsn: |
|
285 |
+ if srv==options.provider: |
|
286 |
+ continue |
|
287 |
+ if LdapServersCSN[srv]!=LdapServersCSN[options.provider]: |
|
288 |
+ logging.warning('ContextCSN of %s not the same of provider' % srv) |
|
289 |
+ noerror=False |
|
290 |
+ |
|
284 | 291 |
if len(not_found[srv])>0: |
285 | 292 |
logging.warning('Not found objects on %s :\n - %s' % (srv,'\n - '.join(not_found[srv]))) |
286 | 293 |
noerror=False |
287 | 294 |