monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using Monit do restart cron


From: Lawrence, Wayne
Subject: Re: using Monit do restart cron
Date: Fri, 17 Aug 2012 18:04:17 +0100

just a quick note the /etc/init.d file is crond not cron on most distros :)

On 17 August 2012 16:16, Alexandre Carlos Vilarinho de Oliveira <address@hidden> wrote:

Hello all,

 

Is it possible to configure monit to restart CRON if it stop working for some reason?

 

Currently I´m using the following configuration to monitor it, but monit do not restart it.

 

check process cron with pidfile /var/run/cron.pid

   group system

   start program = "/etc/init.d/cron start"

   stop  program = "/etc/init.d/cron stop"

   if 5 restarts within 5 cycles then timeout

   depends on cron_rc

 

check file cron_rc with path /etc/init.d/cron

   group system

   if failed checksum then unmonitor

   if failed permission 755 then unmonitor

   if failed uid root then unmonitor

   if failed gid root then unmonitor

 

Regards

 

Atenciosamente

 

Alexandre Vilarinho
Gerente de Engenharia de Rede IP/TI
Tel.: (55 11) 3017-4683
Cel.: (55 11) 7757-8388
Fax: (55 11) 3017-4464

address@hidden

www.neovia.com.br
----------------------------
Descrição: http://www.neovia.com.br/assinaturas/assinatura.gif

 


--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general


reply via email to

[Prev in Thread] Current Thread [Next in Thread]