免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5327 | 回复: 1
打印 上一主题 下一主题

nagios-snmp-plugins 控windows主机的网卡流量 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-04-28 20:20 |只看该作者 |倒序浏览
利用nagios-snmp-plugins.1.1.1.tgz 监控windows主机的网卡流量
步骤:
1、nagios-snmp-plugins安装

下载地址:http://sourceforge.net/projects/ ... .1.1.1.tgz/download
# tar zxvf nagios-snmp-plugins.1.1.1.tgz
安装nagios-snmp-plugins先得安装  install Net::SNMP perl module
# perl -MCPAN -e shell
cpan> install Net::SNMP
# cd nagios-snmp-plugins.1.1.1
# ./install

注:默认会安装在/usr/local/nagios/libexec目录
2、配置
  2.1、添加以下内容到/usr/local/nagios/etc/objects/commands.cfg
define command{
        command_name check_snmp_int
        command_line $USER1$/check_snmp_int.pl -H $HOSTADDRESS$ -C $ARG1$ -n $ARG2$ -f -kB -Y -w$ARG3$,$ARG4$ -c $ARG5$,$ARG6$
        }  
2.2、在相应主机服务配置文件中添加以下内容
define service{
        use                         generic-service
        host_name                  winserver
        service_description       Bandwidth
        check_command            check_snmp_int!public!Broadcom NetXtreme Gigabit Ethernet!2!50!10!60
        is_volatile                      0
        max_check_attempts       3
        check_interval                 1
        retry_interval                   1
        check_period                   24x7
        notification_interval           5
        notification_period            24x7
        notification_options          w,u,c,r
        contact_groups               admins
        register                          1
        }
注: check_snmp_int!public!Broadcom NetXtreme Gigabit Ethernet!2!50!10!60
  Broadcom NetXtreme Gigabit Ethernet 为网卡名称
  public 为snmp的团体名称
    2,50  是input/output  警告报警
     10,60是inout/putput 严重报警



3、监控
重启nagios服务
# /etc/init.d/nagios restart
如下图所示:

论坛徽章:
0
2 [报告]
发表于 2011-05-14 00:02 |只看该作者
请问可有基于TCP协议的流量查看工具,因为机房是封闭UDP的,所以只能用tcp的方式获取
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP