美好的一天, 我正在为NRPE配置NAGIOS寻求一些帮助。我在Linux上很新,似乎在使用这个工作时遇到了一些麻烦。 我正在使用Nagios 3.3.1核心运行Ubuntu 11.10,运行nrpe2.13的Nagios插件1.4.15 目前我正在尝试使用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$
}
非常感谢任何想法
戴夫
答案 0 :(得分:0)
这看起来不对
check_command check_nrpe! -t 240 -c check_be
我认为那些额外的参数需要在define命令块中。
同时更改check_command的名称。您可能会将check_nrpe可执行命令(在终端中运行)与您的同名check_command(终端shell未知)混淆。
这是一个与你正在做的非常相似的工作示例。
在主要的nagios机器上:
define command {
command_name check_nrpe_cart
command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -p 6565 -c $ARG1$
}
define service{
use clientcritical
host_name cartbox
service_description email
normal_check_interval 15
check_command check_nrpe_cart!check_postfix
}
在/etc/nagios/nrpe_local.cfg中的cartbox上
command[check_postfix]=/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -C master
答案 1 :(得分:0)
您应该从以下链接阅读pdf,您将获得最大可能的答案 对于NRPE NAGIOS通信问题。
http://assets.nagios.com/downloads/nagiosxi/docs/NRPE_Troubleshooting_and_Common_Solutions.pdf