It should work. You've specified the PID file, which is the first thing
monit checks. If monit doesn't find the PID file at that location, it
immediately attempts to restart the service.
Port checks are done after the PID check, and are not mandatory for monit
to work. It's just an additional control tool for services with external
connections.


On Wed, Jan 16, 2013 at 1:36 PM, Work <hackso...@163.com> wrote:

> **
> Hi,anyone who can tell me hwo to do?
>
> #Check Dynamic DNS tools ddclient
> check process ddclient with pidfile /var/run/ddclient.pid
>    group www
>    start program = "/usr/local/etc/rc.d/ddclient start"
>    stop  program = "/usr/local/etc/rc.d/ddclient stop"
>    if 5 restarts within 5 cycles then timeout
>    depends on ddclient_bin
>    depends on ddclient_rc
>
> check file ddclient_bin with path /usr/local/sbin/ddclient
>    group www
>    if failed checksum then unmonitor
>    if failed permission 555 then unmonitor
>    if failed uid root then unmonitor
>
>  check file ddclient_rc with path /usr/local/etc/rc.d/ddclient
>    group www
>    if failed checksum then unmonitor
>    if failed permission 555 then unmonitor
>    if failed uid root then unmonitor
>
> Because ddclient have no port(i think),so, the above is right?
>
> Thanks a lot!
>
> 顺祝商祺。
>
> ----
> 北京市快捷诚电子技术有限公司  王俊明
> 电话:010-88097128-8802
> Email:hackso...@163.com
> 网址:www.ibmserver.com.cn
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general
>
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to