相关疑难解决方法(0)

NRPE 无法读取输出,但为什么呢?

我对 NRPE 有这个问题,到目前为止我在网上找到的所有东西似乎都指向我已经尝试过的东西。

# /usr/local/nagios/plugins/check_nrpe -H nrpeclient
Run Code Online (Sandbox Code Playgroud)

NRPE v2.12
Run Code Online (Sandbox Code Playgroud)

正如预期的那样。

手动运行命令(在“nrpeclient”上的 nrpe.cfg 中定义,给出预期的响应

nrpe.cfg:

command[check_openmanage]=/usr/lib/nagios/plugins/additional/check_openmanage -s -e   -b ctrl_driver=0 bat_charge

"Expected response"
Run Code Online (Sandbox Code Playgroud)

但是如果我尝试从 Nagios 服务器运行命令,我会得到以下信息:

# /usr/local/nagios/plugins/check_nrpe -H comxps -c check_openmanage
NRPE: Unable to read output
Run Code Online (Sandbox Code Playgroud)

谁能想到我可能在这方面犯了错误的其他任何地方?我在多台其他服务器上做了同样的事情,没有问题。我能想到的唯一区别是这个盒子是基于 RHEL 5 的,而其他盒子是基于 RHEL 4 的。

上面我测试过的这两点是大多数人在遇到这个问题时的建议。

我应该提到,当我重新启动时,日志中出现了一个奇怪的错误nrpe

nrpe[14534]: Unable to open config file '/usr/local/nagios/etc/nrpe.cfg' for reading 
nrpe[14534]: Continuing with errors...
nrpe[14535]: Starting up daemon
nrpe[14535]: Warning: Daemon is configured to accept command arguments from clients!
nrpe[14535]: Listening for connections …
Run Code Online (Sandbox Code Playgroud)

nagios nrpe

27
推荐指数
5
解决办法
13万
查看次数

标签 统计

nagios ×1

nrpe ×1