简介:

Zabbix 监控 Cisco ASA5525 网络接口流量

一、Zabbix 支持 SNMP、Cisco 开启 SNMP

二、测试

shell > snmpwalk -v 2c -c public 192.168.2.254 system  # 查看系统信息
SNMPv2-MIB::sysDescr. = STRING: Cisco Adaptive Security Appliance Version 8.6()
SNMPv2-MIB::sysObjectID. = OID: SNMPv2-SMI::enterprises.9.1.
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: () days, ::10.00
SNMPv2-MIB::sysContact. = STRING:
SNMPv2-MIB::sysName. = STRING: ciscoasa
SNMPv2-MIB::sysLocation. = STRING:
SNMPv2-MIB::sysServices. = INTEGER:

# -v 指定版本,-c 指定共同体名,IP,指令

shell > snmpwalk -v 2c -c public 192.168.2.254 interface  # 查看接口信息

# IF-MIB::ifDescr 接口名称
# IF-MIB::ifType 类型
# IF-MIB::ifSpeed 速率
# IF-MIB::ifMtu MTU
# IF-MIB::ifPhysAddress MAC
# IF-MIB::ifAdminStatus 状态
# IF-MIB::ifInOctets 传输字节数

# 等

三、确认需要监控网络接口

ciscoasa > show running-config interface
!
interface GigabitEthernet0/
duplex full
nameif outside-
security-level
ip address xx.xx.xx.xx 255.255.255.224

# Cisco ASA 查看发现,GigabitEthernet0/0 为 outside-1 即外网接口,且配置着公网IP

shell > snmpwalk -v 2c -c public 192.168.2.254 ifDescr
IF-MIB::ifDescr. = STRING: Adaptive Security Appliance 'asa_mgmt_plane' interface
IF-MIB::ifDescr. = STRING: Adaptive Security Appliance 'outside-1' interface
IF-MIB::ifDescr. = STRING: Adaptive Security Appliance 'GigabitEthernet0/1' interface
IF-MIB::ifDescr. = STRING: Adaptive Security Appliance 'inside' interface
IF-MIB::ifDescr. = STRING: Adaptive Security Appliance 'GigabitEthernet0/3' interface
IF-MIB::ifDescr. = STRING: Adaptive Security Appliance 'GigabitEthernet0/4' interface
IF-MIB::ifDescr. = STRING: Adaptive Security Appliance 'GigabitEthernet0/5' interface
IF-MIB::ifDescr. = STRING: Adaptive Security Appliance 'GigabitEthernet0/6' interface
IF-MIB::ifDescr. = STRING: Adaptive Security Appliance 'GigabitEthernet0/7' interface
IF-MIB::ifDescr. = STRING: Adaptive Security Appliance 'Internal-Data0/1' interface
IF-MIB::ifDescr. = STRING: Adaptive Security Appliance 'cplane' interface
IF-MIB::ifDescr. = STRING: Adaptive Security Appliance 'mgmt_plane_int_tap' interface
IF-MIB::ifDescr. = STRING: Adaptive Security Appliance 'Management0/0' interface
IF-MIB::ifDescr. = STRING: Adaptive Security Appliance 'Virtual254' interface

# 服务器上查找,返现 outside-1 对应的设备 ID 为 IF-MIB::ifDescr.3

shell > snmpwalk -v 2c -c public 192.168.2.254 IF-MIB::ifInOctets.   # 外网口进方向
IF-MIB::ifInOctets. = Counter32: shell > snmpwalk -v 2c -c public 192.168.2.254 IF-MIB::ifOutOctets. # 外网口出方向
IF-MIB::ifOutOctets. = Counter32:

四、创建主机、模板

1、主机

创建主机 -> SNMP 192.168.2.254 161 -> 创建

2、模板

创建模板 -> 模板名称 Cisco -> 群组 Templates -> 创建

创建应用 -> network interface

创建监控项 -> 名称 GigabitEthernet0/ - In
-> 类型 SNMPv2 端点代理模式
-> 键值 ifHCInOctets.
-> SNMP OID IF-MIB::ifHCInOctets.
-> SNMP community public
-> 单位 bps
-> 使用自定倍数
-> 存储值 差量(每秒速率)
-> 应用集 network interface
-> 创建

# 拿到的是 byte 要转换成 bit 即 bps,1 byte = 8 bit,所以要设置倍数为 8
# 照这样设置 GigabitEthernet0/0 - Out 即可,注意键值为 ifHCOutOctets.3,OID 为 OID IF-MIB::ifHCOutOctets.3

3、图形

创建图形 -> 名称 GigabitEthernet0/0 -> 加入监控项 -> 绘图风格 梯度线 -> 设置颜色 -> 创建

五、为主机添加模板

