예제 #1
0
파일: wato.py 프로젝트: ypid/check_mk
 def available(self):
     # This filter is also available on slave sites with disabled WATO
     # To determine if this site is a slave we check the existance of the distributed_wato.mk
     # file and the absence of any site configuration
     return (config.wato_enabled or\
            (not wato.is_distributed() and os.path.exists(defaults.check_mk_configdir + "/distributed_wato.mk")))\
             and wato.have_folders()
예제 #2
0
 def available(self):
     # This filter is also available on slave sites with disabled WATO
     # To determine if this site is a slave we check the existance of the distributed_wato.mk
     # file and the absence of any site configuration
     return (config.wato_enabled or\
            (not wato.is_distributed() and os.path.exists(defaults.check_mk_configdir + "/distributed_wato.mk")))\
             and wato.have_folders()
예제 #3
0
 def available(self):
     return config.wato_enabled and wato.have_folders()
예제 #4
0
파일: wato.py 프로젝트: dago/check_mk
 def available(self):
     return config.wato_enabled and wato.have_folders()