⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 monitor

📁 开发snmp的开发包有两个开放的SNMP开发库
💻
字号:
title Monitor Various Aspects of the Running Hostdescription The following check up on various aspects of a host.token procinfo Check for processes that should be running.info #  proc NAME [MAX=0] [MIN=0]info #info #  NAME:  the name of the process to check for.  It must matchinfo #         exactly (ie, http will not find httpd processes).info #  MAX:   the maximum number allowed to be running.  Defaults to 0.info #  MIN:   the minimum number to be running.  Defaults to 0.info #info The results are reported in the prTable section of the UCD-SNMP-MIB treeinfo Special Case:  When the min and max numbers are both 0, it assumesinfo you want a max of infinity and a min of 1.question 1 Name of the process you want to check onquestion 2 Maximum number of processes named '$1' that should be running [default = 0]question 3 Minimum number of processes named '$1' that should be running [default = 0]token diskinfo Check for disk space usage of a partition.info The agent can check the amount of available disk space, and makeinfo sure it is above a set limit.  infoinfo # disk PATH [MIN=100000]info #info # PATH:  mount path to the disk in question.info # MIN:   Disks with space below this value will have the Mib's errorFlag set.info #        Can be a raw byte value or a percentage followed by the %info #        symbol.  Default value = 100000.info #info The results are reported in the dskTable section of the UCD-SNMP-MIB treequestion 1 Enter the mount point for the disk partion to be checked onquestion 2 Enter the minimum amount of space that should be available on $1token loadinfo Check for unreasonable load average values.info Watch the load average levels on the machine.infoinfo # load [1MAX=12.0] [5MAX=12.0] [15MAX=12.0]info #info # 1MAX:   If the 1 minute load average is above this limit at queryinfo #         time, the errorFlag will be set.info # 5MAX:   Similar, but for 5 min average.info # 15MAX:  Similar, but for 15 min average.info #info The results are reported in the laTable section of the UCD-SNMP-MIB treequestion 1 Enter the maximum allowable value for the 1 minute load averagequestion 2 Enter the maximum allowable value for the 5 minute load averagequestion 3 Enter the maximum allowable value for the 15 minute load averagevalidanswer 1 ^[\d\.]+$validanswer 2 ^([\d\.]+|)$validanswer 3 ^([\d\.]+|)$token fileinfo Check on the size of a file.info Display a files size statistics.info If it grows to be too large, report an error about it.infoinfo # file /path/to/file [maxsize_in_bytes]info #info #   if maxsize is not specified, assume only size reporting is needed.info #info The results are reported in the fileTable section of the UCD-SNMP-MIB treequestion 1 Enter the path to the file you wish to monitorquestion 2 Enter the maximum size (in bytes) allowable for $1group monitoring_servicesmultiple proc Do you want to configure the agents ability to monitor processes?multiple disk Do you want to configure the agents ability to monitor disk space?multiple load Do you want to configure the agents ability to monitor load average?multiple file Do you want to configure the agents ability to monitor file sizes?

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -