网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

MonitortheJuniper-创新互联

Check the Juniper port OID:

创新互联主要从事成都网站建设、做网站、网页设计、企业做网站、公司建网站等业务。立足成都服务黔西,十年网站建设经验,价格优惠、服务专业,欢迎来电咨询建站服务:028-86922220

# snmpbulkget -c Firewall -O n 30.30.30.1 -v 2c ifDescr.*

.1.3.6.1.2.1.2.2.1.2.1 = STRING: ethernet0/0

.1.3.6.1.2.1.2.2.1.2.2 = STRING: ethernet0/1

.1.3.6.1.2.1.2.2.1.2.3 = STRING: ethernet0/2

.1.3.6.1.2.1.2.2.1.2.4 = STRING: ethernet0/3

.1.3.6.1.2.1.2.2.1.2.5 = STRING: ethernet2/0

.1.3.6.1.2.1.2.2.1.2.6 = STRING: ethernet2/1

.1.3.6.1.2.1.2.2.1.2.7 = STRING: ethernet2/2

.1.3.6.1.2.1.2.2.1.2.8 = STRING: ethernet2/3

.1.3.6.1.2.1.2.2.1.2.9 = STRING: ethernet2/4

.1.3.6.1.2.1.2.2.1.2.10 = STRING: ethernet2/5

Check the Juniper port status:

# snmpbulkget -c Firewall -O n 30.30.30.1 -v 2c ifOperStatus.*

.1.3.6.1.2.1.2.2.1.8.1 = INTEGER: up(1)

.1.3.6.1.2.1.2.2.1.8.2 = INTEGER: up(1)

.1.3.6.1.2.1.2.2.1.8.3 = INTEGER: up(1)

.1.3.6.1.2.1.2.2.1.8.4 = INTEGER: up(1)

.1.3.6.1.2.1.2.2.1.8.5 = INTEGER: up(1)

.1.3.6.1.2.1.2.2.1.8.6 = INTEGER: down(2)

.1.3.6.1.2.1.2.2.1.8.7 = INTEGER: down(2)

.1.3.6.1.2.1.2.2.1.8.8 = INTEGER: down(2)

.1.3.6.1.2.1.2.2.1.8.9 = INTEGER: down(2)

.1.3.6.1.2.1.2.2.1.8.10 = INTEGER: down(2)

Check the Juniper port traffic:

# snmpbulkget -c Firewall -O n 30.30.30.1 -v 2c ifInOctets.*

.1.3.6.1.2.1.2.2.1.10.1 = Counter32: 3583487232

.1.3.6.1.2.1.2.2.1.10.2 = Counter32: 3496576204

.1.3.6.1.2.1.2.2.1.10.3 = Counter32: 842312155

.1.3.6.1.2.1.2.2.1.10.4 = Counter32: 2607579545

.1.3.6.1.2.1.2.2.1.10.5 = Counter32: 2374175377

.1.3.6.1.2.1.2.2.1.10.6 = Counter32: 391247

.1.3.6.1.2.1.2.2.1.10.7 = Counter32: 0

.1.3.6.1.2.1.2.2.1.10.8 = Counter32: 0

.1.3.6.1.2.1.2.2.1.10.9 = Counter32: 0

.1.3.6.1.2.1.2.2.1.10.10 = Counter32: 0

Definition monitor file:

# vi /etc/nagios/Juniper/CTFirewall.cfg

define host{
    use          generic-switch,host-pnp     ; Inherit default values from a template
    host_name    CTFirewall
    alias        CTFirewall
    address      30.30.30.1           ; IP address of the CTFirewall
    }
define service{
    use                   generic-service,srv-pnp  ; Inherit values from a template
    host_name             CTFirewall
    service_description   ethernet0/0-0/3-status
    check_command         check_snmp!-C Firewall -P 2c -o ifOperStatus.1 -r 1, -o ifOperStatus.2 -r 1, -o ifOperStatus.3 -r 1, -o ifOperStatus.4 -r 1
    }
define service{
    use                   generic-service,srv-pnp  ; Inherit values from a template
    host_name             CTFirewall
    service_description   ethernet2/0-status
    check_command         check_snmp!-C Firewall -P 2c -o ifOperStatus.5 -r 1
    }
define service{
    use                   generic-service,srv-pnp  ; Inherit values from a template
    host_name             CTFirewall
    service_description   ethernet0/0-Flow
    check_command         check_snmp!-C Firewall -P 2c -o ifInOctets.1
    }
define service{
    use                   generic-service,srv-pnp  ; Inherit values from a template
    host_name             CTFirewall
    service_description   ethernet0/1-Flow
    check_command         check_snmp!-C Firewall -P 2c -o ifInOctets.2
    }
define service{
    use                   generic-service,srv-pnp  ; Inherit values from a template
    host_name             CTFirewall
    service_description   ethernet0/2-Flow
    check_command         check_snmp!-C Firewall -P 2c -o ifInOctets.3
    }
define service{
    use                   generic-service,srv-pnp  ; Inherit values from a template
    host_name             CTFirewall
    service_description   ethernet0/3-Flow
    check_command         check_snmp!-C Firewall -P 2c -o ifInOctets.4
    }
define service{
    use                   generic-service,srv-pnp  ; Inherit values from a template
    host_name             CTFirewall
    service_description   ethernet2/0-Flow
    check_command         check_snmp!-C Firewall -P 2c -o ifInOctets.5
    }

Modify the nagios configuration file:

# vi /etc/nagios/nagios.cfg

cfg_dir=/etc/nagios/Juniper

Syntax checking&&Restart nagios:

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

# service nagios restart

-------------------------------------------------------------------

Check the Juniper all OID:

# snmpwalk -v 2c -c Firewall 30.30.30.1 -m ALL .1

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


网站名称:MonitortheJuniper-创新互联
URL地址:http://bjjierui.cn/article/jhgsp.html

其他资讯