コード例 #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
ファイル: wato.py プロジェクト: millerbk/check_mk_mirror
 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()