Xymon Mailing List Archive search

analysis.cfg and TIME=

4 messages in this thread

list Gatis Anerauds · Mon, 28 Oct 2013 09:57:51 +0200 ·
Hi,

Is it possible to monitor a file on a specific day of month?

Thanks!
list Jeremy Laidman · Tue, 29 Oct 2013 12:48:18 +1100 ·
quoted from Gatis Anerauds
On 28 October 2013 18:57, Gatis Anerauds <user-e47f4dceddb4@xymon.invalid> wrote:
Is it possible to monitor a file on a specific day of month?
Sure it is, one way or another.  Can you be more specific in what you're
trying to do?  Can you describe what you mean by "monitor"?

J
list Gatis Anerauds · Tue, 29 Oct 2013 09:43:49 +0200 ·
Sorry for not being specific.
What I want to do is to monitor a file via analysis.cfg if file exists on
the first day of the month only.
With a "TIME=" tag I can specify only a day of week.
At least that was what I found in man pages, is that right?

Of course I could write some ext script, but build in functionality would
be very nice.

Thank you!
quoted from Jeremy Laidman


On Tue, Oct 29, 2013 at 3:48 AM, Jeremy Laidman <user-71895fb2e44c@xymon.invalid>wrote:
On 28 October 2013 18:57, Gatis Anerauds <user-e47f4dceddb4@xymon.invalid> wrote:
Is it possible to monitor a file on a specific day of month?
Sure it is, one way or another.  Can you be more specific in what you're
trying to do?  Can you describe what you mean by "monitor"?

J

list Jeremy Laidman · Wed, 30 Oct 2013 10:16:52 +1100 ·
quoted from Gatis Anerauds
On 29 October 2013 18:43, Gatis Anerauds <user-e47f4dceddb4@xymon.invalid> wrote:
Sorry for not being specific.
What I want to do is to monitor a file via analysis.cfg if file exists on
the first day of the month only.
You didn't say what you were looking for.  Size of file?  Existence of
file?  MD5?  Owner?  Or are you looking at the contents of a logfile for
problems?
quoted from Gatis Anerauds

With a "TIME=" tag I can specify only a day of week.
At least that was what I found in man pages, is that right?
Correct.  The time specification is described fully for the NKTIME
parameter in the hosts.cfg man page.  You can specify any, some or all days
of the week, but nothing to match days of the month.
quoted from Gatis Anerauds
Of course I could write some ext script, but build in functionality would
be very nice.
 Yes, probably a script.  Depending on what conditions you're trying to
detect, you might be able to use a fancy backtick shell scriptlet in
client-local.cfg.

J