Jenkins在子目录上时,Monit会失败Jenkins HTTPtesting

我正在使用Monit来监视我的所有服务。 当jenkins有--prefix=/ci我需要在Apache后面运行时,Jenkins进程不能通过HTTPtesting。

  1. 有没有办法让Monitsearch一个HTTP子目录?
  2. 为什么它在根上失败,因为当我访问根时,它只显示一个404错误。

你可以做一个特定的HTTPpath而不是默认的根path。

 if failed host 127.0.0.1 port 6633 protocol http request '/ci' then restart