修改流量统计日志级别为debug,新增更新协议类型码表sql,流量统计超时时间设置为1分钟

This commit is contained in:
zhanghongqing
2018-12-10 21:30:58 +08:00
parent c13038c8eb
commit 8a365ca749
5 changed files with 219 additions and 42 deletions

View File

@@ -69,21 +69,20 @@ public class HttpClientUtil {
URIBuilder uriBuilder = new URIBuilder(destUrl);
System.err.println(uriBuilder);
url=uriBuilder.toString();
logger.info("流量统计数据请求路径:"+url);
logger.debug("流量统计数据请求路径:"+url);
//创建连接
WebTarget wt = ClientUtil.getWebTarger(url);
logger.info("getMsg url:"+url);
//获取响应结果
Builder header = wt.request(MediaType.APPLICATION_JSON).header("Content-Type", MediaType.APPLICATION_JSON);
response= header.get();
int status = response.getStatus();
if (status == HttpStatus.SC_OK) {
if (status != HttpStatus.SC_OK) {
result= response.readEntity(String.class);
//调用处理数据方法
logger.info("获取消息成功,相应内容如下: " + result);
logger.debug("获取消息成功,相应内容如下: " + result);
} else {
logger.error("获取消息失败,相应内容如下: " + result);
throw new ConnectException("流量统计服务接口连接错误"+result);
logger.error("获取消息失败,相应内容如下: " + response);
throw new ConnectException("流量统计服务接口连接错误"+response);
}
} catch (Exception e) {
throw e;
@@ -276,9 +275,9 @@ public class HttpClientUtil {
//调用处理数据方法
result = galaxyMessageFormat(result);
if(!StringUtil.isEmpty(result) && result.length() > 501) {
logger.info("获取消息成功,相应内容如下: " + result.substring(0, 500));
logger.debug("获取消息成功,相应内容如下: " + result.substring(0, 500));
}else {
logger.info("获取消息成功,相应内容如下: " + result);
logger.debug("获取消息成功,相应内容如下: " + result);
}
} else {

View File

@@ -71,7 +71,7 @@ public class DashboardController extends BaseController{
Gson gson = new GsonBuilder().create();
fromJsonList = gson.fromJson(string, new TypeToken<Map>(){}.getType());
list = (ArrayList) fromJsonList.get("data");
logger.info("活跃端口数据"+fromJsonList);
logger.debug("活跃端口数据"+fromJsonList);
return list;
} catch (Exception e) {
e.printStackTrace();
@@ -92,7 +92,7 @@ public class DashboardController extends BaseController{
String string = HttpClientUtil.get(Constants.DASHBOARD_URL+Constants.TRAFFIC_IPACTIVE);
Gson gson = new GsonBuilder().create();
fromJsonList = gson.fromJson(string, new TypeToken<Map>(){}.getType());
logger.info("活跃IP数据"+fromJsonList);
logger.debug("活跃IP数据"+fromJsonList);
list = (ArrayList) fromJsonList.get("data");
return list;
} catch (Exception e) {
@@ -114,7 +114,7 @@ public class DashboardController extends BaseController{
String string = HttpClientUtil.get(Constants.DASHBOARD_URL+Constants.TRAFFIC_IPACTIVE_FIVEMINUTE);
Gson gson = new GsonBuilder().create();
fromJsonList = gson.fromJson(string, new TypeToken<Map>(){}.getType());
logger.info("活跃IP1小时,间隔5分钟数据"+fromJsonList);
logger.debug("活跃IP1小时,间隔5分钟数据"+fromJsonList);
list = (ArrayList) fromJsonList.get("data");
return list;
} catch (Exception e) {
@@ -163,7 +163,7 @@ public class DashboardController extends BaseController{
Gson gson = getIntGson();
fromJsonList = gson.fromJson(string, new TypeToken<Map<String, Object>>(){}.getType());
logger.info("活跃IP1小时"+fromJsonList);
logger.debug("活跃IP1小时"+fromJsonList);
ipActiveList = gson.fromJson(fromJsonList.get("data").toString(), new TypeToken<List<TrafficIpActiveStatistic>>() {}.getType()) ;
} catch (Exception e) {
e.printStackTrace();
@@ -246,7 +246,7 @@ public class DashboardController extends BaseController{
}
resultList.add(map);
}
logger.info("协议统计"+fromJsonList);
logger.debug("协议统计"+fromJsonList);
return resultList;
}
} catch (Exception e) {
@@ -285,7 +285,7 @@ public class DashboardController extends BaseController{
}
resultList.add(map);
}
logger.info("app流量分析"+fromJsonList);
logger.debug("app流量分析"+fromJsonList);
return resultList;
}
} catch (Exception e) {
@@ -324,7 +324,7 @@ public class DashboardController extends BaseController{
}
resultList.add(map);
}
logger.info("终端用户-获取操作系统列表"+fromJsonList);
logger.debug("终端用户-获取操作系统列表"+fromJsonList);
return resultList;
}
} catch (Exception e) {
@@ -382,7 +382,7 @@ public class DashboardController extends BaseController{
resultList.add(map);
}
}
logger.info("终端用户-获取操作系统下浏览器类型"+fromJsonList);
logger.debug("终端用户-获取操作系统下浏览器类型"+fromJsonList);
return resultList;
} catch (Exception e) {
e.printStackTrace();
@@ -421,7 +421,7 @@ public class DashboardController extends BaseController{
resultList.add(map);
}
}
logger.info("终端用户-获取浏览器列表"+fromJsonList);
logger.debug("终端用户-获取浏览器列表"+fromJsonList);
return resultList;
} catch (Exception e) {
e.printStackTrace();
@@ -478,7 +478,7 @@ public class DashboardController extends BaseController{
resultList.add(map);
}
}
logger.info("终端用户-获取浏览器下操作系统类型"+fromJsonList);
logger.debug("终端用户-获取浏览器下操作系统类型"+fromJsonList);
return resultList;
} catch (Exception e) {
e.printStackTrace();
@@ -523,7 +523,7 @@ public class DashboardController extends BaseController{
resultList.add(map);
}
}
logger.info("http网站流量分析数据"+fromJsonList);
logger.debug("http网站流量分析数据"+fromJsonList);
return resultList;
} catch (Exception e) {
e.printStackTrace();
@@ -573,7 +573,7 @@ public class DashboardController extends BaseController{
}
}
logger.info("http某个网站子域名流量统计"+fromJsonList);
logger.debug("http某个网站子域名流量统计"+fromJsonList);
return resultList;
} catch (Exception e) {
e.printStackTrace();
@@ -640,7 +640,7 @@ public class DashboardController extends BaseController{
resultList.add(map);
}
}
logger.info("http网站主题流量分析数据"+fromJsonList);
logger.debug("http网站主题流量分析数据"+fromJsonList);
return resultList;
} catch (Exception e) {
e.printStackTrace();

View File

@@ -1,8 +1,12 @@
package com.nis.web.controller.dashboard;
import java.lang.reflect.Type;
import java.net.URLEncoder;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -31,6 +35,7 @@ import com.google.gson.reflect.TypeToken;
import com.nis.domain.PageLog;
import com.nis.domain.dashboard.TrafficIpActiveStatistic;
import com.nis.util.Constants;
import com.nis.util.DateUtil;
import com.nis.util.StringUtil;
import com.nis.util.httpclient.HttpClientUtil;
import com.nis.web.controller.BaseController;
@@ -93,7 +98,7 @@ public class TrafficStatisticsInfoController extends BaseController {
m.put("inoctetsNum", inoctetsNum);
m.put("outoctetsNum", outoctetsNum);
logger.info("统计流量信息数据"+fromJsonList);
logger.debug("统计流量信息数据"+fromJsonList);
return m;
} catch (Exception e) {
e.printStackTrace();
@@ -103,7 +108,14 @@ public class TrafficStatisticsInfoController extends BaseController {
}
@RequestMapping(value="bandwidthList")
public String bandwidthList( HttpServletRequest request, HttpServletResponse response, Model model){
public String bandwidthList(Model model){
Calendar cal = Calendar. getInstance ();
cal.setTime(new Date());
String now = new SimpleDateFormat( "yyyy-MM-dd HH:mm:ss" ).format(cal.getTime());//获取到完整的时间
cal.set(Calendar.HOUR_OF_DAY, cal.get(Calendar.HOUR_OF_DAY) - 1);
String oneHoursAgo = new SimpleDateFormat( "yyyy-MM-dd HH:mm:ss" ).format(cal.getTime());
model.addAttribute("beginDate", oneHoursAgo);
model.addAttribute("endDate", now);
return "/dashboard/trafficBandwidthList";
}
/**
@@ -128,7 +140,7 @@ public class TrafficStatisticsInfoController extends BaseController {
String string = HttpClientUtil.get(url);
Gson gson = new GsonBuilder().create();
fromJsonList = gson.fromJson(string, new TypeToken<Map>(){}.getType());
logger.info(searchAction+"动作间隔5分钟数据"+fromJsonList);
logger.debug(searchAction+"动作间隔5分钟数据"+fromJsonList);
resultList = (ArrayList) fromJsonList.get("data");
} catch (Exception e) {
e.printStackTrace();
@@ -156,7 +168,7 @@ public class TrafficStatisticsInfoController extends BaseController {
String string = HttpClientUtil.get(url);
Gson gson = new GsonBuilder().create();
fromJsonList = gson.fromJson(string, new TypeToken<Map>(){}.getType());
logger.info("带宽1小时,间隔5分钟数据"+fromJsonList);
logger.debug("带宽1小时,间隔5分钟数据"+fromJsonList);
List list = (ArrayList) fromJsonList.get("data");
if(!StringUtil.isEmpty(list)){
map=(Map) list.get(0);
@@ -180,15 +192,20 @@ public class TrafficStatisticsInfoController extends BaseController {
*/
@RequestMapping(value="protocolList")
@ResponseBody
public List protocolList(){
public List protocolList(Model model,@RequestParam(required=false)String searchFoundStartTime,@RequestParam(required=false)String searchFoundEndTime){
Map<String, Object> fromJsonList = new HashMap<String, Object>();
List list = new ArrayList();
String url = Constants.DASHBOARD_URL+Constants.TRAFFIC_PROTOCOL_LIST;
try {
if(!StringUtil.isBlank(searchFoundStartTime)&&!StringUtil.isBlank(searchFoundEndTime)){
searchFoundStartTime=URLEncoder.encode(searchFoundStartTime, "UTF-8");
searchFoundEndTime=URLEncoder.encode(searchFoundEndTime, "UTF-8");
url+="?searchFoundStartTime="+searchFoundStartTime+"&searchFoundEndTime="+searchFoundEndTime;
}
String string = HttpClientUtil.get(url);
Gson gson = new GsonBuilder().create();
fromJsonList = gson.fromJson(string, new TypeToken<Map>(){}.getType());
logger.info("协议详情5分钟数据"+fromJsonList);
logger.debug("协议详情5分钟数据"+fromJsonList);
list = (ArrayList) fromJsonList.get("data");
Long totalLink=0l;
Long totalPackets=0l;
@@ -229,19 +246,24 @@ public class TrafficStatisticsInfoController extends BaseController {
return "/dashboard/trafficAppTypeList";
}
/**
* 协议详情统计图跟表
* App详情统计图跟表
*/
@RequestMapping(value="appList")
@ResponseBody
public List appList(){
public List appList(@RequestParam(value="searchFoundStartTime",required=false)String searchFoundStartTime,@RequestParam(value="searchFoundEndTime",required=false)String searchFoundEndTime){
Map<String, Object> fromJsonList = new HashMap<String, Object>();
List list = new ArrayList();
String url = Constants.DASHBOARD_URL+Constants.TRAFFIC_APP_LIST;
try {
if(!StringUtil.isBlank(searchFoundStartTime)&&!StringUtil.isBlank(searchFoundEndTime)){
searchFoundStartTime=URLEncoder.encode(searchFoundStartTime, "UTF-8");
searchFoundEndTime=URLEncoder.encode(searchFoundEndTime, "UTF-8");
url+="?searchFoundStartTime="+searchFoundStartTime+"&searchFoundEndTime="+searchFoundEndTime;
}
String string = HttpClientUtil.get(url);
Gson gson = new GsonBuilder().create();
fromJsonList = gson.fromJson(string, new TypeToken<Map>(){}.getType());
logger.info("app详情5分钟数据"+fromJsonList);
logger.debug("app详情5分钟数据"+fromJsonList);
list = (ArrayList) fromJsonList.get("data");
Long totalLink=0l;
Long totalPackets=0l;

View File

@@ -0,0 +1,156 @@
/*
Navicat MySQL Data Transfer
Source Server : 192.168.10.204_3306
Source Server Version : 50505
Source Host : 192.168.10.204:3306
Source Database : gwall_dev
Target Server Type : MYSQL
Target Server Version : 50505
File Encoding : 65001
Date: 2018-12-09 19:38:47
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for code_protocol_type_dic
-- ----------------------------
DROP TABLE IF EXISTS `code_protocol_type_dic`;
CREATE TABLE `code_protocol_type_dic` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`protocol_type` varchar(255) DEFAULT '',
`view_code` varchar(255) DEFAULT NULL,
`service_id` int(11) DEFAULT NULL,
`remarks` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=124 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of code_protocol_type_dic
-- ----------------------------
INSERT INTO `code_protocol_type_dic` VALUES ('1', '超出协议范筹', '0', null, '');
INSERT INTO `code_protocol_type_dic` VALUES ('2', 'TCP', '10001', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('3', 'UDP', '10002', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('4', 'DNS', '10003', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('5', 'FTP', '10004', '105', '');
INSERT INTO `code_protocol_type_dic` VALUES ('6', 'FTPS', '10005', '105', '');
INSERT INTO `code_protocol_type_dic` VALUES ('7', 'GRE', '10006', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('8', 'HTTP', '10007', '104', '行为见行为类型sheet\nHTTP Streaming\nMobile_HTTP_Streaming\nHTTP_File_Transfer\nHTTP_Browsing\nMobile_HTTP_Browsing\nHTTP DownloadManager\nHTTP_Audio\nMobile_HTTP_DownloadManager HTTP TUNNEL');
INSERT INTO `code_protocol_type_dic` VALUES ('9', 'HTTPS', '10008', '104', '');
INSERT INTO `code_protocol_type_dic` VALUES ('10', 'ICMP', '10009', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('11', 'IKE', '10010', '102', '');
INSERT INTO `code_protocol_type_dic` VALUES ('12', 'IMAP', '10011', '106', '');
INSERT INTO `code_protocol_type_dic` VALUES ('13', 'IMAPS', '10012', '106', '');
INSERT INTO `code_protocol_type_dic` VALUES ('14', 'IPSEC', '10013', '102', '');
INSERT INTO `code_protocol_type_dic` VALUES ('15', 'XMPP', '10014', '101', '');
INSERT INTO `code_protocol_type_dic` VALUES ('16', 'L2TP', '10015', '103', '');
INSERT INTO `code_protocol_type_dic` VALUES ('17', 'NTP', '10016', '112', '');
INSERT INTO `code_protocol_type_dic` VALUES ('18', 'POP3', '10017', '106', '');
INSERT INTO `code_protocol_type_dic` VALUES ('19', 'POP3 SSL', '10018', '106', '');
INSERT INTO `code_protocol_type_dic` VALUES ('20', 'PPTP', '10019', '103', '');
INSERT INTO `code_protocol_type_dic` VALUES ('21', 'Quic', '10020', '104', '');
INSERT INTO `code_protocol_type_dic` VALUES ('22', 'SIP', '10021', '101', '');
INSERT INTO `code_protocol_type_dic` VALUES ('23', 'smb', '10022', '112', '');
INSERT INTO `code_protocol_type_dic` VALUES ('24', 'SMTP', '10023', '106', '');
INSERT INTO `code_protocol_type_dic` VALUES ('25', 'SMTPS', '10024', '106', '');
INSERT INTO `code_protocol_type_dic` VALUES ('26', 'SPDY', '10025', '104', 'google tcp');
INSERT INTO `code_protocol_type_dic` VALUES ('27', 'SSH', '10028', '109', '');
INSERT INTO `code_protocol_type_dic` VALUES ('28', 'SSL', '10029', '104', '');
INSERT INTO `code_protocol_type_dic` VALUES ('29', 'SOCKS', '10030', '108', 'procy');
INSERT INTO `code_protocol_type_dic` VALUES ('30', 'BITTORRENT', '10031', '105', '');
INSERT INTO `code_protocol_type_dic` VALUES ('31', 'RTSP', '10032', '110', '');
INSERT INTO `code_protocol_type_dic` VALUES ('32', 'TELNET', '10033', '109', '');
INSERT INTO `code_protocol_type_dic` VALUES ('33', 'UTP', '10034', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('34', 'FASTTRACK', '10035', '105', '');
INSERT INTO `code_protocol_type_dic` VALUES ('35', 'SKINNY', '10036', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('36', 'IAX', '10037', '114', '');
INSERT INTO `code_protocol_type_dic` VALUES ('37', 'MGCP', '10038', '114', '');
INSERT INTO `code_protocol_type_dic` VALUES ('38', 'RTCP', '10039', '114', '');
INSERT INTO `code_protocol_type_dic` VALUES ('39', 'RTP', '10040', '114', '');
INSERT INTO `code_protocol_type_dic` VALUES ('40', 'VNC', '10041', '109', '');
INSERT INTO `code_protocol_type_dic` VALUES ('41', 'XDMCP', '10042', '109', '');
INSERT INTO `code_protocol_type_dic` VALUES ('42', 'RDP', '10043', '109', '');
INSERT INTO `code_protocol_type_dic` VALUES ('43', 'AIMINI', '10044', '105', '');
INSERT INTO `code_protocol_type_dic` VALUES ('44', 'IPP', '10045', '112', '');
INSERT INTO `code_protocol_type_dic` VALUES ('45', 'NFS', '10046', '105', '');
INSERT INTO `code_protocol_type_dic` VALUES ('46', 'TFTP', '10047', '105', '');
INSERT INTO `code_protocol_type_dic` VALUES ('47', 'BGP', '10048', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('48', 'DHCP', '10049', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('49', 'DHCPV6', '10050', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('50', 'FINGER', '10051', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('51', 'KERBEROS', '10052', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('52', 'LDAP', '10053', '112', '');
INSERT INTO `code_protocol_type_dic` VALUES ('53', 'MDNS', '10054', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('54', 'NNTP', '10055', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('55', 'SNMP', '10056', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('56', 'SSDP', '10057', '112', '');
INSERT INTO `code_protocol_type_dic` VALUES ('57', 'SYSLOG', '10058', '112', '');
INSERT INTO `code_protocol_type_dic` VALUES ('58', 'WHOIS', '10059', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('59', 'RADIUS', '10060', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('60', 'OPENVPN', '10061', '113', '');
INSERT INTO `code_protocol_type_dic` VALUES ('61', 'STUN', '10062', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('62', 'TEREDO', '10063', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('63', 'GTP', '10064', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('64', 'RTMP', '10065', '110', '');
INSERT INTO `code_protocol_type_dic` VALUES ('65', 'chargen_tcp_udp', '10066', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('66', 'llmnr_udp', '10067', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('67', 'nbns_udp', '10068', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('68', 'NETBIOS', '10069', '112', '');
INSERT INTO `code_protocol_type_dic` VALUES ('69', 'DirectDownloadLink', '10070', '105', '');
INSERT INTO `code_protocol_type_dic` VALUES ('70', 'I23V5', '10071', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('71', 'DirectConnect', '10072', '105', '');
INSERT INTO `code_protocol_type_dic` VALUES ('72', 'OFF', '10073', null, '');
INSERT INTO `code_protocol_type_dic` VALUES ('73', 'OGG', '10074', '110', '');
INSERT INTO `code_protocol_type_dic` VALUES ('74', 'MPEG', '10075', '110', '');
INSERT INTO `code_protocol_type_dic` VALUES ('75', 'IRC', '10076', '101', '');
INSERT INTO `code_protocol_type_dic` VALUES ('76', 'Jabber', '10077', '101', '');
INSERT INTO `code_protocol_type_dic` VALUES ('77', 'VRRP', '10078', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('78', 'IGMP', '10079', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('79', 'EGP', '10080', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('80', 'SCTP', '10081', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('81', 'OSPF', '10082', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('82', 'IP in IP', '10083', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('83', 'ICMPv6', '10084', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('84', 'DCE RPC', '10085', '109', '');
INSERT INTO `code_protocol_type_dic` VALUES ('85', 'NetFlow_IPFIX', '10086', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('86', 'sFlow', '10087', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('87', 'HTTP Connect (SSL over HTTP)', '10088', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('88', 'SAP', '10089', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('89', 'UPnP', '10090', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('90', 'H323', '10091', '114', '');
INSERT INTO `code_protocol_type_dic` VALUES ('91', 'Megaco', '10092', '114', '');
INSERT INTO `code_protocol_type_dic` VALUES ('92', 'bacnet', '10094', '109', '');
INSERT INTO `code_protocol_type_dic` VALUES ('93', 'bjnp', '10096', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('94', 'cgp', '10097', '109', '');
INSERT INTO `code_protocol_type_dic` VALUES ('95', 'dahua', '10098', '116', '');
INSERT INTO `code_protocol_type_dic` VALUES ('96', 'dcc', '10099', '101', '');
INSERT INTO `code_protocol_type_dic` VALUES ('97', 'kademlia', '10100', '105', '');
INSERT INTO `code_protocol_type_dic` VALUES ('98', 'lansync', '10101', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('99', 'ldap_ad', '10102', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('100', 'llp2p', '10103', '110', '');
INSERT INTO `code_protocol_type_dic` VALUES ('101', 'mfnp', '10104', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('102', 'mp2p', '10105', '105', '');
INSERT INTO `code_protocol_type_dic` VALUES ('103', 'msn_cache', '10106', '101', '');
INSERT INTO `code_protocol_type_dic` VALUES ('104', 'msn_video', '10107', '101', '');
INSERT INTO `code_protocol_type_dic` VALUES ('105', 'msnc', '10108', '105', '');
INSERT INTO `code_protocol_type_dic` VALUES ('106', 'netflow', '10109', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('107', 'notes_rpc', '10110', '13', '');
INSERT INTO `code_protocol_type_dic` VALUES ('108', 'esp', '10111', '113', '');
INSERT INTO `code_protocol_type_dic` VALUES ('109', 'fbcdn_ssl', '10112', '113', '');
INSERT INTO `code_protocol_type_dic` VALUES ('110', 'forticlient_sslvpn', '10113', '113', '');
INSERT INTO `code_protocol_type_dic` VALUES ('111', 'rfb', '10114', '109', '');
INSERT INTO `code_protocol_type_dic` VALUES ('112', 'rtmfp', '10115', '101', '');
INSERT INTO `code_protocol_type_dic` VALUES ('113', 'slp', '10117', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('114', 'steam_inhomebroadcast', '10118', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('115', 'steam_localbroadcast', '10119', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('116', 'tpkt', '10120', '114', '');
INSERT INTO `code_protocol_type_dic` VALUES ('117', 'xmpps', '10121', '101', '');
INSERT INTO `code_protocol_type_dic` VALUES ('118', 'S7COMM', '10122', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('119', 'CitrixCGP', '10123', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('120', 'ID_Protocol', '10124', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('121', 'SMTP_Secure', '10125', '106', '');
INSERT INTO `code_protocol_type_dic` VALUES ('122', 'NAT-PMP', '10126', '107', '');
INSERT INTO `code_protocol_type_dic` VALUES ('123', 'Unspecified', '268435455', null, '');

View File

@@ -419,7 +419,7 @@ function ajaxinfo(){
url:'${ctx}/dashboard/traffic/info',
type : "get" ,
dataType:'json',
cache:false,async:true,timeout:10000,//超时时间设置,查询接口时间过长超时
cache:false,async:true,timeout:60000,//超时时间设置,查询接口时间过长超时
success:function (data){
var loopConnNum =loopConnNum= data.loopConnNum;
var rejectNum =data.rejectNum;
@@ -545,7 +545,7 @@ function protocolList(){
url: '${ctx}/dashboard/protocol',
type : "get" ,
dataType:"json",
cache:false,async:true,timeout:10000,//超时时间设置,查询接口时间过长超时
cache:false,async:true,timeout:60000,//超时时间设置,查询接口时间过长超时
success:function (rs) {
if(rs!=null&&rs.length>0&&rs[0].error!=null){
top.$.jBox.tip("<spring:message code='request_service_failed'/>", "<spring:message code='info'/>");
@@ -568,7 +568,7 @@ function ipActiveList(){
url: '${ctx}/dashboard/ipActive',
type : "get" ,
dataType:"json",
cache:false,async:true,timeout:10000,//超时时间设置,查询接口时间过长超时
cache:false,async:true,timeout:60000,//超时时间设置,查询接口时间过长超时
success:function (rs) {
if(rs!=null&&rs.length>0&&rs[0].error!=null){
top.$.jBox.tip("<spring:message code='request_service_failed'/>", "<spring:message code='info'/>");
@@ -591,7 +591,7 @@ function portActiveList(){
url: '${ctx}/dashboard/portActive',
type : "get" ,
dataType:"json",
cache:false,async:true,timeout:10000,//超时时间设置,查询接口时间过长超时
cache:false,async:true,timeout:60000,//超时时间设置,查询接口时间过长超时
beforeSend: function () {
var msg = "OnLoading...";
@@ -651,7 +651,7 @@ function appTypeList(){
url: '${ctx}/dashboard/app',
type : "get" ,
dataType:"json",
cache:false,async:true,timeout:10000,//超时时间设置,查询接口时间过长超时
cache:false,async:true,timeout:60000,//超时时间设置,查询接口时间过长超时
success:function (rs) {
if(rs!=null&&rs.length>0&&rs[0].error!=null){
top.$.jBox.tip("<spring:message code='request_service_failed'/>", "<spring:message code='info'/>");
@@ -674,7 +674,7 @@ function systemList(){
url: '${ctx}/dashboard/osList',
type : "get" ,
dataType:"json",
cache:false,async:true,timeout:10000,//超时时间设置,查询接口时间过长超时
cache:false,async:true,timeout:60000,//超时时间设置,查询接口时间过长超时
beforeSend: function () {
var msg = "OnLoading...";
@@ -749,7 +749,7 @@ function osClick(osType,obj){
type : "get" ,
data:{"osType":osType},
dataType:"json",
cache:false,async:true,timeout:10000,//超时时间设置,查询接口时间过长超时
cache:false,async:true,timeout:60000,//超时时间设置,查询接口时间过长超时
success:function (rs) {
echart_5(rs);
@@ -770,7 +770,7 @@ function bsClick(bsType,obj){
type : "get" ,
data:{"bsType":bsType},
dataType:"json",
cache:false,async:true,timeout:10000,//超时时间设置,查询接口时间过长超时
cache:false,async:true,timeout:60000,//超时时间设置,查询接口时间过长超时
success:function (rs) {
echart_2(rs);
@@ -790,7 +790,7 @@ function browserList() {
url: '${ctx}/dashboard/bsList',
type : "get" ,
dataType:"json",
cache:false,async:true,timeout:10000,//超时时间设置,查询接口时间过长超时
cache:false,async:true,timeout:60000,//超时时间设置,查询接口时间过长超时
beforeSend: function () {
var msg = "OnLoading...";
var trLen = $("#tbodyData1 tr").length;
@@ -854,7 +854,7 @@ function websiteList() {
url: '${ctx}/dashboard/websiteList',
type : "get" ,
dataType:"json",
cache:false,async:true,timeout:10000,//超时时间设置,查询接口时间过长超时
cache:false,async:true,timeout:60000,//超时时间设置,查询接口时间过长超时
beforeSend: function () {
var msg = "OnLoading...";
var trLen = $("#tbodyData2 tr").length;
@@ -923,7 +923,7 @@ function webClick(websiteServiceId,obj){
type : "get" ,
data:{"websiteServiceId":websiteServiceId},
dataType:"json",
cache:false,async:true,timeout:10000,//超时时间设置,查询接口时间过长超时
cache:false,async:true,timeout:60000,//超时时间设置,查询接口时间过长超时
success:function (rs) {
echart_6(rs);
closeTip();
@@ -940,7 +940,7 @@ function topicAndDomainList(){
url: '${ctx}/dashboard/topicAndDomainList',
type : "get" ,
dataType:"json",
cache:false,async:true,timeout:10000,//超时时间设置,查询接口时间过长超时
cache:false,async:true,timeout:60000,//超时时间设置,查询接口时间过长超时
success:function (rs) {
//主题域名流量统计图
echart_topic_domain(rs);