xinetd 不讀取“包含目錄”

xinetd 不讀取“包含目錄”

我想用 check_mk 監控我的 pfSense-Box。因此我需要透過 xinetd 存取某個連接埠。我在以下位置找到了對此的描述: https://forum.netgate.com/topic/99612/pfsense-2-3-check_mk-working-with-xinetd/2

重新加載過濾器後,我在狀態 | 中得到關注系統日誌|一般的:

無法讀取包含的目錄:/opt/etc/xinetd.d [file=/var/etc/xinetd.conf] [line=1]

/var/etc/xinetd.conf 包含:

includedir /opt/etc/xinetd.d

/opt/etc/xinet.d 的權限設定為 775:

drwxrwxr-x  2 root  wheel  512 Dec  6 15:36 xinet.d

檔案 /opt/etc/xinetd/check_mk 來自上面的帖子。重要的部分是:

service check_mk
{
    type           = UNLISTED
    port           = 6556
    socket_type    = stream
    protocol       = tcp
    wait           = no
    user           = root
    server         = /opt/bin/check_mk_agent
    #server         = /usr/bin/check_mk_caching_agent
    # configure the IP address(es) of your Nagios server here:
    only_from      = 127.0.0.1 192.168.129.12 192.168.129.33
    log_on_success =
    disable        = no
}

所以對我來說一切看起來都很好,但是由於 xinetd 規則沒有被加載,我無法從我的監控伺服器連接到 check_mk_agent。

更深入地觀察,我發現這一行

fclose($xinted_fd);

在文件“/etc/inc/filter.inc”中出現了兩次- 在第2256 行和第2479 行中。 。重新載入過濾器後沒有任何變化。日誌中也有相同的錯誤訊息。

當我手動啟動 xinetd 時

xinetd -f /var/etc/xinetd.conf

它啟動,我可以從監視器主機取得支票。重新啟動後,xinetd 不再運作:-((

答案1

問題已解決 - 我的目錄名稱中有一個不可見的字元。刪除它並再次創建(仔細鍵入)使其工作。非常抱歉耽誤您的時間。卡爾

相關內容