CHECK_NRPE: Error

发布于 2021-12-01 04:05:57 字数 1809 浏览 870 评论 0

在nagios服务器端执行以下命令报错:

[root@nagios libexec]# ./check_nrpe -H localhost

NRPE v2.12
[root @nagios libexec]# ./check_nrpe -H 192.168.1.18
CHECK_NRPE: Error - Could not complete SSL handshake.
[root @nagios libexec]# ./check_nrpe -H 192.168.1.52
CHECK_NRPE: Socket timeout after 10 seconds.
[root @nagios libexec]# ./check_nrpe -H 127.0.0.1

NRPE v2.12

其中192.168.1.18是本地ip,192.168.1.52是被监控端ip,被监控端执行命令结果如下:

# ./check_nrpe -H 192.168.1.52
NRPE v2.12

客户端nrpe.cfg配置为:

# ALLOWED HOST ADDRESSES
# This is an optional comma-delimited list of IP address or hostnames
# that are allowed to talk to the NRPE daemon.
#
# Note: The daemon only does rudimentary checking of the client's IP
# address.  I would highly recommend adding entries in your /etc/hosts.allow
# file to allow only the specified host to connect to the port
# you are running this daemon on.
#
# NOTE: This option is ignored if NRPE is running under either inetd or xinetd


allowed_hosts=192.168.1.18,127.0.0.1


# SERVER ADDRESS
# Address that nrpe should bind to in case there are more than one interface
# and you do not want nrpe to bind on all interfaces.
# NOTE: This option is ignored if NRPE is running under either inetd or xinetd


#server_address=192.168.1.52


如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文