Xymon Mailing List Archive search

File monitoring

list Thomas Eckert
Thu, 08 Nov 2018 07:04:31 +0100
Message-Id: <user-a3fafed0b724@xymon.invalid>

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 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



From the man-page, Xymon is supposed to send an alert if the file doesn’t exist… So the only thing I can think of is that my analysis.cfg entry is wrong somehow.

Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive | Monroe, Michigan 48162 | ( XXX-XXX-XXXX | | ) 7349151444 | * user-9678697f1438@xymon.invalid
www.la-z-boy.com | facebook.com/lazboy | twitter.com/lazboy | youtube.com/lazboy


This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.