[Xymon] FILES in analysis.cfg
Root, Paul T
Paul.Root at CenturyLink.com
Wed Feb 19 17:34:38 CET 2014
I do that now:
analysis.cfg: FILE %^/core.* YELLOW NOEXIST
client-local.cfg:file:`ls /core.*`
so change YELLOW to RED, and adjust the path.
-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Nick Pettefar
Sent: Wednesday, February 19, 2014 10:29 AM
To: xymon
Subject: Re: [Xymon] FILES in analysis.cfg
Is there also a way to have the red with a wildcard? I am thinking
specifically about /var/core/core* files which are very important to
know if they exist but have undetermined names. We also need the
alarm to stay on until the core* files are removed.
Regards,
Nick Pettefar
> Date: Tue, 18 Feb 2014 22:54:30 +0100
> From: Henrik St?rner <henrik at hswn.dk>
> Subject: Re: [Xymon] FILES in analysis.cfg
>> So how do I get the files test go RED on a missing file?
>
> OK, I had to do some testing with this.
>
> The problem is that when the file does not exist, then the `ls -1 ...`
> will not produce any output. Without any output, Xymon cannot tell that
> there is a file-check happening.
>
> If you have an explicit filename in client-local.cfg, then the FILE
> check in analysis.cfg works as expected, because the xymon client will
> report that the specific file is missing.
>
> So:
>
> client-local.cfg:
> [myhost]
> file:/var/tmp/sys-heartbeat-myhost
>
> analysis.cfg
> HOST=myhost
> FILE %^/var/tmp/sys-heartbeat-.* MTIME<3700
>
> This will go red if the file is missing, or it exists and is older than
> 3700 seconds.
>
>
> Regards,
> Henrik
Call
Send SMS
Add to Skype
You'll need Skype CreditFree via Skype
_______________________________________________
Xymon mailing list
Xymon at xymon.com
http://lists.xymon.com/mailman/listinfo/xymon
More information about the Xymon
mailing list