Nagios / Icinga(Debian Squeeze) -  CHECK_NRPE:从守护程序接收到0个字节。检查远程服务器日志以获取错误消息。

错误:Nagios / Icinga(Debian Squeeze) - CHECK_NRPE:从守护程序接收0个字节。 检查远程服务器日志中是否有错误消息。

您使用Nagios或Icinga监视远程服务器,并在Nagios / Icinga Web界面中看到以下错误:

CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.

在远程服务器上的/ var / log / syslog中 ,您会看到以下消息:

Aug 23 14:20:20 server2 nrpe[11496]: Error: Request contained command arguments, but argument option is not enabled!
Aug 23 14:20:20 server2 nrpe[11496]: Client request was invalid, bailing out...

在远程Nagios NRPE服务器上打开/etc/nagios/nrpe.cfg ...

vi /etc/nagios/nrpe.cfg

...并将dont_blame_nrpe设置为1

[...]
# COMMAND ARGUMENT PROCESSING
# This option determines whether or not the NRPE daemon will allow clients
# to specify arguments to commands that are executed.  This option only works
# if the daemon was configured with the --enable-command-args configure script
# option.
#
# *** ENABLING THIS OPTION IS A SECURITY RISK! ***
# Read the SECURITY file for information on some of the security implications
# of enabling this variable.
#
# Values: 0=do not allow arguments, 1=allow command arguments

dont_blame_nrpe=1
[...]

保存文件并重新启动NRPE服务器:

/etc/init.d/nagios-nrpe-server restart
赞(52) 打赏
未经允许不得转载:优客志 » 系统运维
分享到:

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