nagios安装snmp插件
如果你是自己编译的nagios,check_snmp已经自带了,但是没有丰富的插件,需要安装:
首先安装perl的net-snmp模块
#perl -MCPAN -e shell
#cpan> install Net::SNMP
然后再去http://nagios.manubulon.com/下载插件
wget http://nagios.manubulon.com/nagios-snmp-plugins.1.1.1.tgz
tar zxvf nagios-snmp-plugins.1.1.1.tgz
cd nagios-snmp-plugins.1.1.1
./install
样例:
define command{
command_name check_disk
command_line /usr/bin/perl $USER1$/check_snmp_storage.pl -C $ARG1$ [........]
}