美好的一天,我正在为NRPE配置NAGIOS寻求一些帮助 . 我在Linux上很新,似乎在使用这个工作时遇到了一些麻烦 . 我运行Ubuntu 11.10与Nagios 3.3.1核心和Nagios插件1.4.15运行nrpe2.13目前我正在尝试使用Nagios Exchange插件check_be.exe与Nagios一起使用 . 我按照check_be.txt在我的nagios服务器和windows backup exec服务器上进行了设置 .
目前如果我运行root @PERSES:/ usr / local / nagios / libexec# . / check_nrpe -H 192.168.1.10 -t200 -c check_be
我将获得工作:每日备份,成功,日期:2012年4月17日
从Nagios我得到的是没有从插件返回的输出 .
Windows.cfg具有以下条目
# Service for Backup Exec agent
define service {
use template-backupexec
service_description BackupExec - Daily DAT backup ; specific display name, if you need
host_name cmbssrv.cmbs.local
}
Templates.cfg有这个条目 - 我试图修改它以避免套接字超时
define service{
name template-backupexec
use generic-service
service_description BackupExec Job Check ; default display name in Nagios
check_command check_nrpe! -t 240 -c check_be ; same name as in the nsclient++ nsc.ini command defini$
normal_check_interval 60 ; your check intervals here
retry_check_interval 60
register 0 ; this is a template
}
Commands.cfg
# 'check_nrpe' command definition
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDESS$ -p 5666 -v $ARG1$
}
任何想法将不胜感激
戴夫
2 回答
您应该从以下链接阅读pdf,您将获得NRPE NAGIOS通信问题的最大可能答案 .
http://assets.nagios.com/downloads/nagiosxi/docs/NRPE_Troubleshooting_and_Common_Solutions.pdf
这看起来不错
我认为那些额外的参数需要在define命令块中 .
还要更改check_command的名称 . 您可能会将check_nrpe可执行命令(在终端中运行)与您的同名check_command(终端shell未知)混淆 .
这是一个与你正在做的非常相似的工作示例 .
在主要的nagios机器上:
在/etc/nagios/nrpe_local.cfg中的cartbox上