
我正在使用 Monit 來監控我的所有服務。當 Jenkins 有--prefix=/ci
我需要在 Apache 後面運行它時,Jenkins 進程的 HTTP 測試失敗。
- 有沒有辦法讓 Monit 搜尋 HTTP 子目錄?
- 為什麼它在根目錄上失敗,因為當我訪問根目錄時它只顯示 404 錯誤。
答案1
您可以讓 monit 檢查特定的 HTTP 路徑而不是預設的根路徑。
if failed host 127.0.0.1 port 6633 protocol http request '/ci' then restart