[Xymon] File monitoring

Scot Kreienkamp Scot.Kreienkamp at la-z-boy.com
Thu Nov 8 18:57:59 CET 2018


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





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  | • 734-384-6403 | | • 7349151444 | •  Scot.Kreienkamp at la-z-boy.com<mailto:%7BE-mail%7D>
www<http://www.la-z-boy.com/>.la-z-boy.com<http://www.la-z-boy.com/> | facebook.<https://www.facebook.com/lazboy>com<https://www.facebook.com/lazboy>/<https://www.facebook.com/lazboy>lazboy<http://facebook.com/lazboy> | twitter.com/lazboy<https://twitter.com/lazboy> | youtube.com/<https://www.youtube.com/user/lazboy>lazboy<https://www.youtube.com/user/lazboy>

[cid:lzbVertical_hres.jpg]



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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20181108/bae09cd4/attachment.html>


More information about the Xymon mailing list