zoukankan      html  css  js  c++  java
  • nagios 配置 check_traffic 流量监控模块(被监控端)

    1. 安装软件包
      yum -y install net-snmp*
      chkconfig nrpe on
      chkconfig snmpd on
    2. 使用SCP命令拷贝 check_traffic.sh 到 / usr/lib64/nagios/plugins/check_traffic.sh
      GitHub 下载地址:https://github.com/cloved/check_traffic/blob/master/check_traffic.sh
      wget https://github.com/cloved/check_traffic/archive/master.zip
    3. 修改snmpd.conf配置参数
      com2sec notConfigUser 127.0.0.1 public 
      com2sec notConfigUser localhost-IP public

      group notConfigGroup v1 notConfigUser 
      group notConfigGroup v2c notConfigUser

      view systemview included .1.3.6.1.2.1.1 
      view systemview included .1.3.6.1.2.1.2 
      view systemview included .1.3.6.1.2.1.25.1.1 
      view all included .1

      access notConfigGroup "" any noauth exact all none none
    4. 重启snmpd服务
      service snmpd start
      chkconfig snmpd on
    5. 监控端测试监控脚本
      cd /usr/lib64/nagios/plugins
      ./check_traffic.sh -V 2c -C public -H yourServer-IP -I 2 -w 1200,1500 -c 1700,1800 -K -B
      服务器端测试监控脚本

  • 相关阅读:
    Paths on a Grid
    Three Kingdoms(优先队列+bfs)
    Factstone Benchmark(数学)
    C. Searching for Graph(cf)
    B. Trees in a Row(cf)
    String Successor(模拟)
    乘积最大的分解(数学)
    Kindergarten Election
    In 7-bit
    Friends
  • 原文地址:https://www.cnblogs.com/Mrhuangrui/p/4626632.html
Copyright © 2011-2022 走看看