nagios-snmp-plugins 控windows主机的网卡流量

Note: There is a file embedded within this post, please visit this post to download the file.

下载地址:http://sourceforge.net/projects/ … .1.1.1.tgz/download# tar zxvf nagios-snmp-plugins.1.1.1.tgz安装nagios-snmp-plugins先得安装??install Net::SNMP perl module# perl -MCPAN -e shellcpan> install Net::SNMP# cd nagios-snmp-plugins.1.1.1# ./install注:默认会安装在/usr/local/nagios/libexec目录2、配置2.1、添加以下内容到/usr/local/nagios/etc/objects/commands.cfgdefine command{command_name check_snmp_intcommand_line $USER1$/check_snmp_int.pl -H $HOSTADDRESS$ -C $ARG1$ -n $ARG2$ -f -kB -Y -w$ARG3$,$ARG4$ -c $ARG5$,$ARG6$}2.2、在相应主机服务配置文件中添加以下内容define service{use? ?? ?? ?? ?? ?? ???     generic-servicehost_name? ?? ?? ?? ?? ?   winserverservice_description? ???  Bandwidthcheck_command? ?? ?? ??? check_snmp_int!public!Broadcom NetXtreme Gigabit Ethernet!2!50!10!60is_volatile? ?? ?? ?? ?? ?? ?? ? 0max_check_attempts? ?? ? 3check_interval? ?? ?? ?? ?? ???1retry_interval? ?? ?? ?? ?? ?? ? 1check_period? ?? ?? ?? ?? ?? ? 24×7notification_interval? ?? ?? ???5notification_period? ?? ?? ?? ?24×7notification_options? ?? ?? ? w,u,c,rcontact_groups? ?? ?? ?? ?? ?adminsregister? ?? ?? ?? ?? ?? ?? ?? ???1}注: check_snmp_int!public!Broadcom NetXtreme Gigabit Ethernet!2!50!10!60Broadcom NetXtreme Gigabit Ethernet 为网卡名称public 为snmp的团体名称2,50??是input/output??警告报警10,60是inout/putput 严重报警

3、监控重启nagios服务# /etc/init.d/nagios restart如下图所示:

nagios-snmp-plugins 控windows主机的网卡流量

相关文章:

你感兴趣的文章:

标签云: