在被监控的主机snmpd.conf中加入如下内容
….
###############################################################################
# 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 10 megs.
#disk / 10000
#disk / 100000
includeAllDisks 10%
….
主要是includeAllDisks 10%这句,如果没有这句话,出问题的磁盘空间实际上显示的是cacti所在主机的磁盘空间。
至于为什么,不是很明白。