在获取cpu mem load过程中最重要的是需要注意下被监控的服务器是否开启了snmp协议,以及snmp协议中是否设置了允许得到cpu mem 和 load的信息。
具体如下,红色部分是snmpd.conf中需要改动的部分
# Make at least snmpwalk -v 1 localhost -c public system fast again.
# name incl/excl subtree mask(optional)
view systemview included .1
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1
# Make sure mountd is running
proc mountd
# Make sure there are no more than 4 ntalkds running, but 0 is ok too.
proc ntalkd 4
# Make sure at least one sendmail, but less than or equal to 10 are running.