[英]CHECK_NRPE: Error receiving data from daemon
我已經在 Centos 機器上配置了 nagios 服務器。 我正在嘗試向此 nagios 服務器版本 4.2.0 添加一台 rhel 6.6 機器。 在配置 NRPE 並對其進行測試時,有一個步驟是檢查配置為/usr/local/nagios/libexec/check_nrpe -H localhost
我在這一步收到如下錯誤:
CHECK_NRPE: Error - Could not complete SSL handshake.
所以,我使用了-n
選項: /usr/local/nagios/libexec/check_nrpe -n -H localhost
它顯示了一個新錯誤,如下所示:
CHECK_NRPE: Error receiving data from daemon.
系統日志只是說:
Aug 31 14:31:10 xxxxx xinetd[18730]: START: nrpe pid=18781 from=::1
Aug 31 14:31:10 xxxxx xinetd[18781]: FAIL: nrpe address from=::1
Aug 31 14:31:10 xxxxx xinetd[18730]: EXIT: nrpe status=0 pid=18781 duration=0(sec)
知道為什么會出現這種情況嗎?
/usr/local/nagios/var/nagios.log
的日志是否有任何錯誤。 這可能是nrpe.cfg
的問題,主要是語法錯誤。nrpe.cfg
也檢查您的命令定義。5666
已打開。/etc/xinetd.d/nrpe
允許的主機條目。當 nrpe 無法正確讀取其配置時,基本上會出現此問題。
檢查 nrpe.cfg 文件中的 allowed_hosts 參數。 您也需要允許 localhost。
CHECK_NRPE:錯誤 - 無法完成 SSL 握手。 解決方案:如果啟用了 ssl,則允許 nrpe.conf 文件中的主機在命令中刪除 -n。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.