示例#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()