On Thu, 28 Mar 2002 11:01:30 -0800 (PST), Jim Trocki wrote: >On Thu, 28 Mar 2002, TORRESANI, Roberto wrote: > >>I need to test a service at a specific time. >>I know that I can use a plain cron for this, but, can I emulate >>this in mon? > >the scheduler doesn't support this functionality yet, but you could >hack >it by making your monitor sleep until the time you want to perform >the >check, and set "interval 1m" or something like that. this way mon >will >run the monitor every minute (if there isn't one already running), >the >monitor sleeps until the time you want, then it wakes up, performs >the >test, and returns the results to mon. > >this functionality should really be in the scheduler, with syntax >like this: > >watch something > service or-other > at 22:00 > monitor check-this.monitor > ... > >the "at" syntax should be a repeating time (e.g. not tied to >particular >year). it should be able to handle hh/mm/ss, days, weeks, months. >maybe >it should handle multiple times, like "mon 12:00, wed 12:00", or >maybe >these should be handled putting them in separate services. > > >
Has anyone implemented this hack of mon yet ? Roberto ? -- Richard PE�ARROYA, [EMAIL PROTECTED] on 19/04/2002
