OCT 1. 增加vCPE设备上下线通知接口配置项
This commit is contained in:
parent
af6632c3b5
commit
07313b4577
|
@ -14,6 +14,7 @@ application:
|
||||||
|
|
||||||
agent: {
|
agent: {
|
||||||
iptv_report_url = "http://127.0.0.1:50012/vcpe/dhcp/info"; # IPTV 设备上报接口
|
iptv_report_url = "http://127.0.0.1:50012/vcpe/dhcp/info"; # IPTV 设备上报接口
|
||||||
|
moniter_rep_url = "http://127.0.0.1:50012/vcpe/dhcp/restart"; # vCPE设备上下线接口
|
||||||
};
|
};
|
||||||
|
|
||||||
# 硬件监控相关配置内容
|
# 硬件监控相关配置内容
|
||||||
|
|
|
@ -67,6 +67,7 @@ static CFG_ITEM g_cfgItem[] = {
|
||||||
DEF_CFG_ITEM(CFG_HARDWARE_REFRESH, "system.system_info_refresh", VAL_INT, "10", "Monitor hardware information upgrade frequency"),
|
DEF_CFG_ITEM(CFG_HARDWARE_REFRESH, "system.system_info_refresh", VAL_INT, "10", "Monitor hardware information upgrade frequency"),
|
||||||
// Agent 配置
|
// Agent 配置
|
||||||
DEF_CFG_ITEM(CFG_AGENT_IPTV_POST_URL, "agent.iptv_report_url", VAL_STR, "", "IPTV report URL"),
|
DEF_CFG_ITEM(CFG_AGENT_IPTV_POST_URL, "agent.iptv_report_url", VAL_STR, "", "IPTV report URL"),
|
||||||
|
DEF_CFG_ITEM(CFG_AGENT_MONITER_URL, "moniter_rep_url", VAL_STR, "", "vCPE moniter report URL"),
|
||||||
/* 系统监控设备相配置 */
|
/* 系统监控设备相配置 */
|
||||||
DEF_CFG_ITEM(CFG_WATCH_CPU, "watch_params.cpu", VAL_BOOL, "1", "Monitor cpu information"),
|
DEF_CFG_ITEM(CFG_WATCH_CPU, "watch_params.cpu", VAL_BOOL, "1", "Monitor cpu information"),
|
||||||
DEF_CFG_ITEM(CFG_WATCH_MEMORY, "watch_params.memory", VAL_BOOL, "1", "Monitor memory information"),
|
DEF_CFG_ITEM(CFG_WATCH_MEMORY, "watch_params.memory", VAL_BOOL, "1", "Monitor memory information"),
|
||||||
|
|
|
@ -55,6 +55,10 @@ const char *config_get_agent_iptv_report_url() {
|
||||||
return cfg_get_string_value(CFG_AGENT_IPTV_POST_URL);
|
return cfg_get_string_value(CFG_AGENT_IPTV_POST_URL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *config_get_agent_moniter_report_url() {
|
||||||
|
return cfg_get_string_value(CFG_AGENT_MONITER_URL);
|
||||||
|
}
|
||||||
|
|
||||||
const char *config_get_http_server_addr() {
|
const char *config_get_http_server_addr() {
|
||||||
return cfg_get_string_value(CFG_HTTP_SVR_ADDR);
|
return cfg_get_string_value(CFG_HTTP_SVR_ADDR);
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,6 +36,7 @@ typedef enum {
|
||||||
CFG_HARDWARE_WATCH,
|
CFG_HARDWARE_WATCH,
|
||||||
CFG_HARDWARE_REFRESH,
|
CFG_HARDWARE_REFRESH,
|
||||||
CFG_AGENT_IPTV_POST_URL,
|
CFG_AGENT_IPTV_POST_URL,
|
||||||
|
CFG_AGENT_MONITER_URL,
|
||||||
CFG_WATCH_CPU,
|
CFG_WATCH_CPU,
|
||||||
CFG_WATCH_MEMORY,
|
CFG_WATCH_MEMORY,
|
||||||
CFG_WATCH_DISK,
|
CFG_WATCH_DISK,
|
||||||
|
@ -136,6 +137,7 @@ const char *config_get_vxlan_peer_ip();
|
||||||
const char *config_get_vxlan_pkg_filter();
|
const char *config_get_vxlan_pkg_filter();
|
||||||
#endif
|
#endif
|
||||||
const char *config_get_agent_iptv_report_url();
|
const char *config_get_agent_iptv_report_url();
|
||||||
|
const char *config_get_agent_moniter_report_url();
|
||||||
const char *config_get_http_server_addr();
|
const char *config_get_http_server_addr();
|
||||||
unsigned int config_get_http_server_port();
|
unsigned int config_get_http_server_port();
|
||||||
int config_get_http_server_tcp_nodelay();
|
int config_get_http_server_tcp_nodelay();
|
||||||
|
|
Loading…
Reference in New Issue