monit-general
[Top][All Lists]
Advanced

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

Re: [monit] performing several URL checks simultaneously


From: Martin Pala
Subject: Re: [monit] performing several URL checks simultaneously
Date: Fri, 28 Nov 2008 07:28:11 +0100

it should restart the process one time only


On Nov 28, 2008, at 4:51 AM, Ron Hecht wrote:

If I perform each of the url separatly under the same process does it
restarts the process three times each cycle in case all the url failed
or just a single time

check process apache
   with pidfile "/usr/local/apache/logs/httpd.pid"
   start program = "/etc/init.d/httpd start" with timeout 60 seconds
   stop program = "/etc/init.d/httpd stop"
   if 2 restarts within 3 cycles then timeout
   if failed url http://localhost:8080/a and content == 'ggg' for 50
cycles then restart
   if failed url http://localhost:8080/b and content == 'fff' for 50
cycles then restart
   if failed url http://localhost:8080/c and content == 'hhh' for 50
cycles then restart


On Thu, Nov 27, 2008 at 8:01 PM, Martin Pala <address@hidden> wrote:

It's not possible currently to create such compound statements, but we plan to improve the language: http://www.mmonit.com/monit/ next/ ... the support for OR and AND could be good to add.
Right now you will need to write each statement separately.
Martin

On Nov 27, 2008, at 10:18 AM, Ron Hecht wrote:


Hi All

Is there a way to perfome several URL checks simultaneously.
something that look like that:

if failed url http://localhost:8080/a and content == 'ggg'
   or failed url http://localhost:8080/b and content == 'fff'
   or failed url http://localhost:8080/c and content == 'hhh'
   for 50 cycles then restart

Or

if failed url http://localhost:8080/a and content == 'ggg'
   and failed url http://localhost:8080/b and content == 'fff'
   and failed url http://localhost:8080/c and content == 'hhh'
   for 50 cycles then restart

Thanks


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

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


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





reply via email to

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