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-创新互联
本文网址:http://bzwzjz.com/article/jhgsp.html

其他资讯

Copyright © 2007-2020 广东宝晨空调科技有限公司 All Rights Reserved 粤ICP备2022107769号
友情链接: 网站建设公司 外贸网站建设 网站设计 成都网站设计 外贸营销网站建设 成都响应式网站建设 成都网站制作 网站制作 成都企业网站制作 成都网站设计 网站建设方案 成都网站建设 成都网站制作 手机网站建设 营销型网站建设 成都网站设计 成都网站建设公司 响应式网站设计 成都响应式网站建设公司 成都网站建设 成都网站建设 网站设计