def __init__(self): ns_conf = re_joint_dir_by_os("conf|ns.ini") self.es_server_ip = get_conf_pat(ns_conf, "agent", "es_ip") self.es_server_port = get_conf_pat(ns_conf, "agent", "es_port") self.ares_log_path = get_conf_pat(ns_conf, "agent", "ares_log_path") self.server_ip = get_conf_pat(ns_conf, "server", "ip") self.server_port = get_conf_pat(ns_conf, "server", "port")
def __init__(self): ns_conf = re_joint_dir_by_os("conf|ns.ini") self.BGDB_IP = get_conf_pat(ns_conf, "crius", "BGDB_IP") self.BGDB_USERNAME = get_conf_pat(ns_conf, "crius", "BGDB_USERNAME") self.BGDB_PASSWORD = get_conf_pat(ns_conf, "crius", "BGDB_PASSWORD") self.server_ip = get_conf_pat(ns_conf, "server", "ip") self.server_port = get_conf_pat(ns_conf, "server", "port")
def __init__(self): # 读取conf目录下的ns.ini文件 ns_conf = re_joint_dir_by_os("conf|ns.ini") # server_ip = 172.16.5.43 self.server_ip = get_conf_pat(ns_conf, "server", "ip") # server_port = 8081 self.server_port = get_conf_pat(ns_conf, "server", "port") # 各模块协议名对应关系 self.json_file = re_joint_dir_by_os("conf|meta_data.json")
def __init__(self): ns_conf = re_joint_dir_by_os("conf|ns.ini") self.server_ip = get_conf_pat(ns_conf, "server", "ip") self.server_port = get_conf_pat(ns_conf, "server", "port") self.debug = get_conf_pat(ns_conf, "server", "debug") self.mem_yellow = get_conf_pat(ns_conf, "server", "mem_yellow") self.mem_red = get_conf_pat(ns_conf, "server", "mem_red") self.cpu_yellow = get_conf_pat(ns_conf, "server", "cpu_yellow") self.cpu_red = get_conf_pat(ns_conf, "server", "cpu_red")
def __init__(self): apm_conf = re_joint_dir_by_os("conf|ns.ini") self.all_agent_ip = get_conf_pat(apm_conf, "all_agent_ip", "ips") self.install_path = get_conf_pat(apm_conf, "agent", "install_path")
def __init__(self): ns_conf = re_joint_dir_by_os("conf|ns.ini") self.server_ip = get_conf_pat(ns_conf, "server", "ip") self.server_port = get_conf_pat(ns_conf, "server", "port") self.agent_interval = get_conf_pat(ns_conf, "agent", "interval")
def __init__(self): # 读取conf目录下的ns.ini文件 ns_conf = re_joint_dir_by_os("conf|ns.ini") # 数据库数据保存天数 self.dbsave = get_conf_pat(ns_conf, "server", "sqlite3savedata")