Hi,
That part work just fine. Anything the * expands to will be picked up by xymon.
My question is the FILE directive in the analysis.cfg
If I just set it to
FILE /var/tmp/sys-heartbeat-myhost red MTIME<3700
Everything works just fine.
But,
If I change it to:
FILE /var/tmp/sys-heartbeat-myhostttt red MTIME<3700
If I read the manual correctly it should go RED because there is no file called /var/tmp/sys-heartbeat-myhostttt
If I touch the new myhostttt file it will show up on the test page
That means the
file:ls -1 /var/tmp/sys-heartbeat-*
Works just fine as it should.
So how do I get the files test go RED on a missing file?
- Roland
-----Original Message----- From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Mike Burger Sent: Wednesday, 19 February 2014 2:43 AM To: Mark Felder Cc: xymon at xymon.com Subject: Re: [Xymon] FILES in analysis.cfg
On Mon, Feb 17, 2014, at 15:48, Roland Soderstrom wrote:
client-local.cfg: [sunos] file:
ls -1 /var/tmp/sys-heartbeat-*I'm pretty sure you can't do that. You need to list every file individually.
If the user really wants to be able to use a wildcard, another option might be something like:
file:find /var/tmp -type f -name sys-heartbeat-* | sort -r
-- Mike Burger http://www.bubbanfriends.org
"It's always suicide-mission this, save-the-planet that. No one ever just stops by to say 'hi' anymore." --Colonel Jack O'Neill, SG1 _______________________________________________ Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon