Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1172618
  • 博文数量: 150
  • 博客积分: 2739
  • 博客等级: 少校
  • 技术积分: 2392
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-07 12:28
文章分类

全部博文(150)

文章存档

2015年(2)

2014年(16)

2013年(10)

2012年(58)

2011年(64)

分类: 系统运维

2012-08-30 11:37:20

来源地址:
 这里面还有好多好东西。 

点击(此处)折叠或打开

  1. # 'check_system' command definition
  2.  define command{
  3.      command_name    check_system
  4.      command_line    /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o sysDescr.0
  5.      }
  6.  
  7.  # 'snmp_load' command definition
  8.  define command{
  9.      command_name    snmp_load
  10.      command_line    /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o .1.3.6.1.4.1.2021.10.1.5.1,.1.3.6.1.4.1.2021.10.1.5.2,.1.3.6.1.4.1.2021.10.1.5.3 -w :'$ARG2$',:'$ARG3$',:'$ARG4$' -c :'$ARG5$',:'$ARG6$',:'$ARG7$' -l load
  11.      }
  12.  
  13.  
  14.  # 'snmp_cpustats' command definition
  15.  define command{
  16.      command_name    snmp_cpustats
  17.      command_line    /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o .1.3.6.1.4.1.2021.11.9.0,.1.3.6.1.4.1.2021.11.10.0,.1.3.6.1.4.1.2021.11.11.0 -l 'CPU usage (user system idle)' -u '%'
  18.      }
  19.  
  20.  
  21.  # 'snmp_procname' command definition
  22.  define command{
  23.      command_name    snmp_procname
  24.      command_line    /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o .1.3.6.1.4.1.2021.2.1.5.'$ARG2$' -w '$ARG3$':'$ARG4$' -c '$ARG5$':'$ARG6$'
  25.      }
  26.  
  27.  
  28.  # 'snmp_disk' command definition
  29.  define command{
  30.      command_name    snmp_disk
  31.      command_line    /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o .1.3.6.1.4.1.2021.9.1.7.'$ARG2$',.1.3.6.1.4.1.2021.9.1.9.'$ARG2$' -w '$ARG3$':,:'$ARG4$' -c '$ARG5$':,:'$ARG6$' -u 'kB free (','% used)' -l 'disk space'
  32.      }
  33.  
  34.  
  35.  # 'snmp_mem' command definition
  36.  define command{
  37.      command_name    snmp_mem
  38.      command_line    /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o .1.3.6.1.4.1.2021.4.6.0,.1.3.6.1.4.1.2021.4.5.0 -w '$ARG2$': -c '$ARG3$':
  39.      }
  40.  
  41.  # 'snmp_uptime' command definition
  42.  define command{
  43.      command_name    snmp_uptime
  44.      command_line /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o sysUpTime.0
  45.          }
  46.  
  47.  # 'snmp_swap' command definition
  48.  define command{
  49.      command_name    snmp_swap
  50.      command_line    /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o .1.3.6.1.4.1.2021.4.4.0,.1.3.6.1.4.1.2021.4.3.0 -w '$ARG2$': -c '$ARG3$':
  51.      }
  52.  
  53.  
  54.  # 'snmp_procs' command definition
  55.  define command{
  56.      command_name    snmp_procs
  57.      command_line    /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o host.hrSystem.hrSystemProcesses -w :'$ARG2$' -c :'$ARG3$' -l processes
  58.      }
  59.  
  60.  
  61.  # 'snmp_users' command definition
  62.  define command{
  63.      command_name    snmp_users
  64.      command_line    /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o host.hrSystem.hrSystemNumUsers -w :'$ARG2$' -c :'$ARG3$' -l users
  65.      }
  66.  
  67.  
  68.  # 'snmp_mem2' command definition
  69.  define command{
  70.      command_name    snmp_mem2
  71.      command_line    /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageUsed.'$ARG2$',host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageSize.'$ARG2$' -w '$ARG3$' -c '$ARG4$'
  72.      }
  73.  
  74.  
  75.  # 'snmp_swap2' command definition
  76.  define command{
  77.      command_name    snmp_swap2
  78.      command_line    /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageUsed.'$ARG2$',host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageSize.'$ARG2$' -w '$ARG3$' -c '$ARG4$'
  79.      }
  80.  
  81.  
  82.  # 'snmp_mem3' command definition
  83.  define command{
  84.      command_name    snmp_mem3
  85.      command_line    /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageUsed.'$ARG2$',host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageSize.'$ARG2$' -w '$ARG3$' -c '$ARG4$'
  86.      }
  87.  
  88.  
  89.  # 'snmp_swap3' command definition
  90.  define command{
  91.      command_name    snmp_swap3
  92.      command_line    /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageUsed.'$ARG2$',host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageSize.'$ARG2$' -w '$ARG3$' -c '$ARG4$'
  93.      }
  94.  
  95.  
  96.  # 'snmp_disk2' command definition
  97.  define command{
  98.      command_name    snmp_disk2
  99.      command_line    /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageUsed.'$ARG2$' -w '$ARG3$' -c '$ARG4$'
  100.      }
  101.  
  102.  
  103.  # 'snmp_tcpopen' command definition
  104.  define command{
  105.      command_name    snmp_tcpopen
  106.      command_line    /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o tcp.tcpCurrEstab.0 -w '$ARG2$' -c '$ARG3$'
  107.      }
  108.  
  109.  
  110.  # 'snmp_tcpstats' command definition
  111.  define command{
  112.      command_name    snmp_tcpstats
  113.      command_line    /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o tcp.tcpActiveOpens.0,tcp.tcpPassiveOpens.0,tcp.tcpInSegs.0,tcp.tcpOutSegs.0,tcp.tcpRetransSegs.0 -l 'TCP stats'
  114.      }
  115.  
  116.  
  117.  # 'check_snmp_bgpstate' command definition
  118.  define command{
  119.      command_name    check_snmp_bgpstate
  120.      command_line    /usr/lib/nagios/plugins/check_bgpstate '$HOSTADDRESS$' -c '$ARG1$'
  121.      }
  122.  
  123.  
  124.  # 'check_netapp_uptime' command definition
  125.  define command{
  126.      command_name    check_netapp_uptime
  127.      command_line    /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o .1.3.6.1.2.1.1.3.0 --delimiter=')' -l "Uptime is"
  128.      }
  129.  
  130.  
  131.  # 'check_netapp_cpuload' command definition
  132.  define command{
  133.      command_name    check_netapp_cpuload
  134.      command_line    /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o .1.3.6.1.4.1.789.1.2.1.3.0 -w 90 -c 95 -u '%' -l "CPU LOAD "
  135.      }
  136.  
  137.  
  138.  # 'check_netapp_numdisks' command definition
  139.  define command{
  140.      command_name    check_netapp_numdisks
  141.      command_line    /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o .1.3.6.1.4.1.789.1.6.4.1.0,.1.3.6.1.4.1.789.1.6.4.2.0,.1.3.6.1.4.1.789.1.6.4.8.0,.1.3.6.1.4.1.789.1.6.4.7.0 -u 'Total Disks','Active','Spare','Failed' -l ""
  142.      }
  143.  
  144.  
  145.  # 'check_compaq_thermalCondition' command definition
  146.  define command{
  147.      command_name    check_compaq_thermalCondition
  148.      command_line     /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o .1.3.6.1.4.1.232.6.2.1.0,.1.3.6.1.4.1.232.6.2.2.0,.1.3.6.1.4.1.232.6.2.3.0,.1.3.6.1.4.1.232.6.2.4.0 -u 'ThermalCondition','ThermalTemp','ThermalSystem','ThermalCPUFan' -w 2:2,2:2,2:2,2:2 -c 1:2,1:2,1:2,1:2 -l "Thermal status "
  149.      }
欢迎访问,数据恢复:

阅读(4877) | 评论(2) | 转发(0) |
0

上一篇:MongoDB的监控

下一篇:批量安装linux脚本

给主人留下些什么吧!~~

g3610313152012-12-21 17:48:50

好东西,正好需要,可是ARG1 是 密码, 有的ARG2 ARG3 ARG4 参数该怎么写? 哪里可以查啊。有的真不好蒙

随风飘云2012-08-30 11:39:05