[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: monitor a not daemon processor
From: |
Josh Kelley |
Subject: |
Re: monitor a not daemon processor |
Date: |
Mon, 23 Jul 2007 16:40:42 -0400 |
On 7/23/07, Pedro Simões <address@hidden> wrote:
It's possible to monitor a process that runs once in a day, i.e, it's
not a daemon. I need to check if that process runs every day and
report if it fails someday.
You can have the process log to a file and have Monit make sure that
the file's timestamp never exceeds 1 day or so, or you can have Monit
check the log file for specific contents if you're able to determine
what is logged on success and what is logged on failure.
Example:
check file once_a_day_logfile with path /var/log/onceaday
if timestamp > 25 hours then alert
if match "ERROR" then alert
Josh Kelley