<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Arial Narrow";
        panose-1:2 11 6 6 2 2 2 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">That was indeed it.  I was expecting the same method (the backticks) would work in both, never thought about a regex. 
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Thanks Thomas!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p id="c1-id-6" style="FONT-FAMILY: Arial"><span id="c1-id-7" style="FONT-SIZE: 8pt; FONT-FAMILY: Calibri; LETTER-SPACING: normal"><strong id="c1-id-39"><span id="c1-id-41" style="FONT-SIZE: 9pt">Scot Kreienkamp |Senior Systems Engineer | La-Z-Boy Corporate</span></strong><br id="c1-id-8">
</span><span id="c1-id-9" style="FONT-SIZE: 8pt; FONT-FAMILY: Calibri; LETTER-SPACING: normal">One La-Z-Boy Drive| Monroe, Michigan 48162 | Office: 734-384-6403 | | Mobile: 7349151444 | Email: Scot.Kreienkamp@la-z-boy.com</span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Xymon [mailto:xymon-bounces@xymon.com]
<b>On Behalf Of </b>Thomas Eckert<br>
<b>Sent:</b> Thursday, November 8, 2018 1:05 AM<br>
<b>To:</b> xymon@xymon.com<br>
<b>Subject:</b> Re: [Xymon] File monitoring<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hi Scot,<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">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.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">All the best<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Thomas<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Nov 8, 2018 02:39, Scot Kreienkamp <<a href="mailto:Scot.Kreienkamp@la-z-boy.com">Scot.Kreienkamp@la-z-boy.com</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p>Hi everyone,<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>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.  <o:p></o:p></p>
<p> <o:p></o:p></p>
<p>Here’s the client-local.cfg for that server:<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>[retvpgpdbak.na.lzb.hq]<o:p></o:p></p>
<p>file:`echo /automount/PITR/retvpgpdbak.na.lzb.hq/rms-prod-$(date +%F).pgc`<o:p></o:p></p>
<p>file:`echo /automount/PITR/retvpgpdbak.na.lzb.hq/rms-prod-$(date +%F).sql.gz`<o:p></o:p></p>
<p>file:`echo /automount/PITR/retvpgpdbak.na.lzb.hq/basebackup-$(date +%F).tgz`<o:p></o:p></p>
<p>file:`echo /automount/PITR/retvpgpdbak.na.lzb.hq/quartz-$(date +%F).pgc`<o:p></o:p></p>
<p>file:`echo /automount/PITR/retvpgpdbak.na.lzb.hq/quartz-$(date +%F).sql.gz`<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>And the analysis.cfg<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>HOST=retvpgpdbak.na.lzb.hq<o:p></o:p></p>
<p>        FILE `echo /automount/PITR/retvpgpdbak.na.lzb.hq/rms-prod-$(date +%F).pgc` red  TYPE=file SIZE>0 MTIME<108000
<o:p></o:p></p>
<p> <o:p></o:p></p>
<p> <o:p></o:p></p>
<p>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. 
<o:p></o:p></p>
</div>
<p style="line-height:10.5pt"><strong><span style="font-size:9.0pt;font-family:"Arial Narrow",sans-serif">Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate</span></strong><span style="font-family:"Arial Narrow",sans-serif"><br>
</span><span style="font-size:8.0pt;font-family:"Calibri",sans-serif">One La-Z-Boy Drive | Monroe, Michigan 48162  |</span><span style="font-size:10.0pt;font-family:"Calibri",sans-serif"> </span><span style="font-size:10.0pt;font-family:Wingdings;color:black">(</span><span style="font-size:10.0pt;font-family:"Calibri",sans-serif"> 734-384-6403
 | </span><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif">| </span>
<span style="font-size:9.0pt;font-family:Wingdings;color:black">)</span><span style="font-size:8.0pt;font-family:"Calibri",sans-serif"> </span><span style="font-size:9.0pt;font-family:"Calibri",sans-serif">7349151444</span><span style="font-size:8.0pt;font-family:"Calibri",sans-serif"> </span><span style="font-size:8.0pt;font-family:"Arial Narrow",sans-serif">| </span><span style="font-size:10.0pt;font-family:Wingdings;color:black">*</span><span style="font-size:8.0pt;font-family:"Arial Narrow",sans-serif">  </span><span style="font-size:8.0pt;font-family:"Calibri",sans-serif"><a href="mailto:%7BE-mail%7D">Scot.Kreienkamp@la-z-boy.com</a><br>
</span><span style="font-size:8.0pt;font-family:"Arial Narrow",sans-serif"><a href="http://www.la-z-boy.com/">www</a></span><span style="font-size:8.0pt;font-family:"Arial Narrow",sans-serif"><a href="http://www.la-z-boy.com/">.la-z-boy.com</a> |
<a href="https://www.facebook.com/lazboy">facebook.</a></span><span style="font-size:8.0pt;font-family:"Arial Narrow",sans-serif"><a href="https://www.facebook.com/lazboy">com</a></span><span style="font-size:8.0pt;font-family:"Arial Narrow",sans-serif"><a href="https://www.facebook.com/lazboy">/</a></span><span style="font-size:8.0pt;font-family:"Calibri",sans-serif"><a href="http://facebook.com/lazboy">lazboy</a></span><span style="font-size:8.0pt;font-family:"Arial Narrow",sans-serif"> | </span><span style="font-size:8.0pt;font-family:"Calibri",sans-serif"><a href="https://twitter.com/lazboy">twitter.com/lazboy</a>
 | <a href="https://www.youtube.com/user/lazboy">youtube.com/</a><a href="https://www.youtube.com/user/lazboy">lazboy</a><br>
<br>
</span><span style="font-family:"Arial Narrow",sans-serif"><img border="0" width="32" height="32" id="_x0000_i1025" src="cid:lzbVertical_hres.jpg"> 
<o:p></o:p></span></p>
<p style="mso-line-height-alt:10.5pt"><span style="font-family:"Arial Narrow",sans-serif"> <o:p></o:p></span></p>
<p style="line-height:10.5pt"><span style="font-size:8.0pt;font-family:"Arial Narrow",sans-serif">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.</span><span style="font-family:"Arial Narrow",sans-serif"><o:p></o:p></span></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>