美文网首页学习D3数据可视化
D3.js-v4.*学习笔记一(完成一个force力导向图)

D3.js-v4.*学习笔记一(完成一个force力导向图)

作者: Notput | 来源:发表于2017-01-17 03:27 被阅读653次

    内容简介:

    实现一个基于d3.js v4.*版本的力导向图。大致分为几个步骤:

    1 获取适合force图表的数据。
    2 转换数据为force能识别的结构。
    3 在页面中添加svg标签和一些初始化参数。
    4 绘制force 节点。
    5 绘制节点之前的连线。
    6 在节点上显示对应的说明。
    7 在节点上添加事件(这里可能只介绍鼠标经过和双击事件)。
    (以下功能请看笔记二 )
    8 在连线上显示箭头方向和对应的说明。
    9 替换节点为某种图标。
    10 使图标不能拖出显示窗外。
    11 使节点不能重叠。
    12 实现动态修改数据使其图表发生变化。
    13 使其图表可以自适应。
    14 缩放force。

    ** 关于d3.js v4的API说明请查看此链接 **

    1 获取数据

    数据可以有很多种手段获取,比如ajax或者websokect或者直接读取某个json文件或者当前上下文里面定义的数据或者直接使用d3.request等函数实现等等。这里为了方便测试就直接在上下文重定义个写死的数据,这个数据是json格式的有点多所以放在了最后附录里面。

    2 转换数据为force能识别的结构

    转换数据为力导向图数据一般使用d3.forceSimulation如下代码:

               .force("link", d3.forceLink().id(function(d){
                  /***
                  指定连线的连接所使用的标示是哪一个字段。
                ***/
            return d.node_node_id;
          }))
                /***
                  设置force的装载方式,这里还很模糊他的作用后面再讲解
                ***/
           .force("charge", d3.forceManyBody())
                /***
                设置force图表的中心点,一般设置为svg宽高的中心点
                宽高的定义可以为全局变量,这里没有写出他们的定义,如需测试需要自己定义。
              ***/
               .force("center", d3.forceCenter(width_2 / 2, height_2 / 2))
                /***
              设置force的节点数据
              ***/
               .nodes(graph.nodes);
    

    通过这种方法转换后就会在原来定义的数据结构里面多出一些关于节点坐标和连线的原始坐标和目标坐标等字段,可以通过console.log(graph)的方式在浏览器控制台查看转换后的不同。

    3 在页面中添加svg标签和一些初始化参数

     var svg_4 = d3.select("#host_service_state")
                    .append("svg")
                    .attr("width", width_2)
                    .attr("height", height_2);
    //这里使用d3的选择器来选择一个id为host_service_state的div并在里面添加一个svg标签
    //并设置这个svg的宽度和高度。为实现自适应后面还会对这点进行修改。
    

    4 绘制force 节点

    关于svg中各种元素的说明请看此教程

    //这里节点都是圆形展示的,所以通过d3在svg标签中添加了一个g(group)对所有circle(圆形)标签
    //进行一个分组然后在里面根据nodes的个数添加多个circle,并设置每个圆的半径为20像素。
    //填充的颜色为使用schemeCategory20生成的一个颜色组合,这里根据节点的下标分别选择不同的颜色,后面会替换为图标。
    //再使用d3的call()函数使其在每个节点创建完后调用d3.drag()相关拖拽的事件监听,这分别对拖拽开始,拖拽中,拖拽结束做了监听。
    var color_4 = d3.scaleOrdinal(d3.schemeCategory20);
    var svg_nodes = svg_4.append("g").selectAll("circle")
             .data(graph.nodes)
             .enter()
             .append("circle")
             .attr("r",5) #
             .style("fill",function(d,i){
                 return color_4(i);
             })
             .call(d3.drag().on("start", dragstarted)
          .on("drag", dragged)
          .on("end", dragended));  
    
      //拖拽开始绑定的回调函数参数为node节点,首先判断事件是否活动并设置动画的a曲线值。
     //这个值是设置动画效果的,然后重新渲染。
    //这里fx为当前节点的固定坐标,x为节点的原始坐标。
        function dragstarted(d) {
            if (!d3.event.active) simulation.alphaTarget(0.3).restart();
            d.fx = d.x;
            d.fy = d.y;
        }
    //拖拽中的回调函数,参数还是为node节点,这里不断的更新节点的固定坐标根据鼠标事件的坐标
        function dragged(d) {
            d.fx = d3.event.x;
            d.fy = d3.event.y;
        }
    //拖拽结束回调函数,参数也是node节点,判断事件状态动画系数设置为0结束动画,并设置固定坐标都为null。
        function dragended(d) {
            if (!d3.event.active) simulation.alphaTarget(0);
            d.fx = null;
            d.fy = null;
        }
    
    //对于这几个事件还有点模糊,只有通过调试来看这些事件的作用。
    

    5 绘制节点之前的连线

    //这里在svg的标签中又添加了一个g标签来分组所有连线并通过links来画出所有的线并设置线的颜色为"#ccc"和线宽为1像素。
     var svg_edges = svg_4.append("g").selectAll("line")
                        .data(graph.links)
                        .enter()
                        .append("line")
                        .style("stroke","#ccc")
                        .style("stroke-width",1);
    

    6 在节点上显示对应的说明。

    //添加描述节点的文字,以每个节点的圆心为原点像右移动20像素并向下移动8像素添加一个text标签并设置显示内容
         var svg_texts = svg_4.selectAll("text")
             .data(graph.nodes)
             .enter()
             .append("text")
             .style("fill", "black")
             .attr("dx", 20)
             .attr("dy", 8)
             .text(function(d){
               if(d.node_node_type == "INSTANCE"){
                     return d.node_ins_name;
                 }else{
                    return d.node_display_name;
                 }
             });
    

    7 在节点上添加事件(这里可能只介绍鼠标经过和双击事件)

    .on("dblclick", function(d,i){
                 alert("dblclick");
             })
    .on("mouseover", function(d,i){
                 alert("mouseover");
             })
    //在绘制节点svg_nodes的call前面添加以上代码即可
    

    用谷歌浏览器打开你所写好的html文件得到以下图示:

    Paste_Image.png

    由于简书字数限制剩余部分将在笔记二中继续完成。

    附录:

    json:
    var graph =

    {
        "nodes": [{
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809563000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_group_alias": "Linux Servers",
            "node_output": "PING OK - Packet loss = 0%, RTA = 0.21 ms",
            "node_display_name": "cloud001",
            "node_type": "hosts",
            "node_host_address": "172.31.254.1",
            "node_last_state_change": 1482392477000,
            "node_group_obj_id": 206,
            "node_alias": "cloud001",
            "node_status_update_time": 1482809563000,
            "node_next_check": 1482809620000,
            "node_node_type": "HOST",
            "node_pk_id": 4,
            "node_current_state": 0,
            "node_node_id": "247",
            "node_obj_id": 247,
            "node_parent_obj_id": 264
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809563000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_group_alias": "Linux Servers",
            "node_output": "PING OK - Packet loss = 0%, RTA = 0.21 ms",
            "node_display_name": "cloud001",
            "node_type": "hosts",
            "node_host_address": "172.31.254.1",
            "node_last_state_change": 1482392477000,
            "node_group_obj_id": 206,
            "node_alias": "cloud001",
            "node_status_update_time": 1482809563000,
            "node_next_check": 1482809620000,
            "node_node_type": "INSTANCE",
            "node_pk_id": 4,
            "node_current_state": 0,
            "node_node_id": "1default",
            "node_obj_id": 247,
            "node_parent_obj_id": 264
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809563000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_group_alias": "Linux Servers",
            "node_output": "PING OK - Packet loss = 0%, RTA = 0.21 ms",
            "node_display_name": "cloud001",
            "node_type": "hosts",
            "node_host_address": "172.31.254.1",
            "node_last_state_change": 1482392477000,
            "node_group_obj_id": 206,
            "node_alias": "cloud001",
            "node_status_update_time": 1482809563000,
            "node_next_check": 1482809620000,
            "node_node_type": "GROUP",
            "node_pk_id": 4,
            "node_current_state": 0,
            "node_node_id": "206",
            "node_obj_id": 247,
            "node_parent_obj_id": 264
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809563000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_group_alias": "Linux Servers",
            "node_output": "PING OK - Packet loss = 0%, RTA = 0.21 ms",
            "node_display_name": "cloud002",
            "node_type": "hosts",
            "node_host_address": "172.31.254.2",
            "node_last_state_change": 1482392477000,
            "node_group_obj_id": 206,
            "node_alias": "cloud002",
            "node_status_update_time": 1482809563000,
            "node_next_check": 1482809620000,
            "node_node_type": "HOST",
            "node_pk_id": 3,
            "node_current_state": 0,
            "node_node_id": "246",
            "node_obj_id": 246,
            "node_parent_obj_id": 264
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809563000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_group_alias": "Linux Servers",
            "node_output": "PING OK - Packet loss = 0%, RTA = 0.18 ms",
            "node_display_name": "cloud003",
            "node_type": "hosts",
            "node_host_address": "172.31.254.3",
            "node_last_state_change": 1482392477000,
            "node_group_obj_id": 206,
            "node_alias": "cloud003",
            "node_status_update_time": 1482809563000,
            "node_next_check": 1482809620000,
            "node_node_type": "HOST",
            "node_pk_id": 6,
            "node_current_state": 0,
            "node_node_id": "249",
            "node_obj_id": 249,
            "node_parent_obj_id": 264
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809578000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_group_alias": "Linux Servers",
            "node_output": "PING OK - Packet loss = 0%, RTA = 0.31 ms",
            "node_display_name": "cloud004",
            "node_type": "hosts",
            "node_host_address": "172.31.254.4",
            "node_last_state_change": 1482392477000,
            "node_group_obj_id": 206,
            "node_alias": "cloud004",
            "node_status_update_time": 1482809578000,
            "node_next_check": 1482809637000,
            "node_node_type": "HOST",
            "node_pk_id": 5,
            "node_current_state": 0,
            "node_node_id": "248",
            "node_obj_id": 248,
            "node_parent_obj_id": 264
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809578000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_group_alias": "Linux Servers",
            "node_output": "PING OK - Packet loss = 0%, RTA = 0.26 ms",
            "node_display_name": "cloud005",
            "node_type": "hosts",
            "node_host_address": "172.31.254.5",
            "node_last_state_change": 1482737912000,
            "node_group_obj_id": 206,
            "node_alias": "cloud005",
            "node_status_update_time": 1482809578000,
            "node_next_check": 1482809637000,
            "node_node_type": "HOST",
            "node_pk_id": 7,
            "node_current_state": 0,
            "node_node_id": "250",
            "node_obj_id": 250,
            "node_parent_obj_id": 264
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809578000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_group_alias": "Linux Servers",
            "node_output": "PING OK - Packet loss = 0%, RTA = 0.27 ms",
            "node_display_name": "cloud006",
            "node_type": "hosts",
            "node_host_address": "172.31.254.6",
            "node_last_state_change": 1482737912000,
            "node_group_obj_id": 206,
            "node_alias": "cloud006",
            "node_status_update_time": 1482809578000,
            "node_next_check": 1482809637000,
            "node_node_type": "HOST",
            "node_pk_id": 8,
            "node_current_state": 0,
            "node_node_id": "251",
            "node_obj_id": 251,
            "node_parent_obj_id": 264
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809578000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_group_alias": "Linux Servers",
            "node_output": "PING OK - Packet loss = 0%, RTA = 0.03 ms",
            "node_display_name": "monitor01.cqccs.com",
            "node_type": "hosts",
            "node_host_address": "127.0.0.1",
            "node_last_state_change": 1482737912000,
            "node_group_obj_id": 206,
            "node_alias": "monitor01.cqccs.com",
            "node_status_update_time": 1482809578000,
            "node_next_check": 1482809637000,
            "node_node_type": "HOST",
            "node_pk_id": 2,
            "node_current_state": 0,
            "node_node_id": "232",
            "node_obj_id": 232,
            "node_parent_obj_id": 264
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809563000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_group_alias": "Linux Servers",
            "node_output": "PING OK - Packet loss = 0%, RTA = 0.35 ms",
            "node_display_name": "Ser-ldapDNS",
            "node_type": "hosts",
            "node_host_address": "192.168.10.200",
            "node_last_state_change": 1482809137000,
            "node_group_obj_id": 206,
            "node_alias": "Ser-ldapDNS",
            "node_status_update_time": 1482809563000,
            "node_next_check": 1482809620000,
            "node_node_type": "HOST",
            "node_pk_id": 10,
            "node_current_state": 0,
            "node_node_id": "280",
            "node_obj_id": 280,
            "node_parent_obj_id": 264
        }, {
            "node_display_name": "storage",
            "node_type": "hosts",
            "node_ins_name": "default",
            "node_ins_id": 1,
            "node_is_active": 0,
            "node_node_type": "HOST",
            "node_node_id": "205",
            "node_obj_id": 205
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809574000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_output": "PING OK - Packet loss = 0%, RTA = 0.61 ms",
            "node_display_name": "sw-ruijie1",
            "node_type": "hosts",
            "node_host_address": "172.31.254.252",
            "node_dependent_obj_id": 232,
            "node_last_state_change": 1482737912000,
            "node_alias": "sw-ruijie1",
            "node_status_update_time": 1482809574000,
            "node_next_check": 1482809631000,
            "node_node_type": "HOST",
            "node_pk_id": 9,
            "node_current_state": 0,
            "node_node_id": "264",
            "node_obj_id": 264
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482740833000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_output": "Icinga 2 has been running for 26 minutes and 1 second. Version: r2.6.0-1",
            "node_display_name": "icinga",
            "node_type": "services",
            "node_host_address": "172.31.254.1",
            "node_last_state_change": 1482737936000,
            "node_status_update_time": 1482740833000,
            "node_next_check": 1482740893000,
            "node_node_type": "SERVICE",
            "node_run_on": 247,
            "node_pk_id": 39,
            "node_current_state": 0,
            "node_node_id": "266",
            "node_obj_id": 266
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482740871000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_output": "OK - load average: 0.00, 0.05, 0.11",
            "node_display_name": "load",
            "node_type": "services",
            "node_host_address": "172.31.254.1",
            "node_last_state_change": 1482739329000,
            "node_status_update_time": 1482740871000,
            "node_next_check": 1482740931000,
            "node_node_type": "SERVICE",
            "node_run_on": 247,
            "node_pk_id": 49,
            "node_current_state": 0,
            "node_node_id": "276",
            "node_obj_id": 276
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809574000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_group_alias": "Ping Checks",
            "node_output": "PING OK - Packet loss = 0%, RTA = 0.18 ms",
            "node_display_name": "ping4",
            "node_type": "services",
            "node_host_address": "172.31.254.1",
            "node_last_state_change": 1482238548000,
            "node_group_obj_id": 224,
            "node_status_update_time": 1482809574000,
            "node_next_check": 1482809631000,
            "node_node_type": "SERVICE",
            "node_run_on": 247,
            "node_pk_id": 26,
            "node_current_state": 0,
            "node_node_id": "252",
            "node_obj_id": 252
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809574000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_group_alias": "Ping Checks",
            "node_output": "PING OK - Packet loss = 0%, RTA = 0.18 ms",
            "node_display_name": "ping4",
            "node_type": "services",
            "node_host_address": "172.31.254.1",
            "node_last_state_change": 1482238548000,
            "node_group_obj_id": 224,
            "node_status_update_time": 1482809574000,
            "node_next_check": 1482809631000,
            "node_node_type": "GROUP",
            "node_run_on": 247,
            "node_pk_id": 26,
            "node_current_state": 0,
            "node_node_id": "224",
            "node_obj_id": 252
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809553000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_output": "SSH OK - OpenSSH_6.7p1 Debian-5+deb8u3 (protocol 2.0) ",
            "node_display_name": "ssh",
            "node_type": "services",
            "node_host_address": "172.31.254.1",
            "node_last_state_change": 1482242525000,
            "node_status_update_time": 1482809553000,
            "node_next_check": 1482809612000,
            "node_node_type": "SERVICE",
            "node_run_on": 247,
            "node_pk_id": 35,
            "node_current_state": 0,
            "node_node_id": "261",
            "node_obj_id": 261
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482740833000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_output": "Icinga 2 has been running for 26 minutes and 1 second. Version: r2.6.0-1",
            "node_display_name": "icinga",
            "node_type": "services",
            "node_host_address": "172.31.254.2",
            "node_last_state_change": 1482737937000,
            "node_status_update_time": 1482740833000,
            "node_next_check": 1482740893000,
            "node_node_type": "SERVICE",
            "node_run_on": 246,
            "node_pk_id": 40,
            "node_current_state": 0,
            "node_node_id": "267",
            "node_obj_id": 267
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482740871000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_output": "OK - load average: 0.00, 0.05, 0.11",
            "node_display_name": "load",
            "node_type": "services",
            "node_host_address": "172.31.254.2",
            "node_last_state_change": 1482739329000,
            "node_status_update_time": 1482740871000,
            "node_next_check": 1482740931000,
            "node_node_type": "SERVICE",
            "node_run_on": 246,
            "node_pk_id": 48,
            "node_current_state": 0,
            "node_node_id": "275",
            "node_obj_id": 275
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809574000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_group_alias": "Ping Checks",
            "node_output": "PING OK - Packet loss = 0%, RTA = 0.19 ms",
            "node_display_name": "ping4",
            "node_type": "services",
            "node_host_address": "172.31.254.2",
            "node_last_state_change": 1482238548000,
            "node_group_obj_id": 224,
            "node_status_update_time": 1482809574000,
            "node_next_check": 1482809631000,
            "node_node_type": "SERVICE",
            "node_run_on": 246,
            "node_pk_id": 28,
            "node_current_state": 0,
            "node_node_id": "254",
            "node_obj_id": 254
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809553000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_output": "SSH OK - OpenSSH_6.7p1 Debian-5+deb8u3 (protocol 2.0) ",
            "node_display_name": "ssh",
            "node_type": "services",
            "node_host_address": "172.31.254.2",
            "node_last_state_change": 1482242525000,
            "node_status_update_time": 1482809553000,
            "node_next_check": 1482809612000,
            "node_node_type": "SERVICE",
            "node_run_on": 246,
            "node_pk_id": 32,
            "node_current_state": 0,
            "node_node_id": "258",
            "node_obj_id": 258
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482740833000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_output": "Icinga 2 has been running for 26 minutes and 1 second. Version: r2.6.0-1",
            "node_display_name": "icinga",
            "node_type": "services",
            "node_host_address": "172.31.254.3",
            "node_last_state_change": 1482737937000,
            "node_status_update_time": 1482740833000,
            "node_next_check": 1482740893000,
            "node_node_type": "SERVICE",
            "node_run_on": 249,
            "node_pk_id": 41,
            "node_current_state": 0,
            "node_node_id": "268",
            "node_obj_id": 268
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482740871000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_output": "OK - load average: 0.00, 0.05, 0.11",
            "node_display_name": "load",
            "node_type": "services",
            "node_host_address": "172.31.254.3",
            "node_last_state_change": 1482739329000,
            "node_status_update_time": 1482740871000,
            "node_next_check": 1482740931000,
            "node_node_type": "SERVICE",
            "node_run_on": 249,
            "node_pk_id": 47,
            "node_current_state": 0,
            "node_node_id": "274",
            "node_obj_id": 274
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809561000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_group_alias": "Ping Checks",
            "node_output": "PING OK - Packet loss = 0%, RTA = 0.28 ms",
            "node_display_name": "ping4",
            "node_type": "services",
            "node_host_address": "172.31.254.3",
            "node_last_state_change": 1482238548000,
            "node_group_obj_id": 224,
            "node_status_update_time": 1482809561000,
            "node_next_check": 1482809618000,
            "node_node_type": "SERVICE",
            "node_run_on": 249,
            "node_pk_id": 29,
            "node_current_state": 0,
            "node_node_id": "255",
            "node_obj_id": 255
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809553000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_output": "SSH OK - OpenSSH_6.7p1 Debian-5+deb8u3 (protocol 2.0) ",
            "node_display_name": "ssh",
            "node_type": "services",
            "node_host_address": "172.31.254.3",
            "node_last_state_change": 1482242525000,
            "node_status_update_time": 1482809553000,
            "node_next_check": 1482809612000,
            "node_node_type": "SERVICE",
            "node_run_on": 249,
            "node_pk_id": 33,
            "node_current_state": 0,
            "node_node_id": "259",
            "node_obj_id": 259
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482740833000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_output": "Icinga 2 has been running for 26 minutes and 1 second. Version: r2.6.0-1",
            "node_display_name": "icinga",
            "node_type": "services",
            "node_host_address": "172.31.254.4",
            "node_last_state_change": 1482737937000,
            "node_status_update_time": 1482740833000,
            "node_next_check": 1482740893000,
            "node_node_type": "SERVICE",
            "node_run_on": 248,
            "node_pk_id": 42,
            "node_current_state": 0,
            "node_node_id": "269",
            "node_obj_id": 269
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482740871000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_output": "OK - load average: 0.00, 0.05, 0.11",
            "node_display_name": "load",
            "node_type": "services",
            "node_host_address": "172.31.254.4",
            "node_last_state_change": 1482739329000,
            "node_status_update_time": 1482740871000,
            "node_next_check": 1482740931000,
            "node_node_type": "SERVICE",
            "node_run_on": 248,
            "node_pk_id": 46,
            "node_current_state": 0,
            "node_node_id": "273",
            "node_obj_id": 273
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809561000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_group_alias": "Ping Checks",
            "node_output": "PING OK - Packet loss = 0%, RTA = 0.28 ms",
            "node_display_name": "ping4",
            "node_type": "services",
            "node_host_address": "172.31.254.4",
            "node_last_state_change": 1482238550000,
            "node_group_obj_id": 224,
            "node_status_update_time": 1482809561000,
            "node_next_check": 1482809618000,
            "node_node_type": "SERVICE",
            "node_run_on": 248,
            "node_pk_id": 27,
            "node_current_state": 0,
            "node_node_id": "253",
            "node_obj_id": 253
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809601000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_output": "SSH OK - OpenSSH_6.7p1 Debian-5+deb8u3 (protocol 2.0) ",
            "node_display_name": "ssh",
            "node_type": "services",
            "node_host_address": "172.31.254.4",
            "node_last_state_change": 1482242525000,
            "node_status_update_time": 1482809601000,
            "node_next_check": 1482809659000,
            "node_node_type": "SERVICE",
            "node_run_on": 248,
            "node_pk_id": 34,
            "node_current_state": 0,
            "node_node_id": "260",
            "node_obj_id": 260
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482740848000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_output": "Icinga 2 has been running for 26 minutes and 16 seconds. Version: r2.6.0-1",
            "node_display_name": "icinga",
            "node_type": "services",
            "node_host_address": "172.31.254.5",
            "node_last_state_change": 1482737937000,
            "node_status_update_time": 1482740848000,
            "node_next_check": 1482740908000,
            "node_node_type": "SERVICE",
            "node_run_on": 250,
            "node_pk_id": 43,
            "node_current_state": 0,
            "node_node_id": "270",
            "node_obj_id": 270
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482740871000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_output": "OK - load average: 0.00, 0.05, 0.11",
            "node_display_name": "load",
            "node_type": "services",
            "node_host_address": "172.31.254.5",
            "node_last_state_change": 1482739329000,
            "node_status_update_time": 1482740871000,
            "node_next_check": 1482740931000,
            "node_node_type": "SERVICE",
            "node_run_on": 250,
            "node_pk_id": 52,
            "node_current_state": 0,
            "node_node_id": "279",
            "node_obj_id": 279
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809607000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_group_alias": "Ping Checks",
            "node_output": "PING OK - Packet loss = 0%, RTA = 0.26 ms",
            "node_display_name": "ping4",
            "node_type": "services",
            "node_host_address": "172.31.254.5",
            "node_last_state_change": 1482809109000,
            "node_group_obj_id": 224,
            "node_status_update_time": 1482809607000,
            "node_next_check": 1482809665000,
            "node_node_type": "SERVICE",
            "node_run_on": 250,
            "node_pk_id": 30,
            "node_current_state": 0,
            "node_node_id": "256",
            "node_obj_id": 256
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809609000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_output": "SSH OK - OpenSSH_6.7p1 Debian-5+deb8u3 (protocol 2.0) ",
            "node_display_name": "ssh",
            "node_type": "services",
            "node_host_address": "172.31.254.5",
            "node_last_state_change": 1482242526000,
            "node_status_update_time": 1482809609000,
            "node_next_check": 1482809668000,
            "node_node_type": "SERVICE",
            "node_run_on": 250,
            "node_pk_id": 36,
            "node_current_state": 0,
            "node_node_id": "262",
            "node_obj_id": 262
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482740871000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_output": "Icinga 2 has been running for 26 minutes and 39 seconds. Version: r2.6.0-1",
            "node_display_name": "icinga",
            "node_type": "services",
            "node_host_address": "172.31.254.6",
            "node_last_state_change": 1482737937000,
            "node_status_update_time": 1482740871000,
            "node_next_check": 1482740931000,
            "node_node_type": "SERVICE",
            "node_run_on": 251,
            "node_pk_id": 44,
            "node_current_state": 0,
            "node_node_id": "271",
            "node_obj_id": 271
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482740871000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_output": "OK - load average: 0.00, 0.05, 0.11",
            "node_display_name": "load",
            "node_type": "services",
            "node_host_address": "172.31.254.6",
            "node_last_state_change": 1482739329000,
            "node_status_update_time": 1482740871000,
            "node_next_check": 1482740931000,
            "node_node_type": "SERVICE",
            "node_run_on": 251,
            "node_pk_id": 51,
            "node_current_state": 0,
            "node_node_id": "278",
            "node_obj_id": 278
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809593000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_group_alias": "Ping Checks",
            "node_output": "PING OK - Packet loss = 0%, RTA = 0.20 ms",
            "node_display_name": "ping4",
            "node_type": "services",
            "node_host_address": "172.31.254.6",
            "node_last_state_change": 1482809109000,
            "node_group_obj_id": 224,
            "node_status_update_time": 1482809593000,
            "node_next_check": 1482809650000,
            "node_node_type": "SERVICE",
            "node_run_on": 251,
            "node_pk_id": 31,
            "node_current_state": 0,
            "node_node_id": "257",
            "node_obj_id": 257
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809601000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_output": "SSH OK - OpenSSH_6.7p1 Debian-5+deb8u3 (protocol 2.0) ",
            "node_display_name": "ssh",
            "node_type": "services",
            "node_host_address": "172.31.254.6",
            "node_last_state_change": 1482242526000,
            "node_status_update_time": 1482809601000,
            "node_next_check": 1482809659000,
            "node_node_type": "SERVICE",
            "node_run_on": 251,
            "node_pk_id": 37,
            "node_current_state": 0,
            "node_node_id": "263",
            "node_obj_id": 263
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809608000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_output": "APT CRITICAL: 153 packages available for upgrade (96 critical updates). ",
            "node_display_name": "apt",
            "node_type": "services",
            "node_host_address": "127.0.0.1",
            "node_last_state_change": 1482233107000,
            "node_status_update_time": 1482809608000,
            "node_next_check": 1482809667000,
            "node_node_type": "SERVICE",
            "node_run_on": 232,
            "node_pk_id": 13,
            "node_current_state": 2,
            "node_node_id": "233",
            "node_obj_id": 233
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809609000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_group_alias": "Disk Checks",
            "node_output": "DISK OK - free space: / 2769 MB (79% inode=92%): /usr 4913 MB (70% inode=78%): /mnt/fornfs/nfs_svn 118535 MB (66% inode=94%): /mnt/fornfs/nfs_ftp 43998 MB (24% inode=99%): /mnt/fornfs/nfs_dxllf 720829 MB (73% inode=99%): /var 2004 MB (57% inode=96%): /home 6983 MB (99% inode=99%): /proxmox 368883 MB (77% inode=99%): /backup 64162 MB (83% inode=99%): /mnt/fornfs/nfs_deve 91754 MB (96% inode=99%): /mnt/itsm 95443 MB (99% inode=99%): /yuyin/movies/disk2 782 MB (86% inode=98%): /mnt/user_bak 126959 MB (66% inode=99%): /mnt/itsupp 208240 MB (36% inode=99%): /yuyin/movies/disk1 422 MB (46% inode=95%): /ownCloud 270943 MB (93% inode=99%): /var/lib/mysql 9362 MB (99% inode=99%):",
            "node_display_name": "disk",
            "node_type": "services",
            "node_host_address": "127.0.0.1",
            "node_last_state_change": 1482233106000,
            "node_group_obj_id": 222,
            "node_status_update_time": 1482809609000,
            "node_next_check": 1482809668000,
            "node_node_type": "SERVICE",
            "node_run_on": 232,
            "node_pk_id": 18,
            "node_current_state": 0,
            "node_node_id": "238",
            "node_obj_id": 238
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809609000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_group_alias": "Disk Checks",
            "node_output": "DISK OK - free space: / 2769 MB (79% inode=92%): /usr 4913 MB (70% inode=78%): /mnt/fornfs/nfs_svn 118535 MB (66% inode=94%): /mnt/fornfs/nfs_ftp 43998 MB (24% inode=99%): /mnt/fornfs/nfs_dxllf 720829 MB (73% inode=99%): /var 2004 MB (57% inode=96%): /home 6983 MB (99% inode=99%): /proxmox 368883 MB (77% inode=99%): /backup 64162 MB (83% inode=99%): /mnt/fornfs/nfs_deve 91754 MB (96% inode=99%): /mnt/itsm 95443 MB (99% inode=99%): /yuyin/movies/disk2 782 MB (86% inode=98%): /mnt/user_bak 126959 MB (66% inode=99%): /mnt/itsupp 208240 MB (36% inode=99%): /yuyin/movies/disk1 422 MB (46% inode=95%): /ownCloud 270943 MB (93% inode=99%): /var/lib/mysql 9362 MB (99% inode=99%):",
            "node_display_name": "disk",
            "node_type": "services",
            "node_host_address": "127.0.0.1",
            "node_last_state_change": 1482233106000,
            "node_group_obj_id": 222,
            "node_status_update_time": 1482809609000,
            "node_next_check": 1482809668000,
            "node_node_type": "GROUP",
            "node_run_on": 232,
            "node_pk_id": 18,
            "node_current_state": 0,
            "node_node_id": "222",
            "node_obj_id": 238
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482237824000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_group_alias": "Disk Checks",
            "node_output": "DISK OK - free space: / 2769 MB (79% inode=92%):",
            "node_display_name": "disk /",
            "node_type": "services",
            "node_host_address": "127.0.0.1",
            "node_last_state_change": 1482233108000,
            "node_group_obj_id": 222,
            "node_status_update_time": 1482237824000,
            "node_next_check": 1482237883000,
            "node_node_type": "SERVICE",
            "node_run_on": 232,
            "node_pk_id": 19,
            "node_current_state": 0,
            "node_node_id": "239",
            "node_obj_id": 239
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482237824000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_group_alias": "HTTP Checks",
            "node_output": "HTTP OK: HTTP/1.1 200 OK - 10975 bytes in 0.001 second response time ",
            "node_display_name": "http",
            "node_type": "services",
            "node_host_address": "127.0.0.1",
            "node_last_state_change": 1482233108000,
            "node_group_obj_id": 223,
            "node_status_update_time": 1482237824000,
            "node_next_check": 1482237883000,
            "node_node_type": "SERVICE",
            "node_run_on": 232,
            "node_pk_id": 17,
            "node_current_state": 0,
            "node_node_id": "237",
            "node_obj_id": 237
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482237824000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_group_alias": "HTTP Checks",
            "node_output": "HTTP OK: HTTP/1.1 200 OK - 10975 bytes in 0.001 second response time ",
            "node_display_name": "http",
            "node_type": "services",
            "node_host_address": "127.0.0.1",
            "node_last_state_change": 1482233108000,
            "node_group_obj_id": 223,
            "node_status_update_time": 1482237824000,
            "node_next_check": 1482237883000,
            "node_node_type": "GROUP",
            "node_run_on": 232,
            "node_pk_id": 17,
            "node_current_state": 0,
            "node_node_id": "223",
            "node_obj_id": 237
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809594000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_group_alias": "HTTP Checks",
            "node_output": "HTTP OK: HTTP/1.1 301 Moved Permanently - 569 bytes in 0.001 second response time ",
            "node_display_name": "Icinga Web 2",
            "node_type": "services",
            "node_host_address": "127.0.0.1",
            "node_last_state_change": 1482237885000,
            "node_group_obj_id": 223,
            "node_status_update_time": 1482809594000,
            "node_next_check": 1482809652000,
            "node_node_type": "SERVICE",
            "node_run_on": 232,
            "node_pk_id": 25,
            "node_current_state": 0,
            "node_node_id": "245",
            "node_obj_id": 245
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809594000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_output": "Icinga 2 has been running for 8 minutes and 37 seconds. Version: r2.6.0-1",
            "node_display_name": "icinga",
            "node_type": "services",
            "node_host_address": "127.0.0.1",
            "node_last_state_change": 1482233108000,
            "node_status_update_time": 1482809594000,
            "node_next_check": 1482809652000,
            "node_node_type": "SERVICE",
            "node_run_on": 232,
            "node_pk_id": 20,
            "node_current_state": 0,
            "node_node_id": "240",
            "node_obj_id": 240
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809593000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_output": "OK - load average: 0.04, 0.11, 0.13",
            "node_display_name": "load",
            "node_type": "services",
            "node_host_address": "127.0.0.1",
            "node_last_state_change": 1482233106000,
            "node_status_update_time": 1482809593000,
            "node_next_check": 1482809651000,
            "node_node_type": "SERVICE",
            "node_run_on": 232,
            "node_pk_id": 21,
            "node_current_state": 0,
            "node_node_id": "241",
            "node_obj_id": 241
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809576000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_group_alias": "Ping Checks",
            "node_output": "PING OK - Packet loss = 0%, RTA = 0.04 ms",
            "node_display_name": "ping4",
            "node_type": "services",
            "node_host_address": "127.0.0.1",
            "node_last_state_change": 1482233109000,
            "node_group_obj_id": 224,
            "node_status_update_time": 1482809576000,
            "node_next_check": 1482809635000,
            "node_node_type": "SERVICE",
            "node_run_on": 232,
            "node_pk_id": 15,
            "node_current_state": 0,
            "node_node_id": "235",
            "node_obj_id": 235
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482239852000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_group_alias": "Ping Checks",
            "node_output": "PING OK - Packet loss = 0%, RTA = 0.04 ms",
            "node_display_name": "ping6",
            "node_type": "services",
            "node_host_address": "127.0.0.1",
            "node_last_state_change": 1482233112000,
            "node_group_obj_id": 224,
            "node_status_update_time": 1482239852000,
            "node_next_check": 1482239910000,
            "node_node_type": "SERVICE",
            "node_run_on": 232,
            "node_pk_id": 14,
            "node_current_state": 0,
            "node_node_id": "234",
            "node_obj_id": 234
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809594000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_output": "PROCS OK: 193 processes ",
            "node_display_name": "procs",
            "node_type": "services",
            "node_host_address": "127.0.0.1",
            "node_last_state_change": 1482233105000,
            "node_status_update_time": 1482809594000,
            "node_next_check": 1482809652000,
            "node_node_type": "SERVICE",
            "node_run_on": 232,
            "node_pk_id": 22,
            "node_current_state": 0,
            "node_node_id": "242",
            "node_obj_id": 242
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809609000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_output": "SSH OK - OpenSSH_6.7p1 Debian-5+deb8u2 (protocol 2.0) ",
            "node_display_name": "ssh",
            "node_type": "services",
            "node_host_address": "127.0.0.1",
            "node_last_state_change": 1482237705000,
            "node_status_update_time": 1482809609000,
            "node_next_check": 1482809668000,
            "node_node_type": "SERVICE",
            "node_run_on": 232,
            "node_pk_id": 16,
            "node_current_state": 0,
            "node_node_id": "236",
            "node_obj_id": 236
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809594000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_output": "SWAP OK - 100% free (3812 MB out of 3814 MB) ",
            "node_display_name": "swap",
            "node_type": "services",
            "node_host_address": "127.0.0.1",
            "node_last_state_change": 1482233106000,
            "node_status_update_time": 1482809594000,
            "node_next_check": 1482809652000,
            "node_node_type": "SERVICE",
            "node_run_on": 232,
            "node_pk_id": 23,
            "node_current_state": 0,
            "node_node_id": "243",
            "node_obj_id": 243
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809593000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_output": "USERS OK - 2 users currently logged in ",
            "node_display_name": "users",
            "node_type": "services",
            "node_host_address": "127.0.0.1",
            "node_last_state_change": 1482233106000,
            "node_status_update_time": 1482809593000,
            "node_next_check": 1482809651000,
            "node_node_type": "SERVICE",
            "node_run_on": 232,
            "node_pk_id": 24,
            "node_current_state": 0,
            "node_node_id": "244",
            "node_obj_id": 244
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809585000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_group_alias": "Ping Checks",
            "node_output": "PING OK - Packet loss = 0%, RTA = 0.43 ms",
            "node_display_name": "ping4",
            "node_type": "services",
            "node_host_address": "192.168.10.200",
            "node_last_state_change": 1482809140000,
            "node_group_obj_id": 224,
            "node_status_update_time": 1482809585000,
            "node_next_check": 1482809644000,
            "node_node_type": "SERVICE",
            "node_run_on": 280,
            "node_pk_id": 53,
            "node_current_state": 0,
            "node_node_id": "281",
            "node_obj_id": 281
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809597000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_output": "SSH OK - OpenSSH_6.6.1 (protocol 2.0) ",
            "node_display_name": "ssh",
            "node_type": "services",
            "node_host_address": "192.168.10.200",
            "node_last_state_change": 1482809134000,
            "node_status_update_time": 1482809597000,
            "node_next_check": 1482809655000,
            "node_node_type": "SERVICE",
            "node_run_on": 280,
            "node_pk_id": 54,
            "node_current_state": 0,
            "node_node_id": "282",
            "node_obj_id": 282
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482233028000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_output": "APT CRITICAL: 157 packages available for upgrade (100 critical updates). ",
            "node_display_name": "apt",
            "node_type": "services",
            "node_last_state_change": 1482200240000,
            "node_status_update_time": 1482233028000,
            "node_next_check": 1482233086000,
            "node_node_type": "SERVICE",
            "node_run_on": 205,
            "node_pk_id": 3,
            "node_current_state": 2,
            "node_node_id": "212",
            "node_obj_id": 212
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482233011000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_group_alias": "Disk Checks",
            "node_output": "DISK OK - free space: / 2769 MB (79% inode=92%): /usr 4927 MB (70% inode=78%): /mnt/fornfs/nfs_svn 118593 MB (66% inode=94%): /mnt/fornfs/nfs_ftp 43998 MB (24% inode=99%): /mnt/fornfs/nfs_dxllf 720829 MB (73% inode=99%): /var 1880 MB (53% inode=96%): /home 6983 MB (99% inode=99%): /proxmox 368883 MB (77% inode=99%): /backup 64162 MB (83% inode=99%): /mnt/fornfs/nfs_deve 91754 MB (96% inode=99%): /mnt/itsm 95443 MB (99% inode=99%): /yuyin/movies/disk2 782 MB (86% inode=98%): /mnt/user_bak 126959 MB (66% inode=99%): /mnt/itsupp 208240 MB (36% inode=99%): /yuyin/movies/disk1 422 MB (46% inode=95%): /ownCloud 270943 MB (93% inode=99%): /var/lib/mysql 9362 MB (99% inode=99%):",
            "node_display_name": "disk",
            "node_type": "services",
            "node_last_state_change": 1482200238000,
            "node_group_obj_id": 222,
            "node_status_update_time": 1482233011000,
            "node_next_check": 1482233071000,
            "node_node_type": "SERVICE",
            "node_run_on": 205,
            "node_pk_id": 6,
            "node_current_state": 0,
            "node_node_id": "215",
            "node_obj_id": 215
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482233038000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_group_alias": "Disk Checks",
            "node_output": "DISK OK - free space: / 2769 MB (79% inode=92%):",
            "node_display_name": "disk /",
            "node_type": "services",
            "node_last_state_change": 1482200237000,
            "node_group_obj_id": 222,
            "node_status_update_time": 1482233038000,
            "node_next_check": 1482233098000,
            "node_node_type": "SERVICE",
            "node_run_on": 205,
            "node_pk_id": 7,
            "node_current_state": 0,
            "node_node_id": "216",
            "node_obj_id": 216
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482233011000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_group_alias": "HTTP Checks",
            "node_output": "HTTP OK: HTTP/1.1 200 OK - 10975 bytes in 0.001 second response time ",
            "node_display_name": "http",
            "node_type": "services",
            "node_last_state_change": 1482200238000,
            "node_group_obj_id": 223,
            "node_status_update_time": 1482233011000,
            "node_next_check": 1482233071000,
            "node_node_type": "SERVICE",
            "node_run_on": 205,
            "node_pk_id": 5,
            "node_current_state": 0,
            "node_node_id": "214",
            "node_obj_id": 214
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482233011000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_output": "Icinga 2 has been running for 2 hours, 21 minutes and 37 seconds. Version: r2.6.0-1",
            "node_display_name": "icinga",
            "node_type": "services",
            "node_last_state_change": 1482200238000,
            "node_status_update_time": 1482233011000,
            "node_next_check": 1482233071000,
            "node_node_type": "SERVICE",
            "node_run_on": 205,
            "node_pk_id": 8,
            "node_current_state": 0,
            "node_node_id": "217",
            "node_obj_id": 217
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482233038000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_output": "OK - load average: 0.15, 0.13, 0.14",
            "node_display_name": "load",
            "node_type": "services",
            "node_last_state_change": 1482200237000,
            "node_status_update_time": 1482233038000,
            "node_next_check": 1482233098000,
            "node_node_type": "SERVICE",
            "node_run_on": 205,
            "node_pk_id": 9,
            "node_current_state": 0,
            "node_node_id": "218",
            "node_obj_id": 218
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482233047000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_group_alias": "Ping Checks",
            "node_output": "PING OK - Packet loss = 0%, RTA = 0.04 ms",
            "node_display_name": "ping4",
            "node_type": "services",
            "node_last_state_change": 1482200242000,
            "node_group_obj_id": 224,
            "node_status_update_time": 1482233047000,
            "node_next_check": 1482233104000,
            "node_node_type": "SERVICE",
            "node_run_on": 205,
            "node_pk_id": 1,
            "node_current_state": 0,
            "node_node_id": "210",
            "node_obj_id": 210
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482233047000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_group_alias": "Ping Checks",
            "node_output": "PING OK - Packet loss = 0%, RTA = 0.04 ms",
            "node_display_name": "ping6",
            "node_type": "services",
            "node_last_state_change": 1482200242000,
            "node_group_obj_id": 224,
            "node_status_update_time": 1482233047000,
            "node_next_check": 1482233104000,
            "node_node_type": "SERVICE",
            "node_run_on": 205,
            "node_pk_id": 2,
            "node_current_state": 0,
            "node_node_id": "211",
            "node_obj_id": 211
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482233038000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_output": "PROCS OK: 191 processes ",
            "node_display_name": "procs",
            "node_type": "services",
            "node_last_state_change": 1482200237000,
            "node_status_update_time": 1482233038000,
            "node_next_check": 1482233098000,
            "node_node_type": "SERVICE",
            "node_run_on": 205,
            "node_pk_id": 10,
            "node_current_state": 0,
            "node_node_id": "219",
            "node_obj_id": 219
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482233037000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_output": "connect to address 127.0.0.1 and port 22: Connection refused",
            "node_display_name": "ssh",
            "node_type": "services",
            "node_last_state_change": 1482200238000,
            "node_status_update_time": 1482233037000,
            "node_next_check": 1482233097000,
            "node_node_type": "SERVICE",
            "node_run_on": 205,
            "node_pk_id": 4,
            "node_current_state": 2,
            "node_node_id": "213",
            "node_obj_id": 213
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482233011000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_output": "SWAP OK - 100% free (3812 MB out of 3814 MB) ",
            "node_display_name": "swap",
            "node_type": "services",
            "node_last_state_change": 1482200238000,
            "node_status_update_time": 1482233011000,
            "node_next_check": 1482233071000,
            "node_node_type": "SERVICE",
            "node_run_on": 205,
            "node_pk_id": 11,
            "node_current_state": 0,
            "node_node_id": "220",
            "node_obj_id": 220
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482233038000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_output": "USERS OK - 1 users currently logged in ",
            "node_display_name": "users",
            "node_type": "services",
            "node_last_state_change": 1482200237000,
            "node_status_update_time": 1482233038000,
            "node_next_check": 1482233098000,
            "node_node_type": "SERVICE",
            "node_run_on": 205,
            "node_pk_id": 12,
            "node_current_state": 0,
            "node_node_id": "221",
            "node_obj_id": 221
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482740848000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_output": "Icinga 2 has been running for 26 minutes and 16 seconds. Version: r2.6.0-1",
            "node_display_name": "icinga",
            "node_type": "services",
            "node_host_address": "172.31.254.252",
            "node_last_state_change": 1482737937000,
            "node_status_update_time": 1482740848000,
            "node_next_check": 1482740908000,
            "node_node_type": "SERVICE",
            "node_run_on": 264,
            "node_pk_id": 45,
            "node_current_state": 0,
            "node_node_id": "272",
            "node_obj_id": 272
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482740848000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 0,
            "node_output": "OK - load average: 0.00, 0.06, 0.11",
            "node_display_name": "load",
            "node_type": "services",
            "node_host_address": "172.31.254.252",
            "node_last_state_change": 1482739329000,
            "node_status_update_time": 1482740848000,
            "node_next_check": 1482740908000,
            "node_node_type": "SERVICE",
            "node_run_on": 264,
            "node_pk_id": 50,
            "node_current_state": 0,
            "node_node_id": "277",
            "node_obj_id": 277
        }, {
            "node_normal_check_interval": 1.0,
            "node_ins_name": "default",
            "node_last_check": 1482809582000,
            "node_ins_id": 1,
            "node_retry_check_interval": 0.5,
            "node_is_active": 1,
            "node_group_alias": "Ping Checks",
            "node_output": "PING OK - Packet loss = 0%, RTA = 0.62 ms",
            "node_display_name": "ping4",
            "node_type": "services",
            "node_host_address": "172.31.254.252",
            "node_last_state_change": 1482372719000,
            "node_group_obj_id": 224,
            "node_status_update_time": 1482809582000,
            "node_next_check": 1482809641000,
            "node_node_type": "SERVICE",
            "node_run_on": 264,
            "node_pk_id": 38,
            "node_current_state": 0,
            "node_node_id": "265",
            "node_obj_id": 265
        }],
        "links": [{
            "link_link_type": "GTI",
            "source": "206",
            "target": "1default"
        }, {
            "link_link_type": "NTG",
            "source": "247",
            "target": "206"
        }, {
            "link_link_type": "NTP",
            "source": "247",
            "target": "264"
        }, {
            "link_link_type": "NTG",
            "source": "246",
            "target": "206"
        }, {
            "link_link_type": "NTP",
            "source": "246",
            "target": "264"
        }, {
            "link_link_type": "NTG",
            "source": "249",
            "target": "206"
        }, {
            "link_link_type": "NTP",
            "source": "249",
            "target": "264"
        }, {
            "link_link_type": "NTG",
            "source": "248",
            "target": "206"
        }, {
            "link_link_type": "NTP",
            "source": "248",
            "target": "264"
        }, {
            "link_link_type": "NTG",
            "source": "250",
            "target": "206"
        }, {
            "link_link_type": "NTP",
            "source": "250",
            "target": "264"
        }, {
            "link_link_type": "NTG",
            "source": "251",
            "target": "206"
        }, {
            "link_link_type": "NTP",
            "source": "251",
            "target": "264"
        }, {
            "link_link_type": "NTG",
            "source": "232",
            "target": "206"
        }, {
            "link_link_type": "NTP",
            "source": "232",
            "target": "264"
        }, {
            "link_link_type": "NTG",
            "source": "280",
            "target": "206"
        }, {
            "link_link_type": "NTP",
            "source": "280",
            "target": "264"
        }, {
            "link_link_type": "NTI",
            "source": "205",
            "target": "1default"
        }, {
            "link_link_type": "NTI",
            "source": "264",
            "target": "1default"
        }, {
            "link_link_type": "NTD",
            "source": "264",
            "target": "232"
        }, {
            "link_link_type": "NTD",
            "source": "264",
            "target": "246"
        }, {
            "link_link_type": "NTD",
            "source": "264",
            "target": "247"
        }, {
            "link_link_type": "NTD",
            "source": "264",
            "target": "248"
        }, {
            "link_link_type": "NTD",
            "source": "264",
            "target": "249"
        }, {
            "link_link_type": "NTD",
            "source": "264",
            "target": "250"
        }, {
            "link_link_type": "NTD",
            "source": "264",
            "target": "251"
        }, {
            "link_link_type": "NTD",
            "source": "264",
            "target": "280"
        }, {
            "link_link_type": "NTI",
            "source": "266",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "266",
            "target": "247"
        }, {
            "link_link_type": "NTI",
            "source": "276",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "276",
            "target": "247"
        }, {
            "link_link_type": "GTI",
            "source": "224",
            "target": "1default"
        }, {
            "link_link_type": "NTG",
            "source": "252",
            "target": "224"
        }, {
            "link_link_type": "NTH",
            "source": "252",
            "target": "247"
        }, {
            "link_link_type": "NTI",
            "source": "261",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "261",
            "target": "247"
        }, {
            "link_link_type": "NTI",
            "source": "267",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "267",
            "target": "246"
        }, {
            "link_link_type": "NTI",
            "source": "275",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "275",
            "target": "246"
        }, {
            "link_link_type": "NTG",
            "source": "254",
            "target": "224"
        }, {
            "link_link_type": "NTH",
            "source": "254",
            "target": "246"
        }, {
            "link_link_type": "NTI",
            "source": "258",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "258",
            "target": "246"
        }, {
            "link_link_type": "NTI",
            "source": "268",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "268",
            "target": "249"
        }, {
            "link_link_type": "NTI",
            "source": "274",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "274",
            "target": "249"
        }, {
            "link_link_type": "NTG",
            "source": "255",
            "target": "224"
        }, {
            "link_link_type": "NTH",
            "source": "255",
            "target": "249"
        }, {
            "link_link_type": "NTI",
            "source": "259",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "259",
            "target": "249"
        }, {
            "link_link_type": "NTI",
            "source": "269",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "269",
            "target": "248"
        }, {
            "link_link_type": "NTI",
            "source": "273",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "273",
            "target": "248"
        }, {
            "link_link_type": "NTG",
            "source": "253",
            "target": "224"
        }, {
            "link_link_type": "NTH",
            "source": "253",
            "target": "248"
        }, {
            "link_link_type": "NTI",
            "source": "260",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "260",
            "target": "248"
        }, {
            "link_link_type": "NTI",
            "source": "270",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "270",
            "target": "250"
        }, {
            "link_link_type": "NTI",
            "source": "279",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "279",
            "target": "250"
        }, {
            "link_link_type": "NTG",
            "source": "256",
            "target": "224"
        }, {
            "link_link_type": "NTH",
            "source": "256",
            "target": "250"
        }, {
            "link_link_type": "NTI",
            "source": "262",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "262",
            "target": "250"
        }, {
            "link_link_type": "NTI",
            "source": "271",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "271",
            "target": "251"
        }, {
            "link_link_type": "NTI",
            "source": "278",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "278",
            "target": "251"
        }, {
            "link_link_type": "NTG",
            "source": "257",
            "target": "224"
        }, {
            "link_link_type": "NTH",
            "source": "257",
            "target": "251"
        }, {
            "link_link_type": "NTI",
            "source": "263",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "263",
            "target": "251"
        }, {
            "link_link_type": "NTI",
            "source": "233",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "233",
            "target": "232"
        }, {
            "link_link_type": "GTI",
            "source": "222",
            "target": "1default"
        }, {
            "link_link_type": "NTG",
            "source": "238",
            "target": "222"
        }, {
            "link_link_type": "NTH",
            "source": "238",
            "target": "232"
        }, {
            "link_link_type": "NTG",
            "source": "239",
            "target": "222"
        }, {
            "link_link_type": "NTH",
            "source": "239",
            "target": "232"
        }, {
            "link_link_type": "GTI",
            "source": "223",
            "target": "1default"
        }, {
            "link_link_type": "NTG",
            "source": "237",
            "target": "223"
        }, {
            "link_link_type": "NTH",
            "source": "237",
            "target": "232"
        }, {
            "link_link_type": "NTG",
            "source": "245",
            "target": "223"
        }, {
            "link_link_type": "NTH",
            "source": "245",
            "target": "232"
        }, {
            "link_link_type": "NTI",
            "source": "240",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "240",
            "target": "232"
        }, {
            "link_link_type": "NTI",
            "source": "241",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "241",
            "target": "232"
        }, {
            "link_link_type": "NTG",
            "source": "235",
            "target": "224"
        }, {
            "link_link_type": "NTH",
            "source": "235",
            "target": "232"
        }, {
            "link_link_type": "NTG",
            "source": "234",
            "target": "224"
        }, {
            "link_link_type": "NTH",
            "source": "234",
            "target": "232"
        }, {
            "link_link_type": "NTI",
            "source": "242",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "242",
            "target": "232"
        }, {
            "link_link_type": "NTI",
            "source": "236",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "236",
            "target": "232"
        }, {
            "link_link_type": "NTI",
            "source": "243",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "243",
            "target": "232"
        }, {
            "link_link_type": "NTI",
            "source": "244",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "244",
            "target": "232"
        }, {
            "link_link_type": "NTG",
            "source": "281",
            "target": "224"
        }, {
            "link_link_type": "NTH",
            "source": "281",
            "target": "280"
        }, {
            "link_link_type": "NTI",
            "source": "282",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "282",
            "target": "280"
        }, {
            "link_link_type": "NTI",
            "source": "212",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "212",
            "target": "205"
        }, {
            "link_link_type": "NTG",
            "source": "215",
            "target": "222"
        }, {
            "link_link_type": "NTH",
            "source": "215",
            "target": "205"
        }, {
            "link_link_type": "NTG",
            "source": "216",
            "target": "222"
        }, {
            "link_link_type": "NTH",
            "source": "216",
            "target": "205"
        }, {
            "link_link_type": "NTG",
            "source": "214",
            "target": "223"
        }, {
            "link_link_type": "NTH",
            "source": "214",
            "target": "205"
        }, {
            "link_link_type": "NTI",
            "source": "217",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "217",
            "target": "205"
        }, {
            "link_link_type": "NTI",
            "source": "218",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "218",
            "target": "205"
        }, {
            "link_link_type": "NTG",
            "source": "210",
            "target": "224"
        }, {
            "link_link_type": "NTH",
            "source": "210",
            "target": "205"
        }, {
            "link_link_type": "NTG",
            "source": "211",
            "target": "224"
        }, {
            "link_link_type": "NTH",
            "source": "211",
            "target": "205"
        }, {
            "link_link_type": "NTI",
            "source": "219",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "219",
            "target": "205"
        }, {
            "link_link_type": "NTI",
            "source": "213",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "213",
            "target": "205"
        }, {
            "link_link_type": "NTI",
            "source": "220",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "220",
            "target": "205"
        }, {
            "link_link_type": "NTI",
            "source": "221",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "221",
            "target": "205"
        }, {
            "link_link_type": "NTI",
            "source": "272",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "272",
            "target": "264"
        }, {
            "link_link_type": "NTI",
            "source": "277",
            "target": "1default"
        }, {
            "link_link_type": "NTH",
            "source": "277",
            "target": "264"
        }, {
            "link_link_type": "NTG",
            "source": "265",
            "target": "224"
        }, {
            "link_link_type": "NTH",
            "source": "265",
            "target": "264"
        }],
        "state": "success"
    }
    

    相关文章

      网友评论

        本文标题:D3.js-v4.*学习笔记一(完成一个force力导向图)

        本文链接:https://www.haomeiwen.com/subject/syvpbttx.html