我们专注攀枝花网站设计 攀枝花网站制作 攀枝花网站建设
成都网站建设公司服务热线:400-028-6601

网站建设知识

十年网站开发经验 + 多家企业客户 + 靠谱的建站团队

量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决

DefineAServiceGroup-创新互联

View has been monitoring Cisco machine:

创新互联为企业提供:品牌网站设计、网络营销策划、小程序定制开发、营销型网站建设和网站运营托管,一站式网络营销整体服务。实现不断获取潜在客户之核心目标,建立了企业专属的“全网整合营销推广”,就用不着再为了获取潜在客户而苦恼,相反,客户会主动找您,生意就找上门来了!

# cd /etc/nagios/Cisco/

HYQH-BJ.cfg  HYQH-SH.cfg  HYQH-ZQ.cfg

View existing configuration:

# cat HYQH-BJ.cfg | grep -A 3 -B 3 Flow

define service{

    use           generic-service,srv-pnp

    host_name        HYQH.BJ

    service_description   serial 0/0/0:0 Flow

    check_command      check_snmp!-C HYQH.BJ -o ifInOctets.7 -w 5000000000-6000000000 -c 6000000000-8000000000   ; The total number of octets received on the interface,including framing characters

    }

define service{

    use           generic-service,srv-pnp

    host_name        HYQH.BJ

    service_description   serial 0/0/1:0 Flow

    check_command      check_snmp!-C HYQH.BJ -o ifInOctets.8 -w 5000000000-6000000000 -c 6000000000-8000000000

    }

# cat HYQH-SH.cfg | grep -v "#" |grep -A 3 -B 3 Flow

define service{

    use           generic-service,srv-pnp

    host_name        HYQH.SH

    service_description   Serial0/0/0:0 Flow

    check_command      check_snmp!-C SH -o ifInOctets.11 -w 5000000000-6000000000 -c 6000000000-8000000000   ; The total number of octets received on the interface,including framing characters

    }

define service{

    use           generic-service,srv-pnp

    host_name        HYQH.SH

    service_description   Serial0/0/1:0 Flow

    check_command      check_snmp!-C SH -o ifInOctets.12 -w 5000000000-6000000000 -c 6000000000-8000000000   ; The total number of octets received on the interface,including framing characters

    }

define service{

    use           generic-service,srv-pnp

    host_name        HYQH.SH

    service_description   Serial0/1/1:0 Flow

    check_command      check_snmp!-C SH -o ifInOctets.14 -w 5000000000-6000000000 -c 6000000000-8000000000   ; The total number of octets received on the interface,including framing characters

    }

define service{

    use           generic-service,srv-pnp

    host_name        HYQH.SH

    service_description   Serial0/2/0:0 Flow

    check_command      check_snmp!-C SH -o ifInOctets.15 -w 5000000000-6000000000 -c 6000000000-8000000000   ; The total number of octets received on the interface,including framing characters

    }

# cat HYQH-ZQ.cfg | grep -v "#" |grep -A 3 -B 3 Flow

define service{

    use           generic-service,srv-pnp

    host_name        HYQH.ZQ

    service_description   serial 0/0/0:0 Flow

    check_command      check_snmp!-C ZQ -o ifInOctets.7 -w 5000000000-6000000000 -c 6000000000-8000000000   ; The total number of octets received on the interface,including framing characters

    }

define service{

    use           generic-service,srv-pnp

    host_name        HYQH.ZQ

    service_description   serial 0/0/1:0 Flow

    check_command      check_snmp!-C ZQ -o ifInOctets.8 -w 5000000000-6000000000 -c 6000000000-8000000000

    }

Create a classified directory&&Creating the configuration file:

# mkdir ../Servicegroups/

# vi ../Servicegroups/Flow.cfg

define servicegroup{

    servicegroup_name    HYQH.BJ-Flow

    alias          HYQH.BJ

    members         HYQH.BJ,serial 0/0/0:0 Flow,HYQH.BJ,serial 0/0/1:0 Flow

}

define servicegroup{

    servicegroup_name    HYQH.SH-Flow

    alias          HYQH.SH

    members         HYQH.SH,Serial0/0/0:0 Flow,HYQH.SH,Serial0/0/1:0 Flow,HYQH.SH,Serial0/1/1:0 Flow,HYQH.SH,Serial0/2/0:0 Flow

}

define servicegroup{

    servicegroup_name    HYQH.ZQ-Flow

    alias          HYQH.ZQ

    members         HYQH.ZQ,serial 0/0/0:0 Flow,HYQH.ZQ,serial 0/0/1:0 Flow

}

# chown -R nagios:nagios ../Servicegroups/

Modify the main configuration file:

cfg_dir=/etc/nagios/Servicegroups

Check the syntax and restart:

# /usr/local/nagios/bin/nagios -v /etc/nagios/nagios.cfg

# service nagios restart

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


文章名称:DefineAServiceGroup-创新互联
分享网址:http://shouzuofang.com/article/dgpphj.html

其他资讯