# sec.name source community com2sec paranoid default public com2sec readonly default public com2sec readwrite default private11
再修改(檢測磁碟/ 目錄的磁碟空間)
# disk checks # # The agent can check the amount of available disk space, and make # sure it is above a set limit.
# disk PATH [MIN=DEFDISKMINIMUMSPACE] # # PATH: mount path to the disk in question. # MIN: Disks with space below this value will have the Mib's errorFlag set. # Default value = DEFDISKMINIMUMSPACE.
# Check the / partition and make sure it contains at least 100 megs.
disk / 100000
再修改(查伺服器cpu平均負載)
# load average checks #
# load [1MAX=DEFMAXLOADAVE] [5MAX=DEFMAXLOADAVE] [15MAX=DEFMAXLOADAVE] # # 1MAX: If the 1 minute load average is above this limit at query # time, the errorFlag will be set. # 5MAX: Similar, but for 5 min average. # 15MAX: Similar, but for 15 min average.