主机 -> 模板 -> 选择模板 -> Cisco -> 添加 -> 更新

# 收工 !

Zabbix 监控 Cisco ASA5525 流量的更多相关文章

  1. zabbix监控winserver网卡流量

    当前基于windows2008系统安装配置zabbix客户端,服务端为linux系统 1.设置防火墙规则 开启防火墙入站(tcp和udp)10050端口 2.在zabbix官网上下载windows包 ...

  2. zabbix监控windows主机网卡流量

    监控windows主机网卡流量 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任.     欢迎加入:高级运维工程师之路 598432640 客户端配置:(172.30.1.120,wi ...

  3. Zabbix监控交换机设置

    说明: Zabbix监控服务端已经配置完成,现在要使用Zabbix对交换机进行监控. 具体操作: 以下操作在被监控的交换机上进行,这里以Cisco交换机为例. 一.登录到Cisco交换机,开启snmp ...

  4. Zabbix监控和分布式部署实施方案

    最近在研究Zabbix监控,由于机房分布在多个城市,因此采用zabbix proxy做为监控方案,在每 个节点部署zabbix proxy,由zabbix proxy收集agentd数据,然后将采集到 ...

  5. Zabbix监控mysql performance

    介绍 zabbix监控mysql性能,使用zabbix自带的mysql监控模板,可以监控以下内容OPS(增删改查).mysql慢查询数量.mysql请求\响应流量带宽 配置 新建mysql监控用户 G ...

  6. Zabbix 监控 Nginx(四)

    简介: 如何使用 Zabbix 监控 Nginx 状态 ? 1.获取 Nginx 状态( HTTP Stub Status ) [root@localhost ~]# /apps/product/ng ...

  7. Zabbix 监控 Nginx 状态

    简介: 如何使用 Zabbix 监控 Nginx 状态 ? 1.获取 Nginx 状态( HTTP Stub Status ) shell > /usr/local/nginx/sbin/ngi ...

  8. zabbix监控路由器所有接口信息

    zabbix监控路由器所有接口信息 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. 1.首先在服务器端安装snmp工具 [root@bogon yinzhengjie]# yum - ...

  9. 分布式数据存储 - Zabbix监控MySQL性能

    Zabbix如何监控mysql性能,我们可以使用mysql自带的模板,可以监控如下内容:OPS(增删改查).mysql请求流量带宽,mysql响应流量带宽,最后会附上相应的监控图! 编写check_m ...

随机推荐

  1. IOS-网络(NSURLSession)

    一.NSURLSession的基本用法 // // ViewController.m // NSURLSession // // Created by ma c on 16/2/1. // Copyr ...

  2. RGB2YCbCr RGB2Gray

    Y = 0.2990R+0.5870G+0.1140B;                        Cb=-0.1687R-0.3313G+0.5000B+128;                 ...

  3. hdu2883

    题解: 网络流 用一个离散化 代码: #include<cstdio> #include<cstring> #include<algorithm> using na ...

  4. SharePoint 2013的100个新功能之开发

    一:SharePoint应用 SharePoint 2013引入了云应用模型来供用户创建应用.SharePoint应用是独立的功能整合,扩展了SharePoint网站的功能.应用可以包含SharePo ...

  5. icon fonts入门

    iconfont网站 http://www.iconfont.cn(推荐) http://fontello.com/ http://fontawesome.io/   https://icomoon. ...

  6. 爱奇艺、腾讯、优酷、搜狐、芒果、乐视、PPTV、音悦台等VIP视频免费观看

    观看地址一:http://www.luoruiyuan.cn/pages/id-62_uid-2_btid-35.html 观看地址二:http://movie.luoruiyuan.cn/vip.h ...

  7. 探究js正则匹配方法:match和exec

    match是字符串方法,写法为:str.match(reg) exec是正则表达式方法,写法为:reg.exec(str) match和exec在匹配成功时返回的都是数组,在没有匹配上时返回的都是nu ...

  8. RabbitMQ引入

    引入MQ话题 可能很多人有疑惑:MQ到底是什么?哪些场景下要使用MQ? 前段时间安装了RabbitMQ,现在就记录下自己的学习心得吧.首先看段程序: class Program { static vo ...

  9. 阻塞和非阻塞I/O

    阻塞和非阻塞I/O是设备访问的两种不同模式,驱动程序可以灵活的支持用户空间对设备的这两种访问形式.        阻塞操作是指在执行设备操作时,若不能获得资源,则挂起进程直到满足可操作的条件后在进行操 ...

  10. yum安装apache及问题解决

    一.检查服务器上是否已经安装了apache apache在linux系统里的名字是httpd,执行以下命令,如果有返回的信息,则会显示已经安装的软件.如果没有则不会显示其它的信息. rpm -qa h ...