CHECK_NRPE: Error
在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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论