(1)找到nagios-plugins-1.4.15目录即nagios-plugins的安装编译目录
#cd nagios-plugins-1.4.15
(2)重新设置编译参数
# ./configure --with-snmpget-command=/usr/bin/snmpwalk --with-snmpgetnext-command=/usr/bin/snmpwalk
(3)编译但千万别编译完后千万别make install否则会覆盖以前安装的nagios-plugins
#make
(4)手动将check_snmp拷贝到/usr/local/nagios/libexec/
#cd plugins
#cp check_snmp /usr/local/nagios/libexec/check_snmp
注:如果不执行make install 编译好的插件会存放到 plugins目录下