That was indeed it. I was expecting the same method (the backticks) would work in both, never thought about a regex.
Thanks Thomas!
Scot Kreienkamp |Senior Systems Engineer | La-Z-Boy Corporate One La-Z-Boy Drive| Monroe, Michigan 48162 | Office: 734-384-6403 | | Mobile: 7349151444 | Email: Scot.Kreienkamp at la-z-boy.com From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Thomas Eckert Sent: Thursday, November 8, 2018 1:05 AM To: xymon at xymon.com Subject: Re: [Xymon] File monitoring
Hi Scot,
the command-substitution-style filename in analysis.cfg might be it. Try to convert that to a regex. As your client-local.cfg only sends data for your "good" files anyway this should produce the desired state.
All the best Thomas
On Nov 8, 2018 02:39, Scot Kreienkamp <Scot.Kreienkamp at la-z-boy.com<mailto:Scot.Kreienkamp at la-z-boy.com>> wrote:
Hi everyone,
I’m trying to monitor for the existence of some files. I have the entries in client-local.config, and when the files exist they are being reported back properly. I can see the data about each file when I click on it in the files area for the server. The problem comes when the files don’t exist. The files entry for the server remains green, but when I click on the file that I’m monitoring it says ERROR: No such file or directory. So Xymon client is sending back that it doesn’t exist, but yet Xymon is still green.
Here’s the client-local.cfg for that server:
[retvpgpdbak.na.lzb.hq]
file:echo /automount/PITR/retvpgpdbak.na.lzb.hq/rms-prod-$(date +%F).pgc
file:echo /automount/PITR/retvpgpdbak.na.lzb.hq/rms-prod-$(date +%F).sql.gz
file:echo /automount/PITR/retvpgpdbak.na.lzb.hq/basebackup-$(date +%F).tgz
file:echo /automount/PITR/retvpgpdbak.na.lzb.hq/quartz-$(date +%F).pgc
file:echo /automount/PITR/retvpgpdbak.na.lzb.hq/quartz-$(date +%F).sql.gz
And the analysis.cfg
HOST=retvpgpdbak.na.lzb.hq
FILE `echo /automount/PITR/retvpgpdbak.na.lzb.hq/rms-prod-$(date +%F).pgc` red TYPE=file SIZE>0 MTIME<108000