Yes, monit uses following logging priorities:
{LOG_EMERG, "emergency"},
{LOG_ALERT, "alert"},
{LOG_CRIT, "critical"},
{LOG_ERR, "error"},
{LOG_WARNING, "warning"},
{LOG_NOTICE, "notice"},
{LOG_INFO, "info"},
{LOG_DEBUG, "debug"},
On Dec 1, 2008, at 11:13 AM, Ron Hecht wrote:
Is there something like log levels in the logfile?
Or is there a log in which I can see the messages that were sent?
On Fri, Nov 28, 2008 at 8:28 AM, Martin Pala
<address@hidden>
wrote:
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
--
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