<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style style="display: none;" id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body tabindex="0" aria-label="Message body" fpstyle="1" dir="ltr">
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper" style="font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt; color: #000000; margin: 0">
1) even with the include, you have to define each host entry.<br>
<br>
2) No more concerns.  My concern was around using xymonfetch and that the server sent some info for the files.  Mike (and experimentation) has removed those concerns.<br>
<br>
=G=<br>
<br>
<div style="color: rgb(40, 40, 40);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Jeremy Laidman <jlaidman@rebel-it.com.au><br>
<b>Sent:</b> Monday, January 27, 2014 11:02 PM<br>
<b>To:</b> Galen Johnson<br>
<b>Cc:</b> Mike Burger; xymon@xymon.com<br>
<b>Subject:</b> Re: [Xymon] client-local.cfg</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On 28 January 2014 02:57, Galen Johnson <span dir="ltr">
<<a href="mailto:Galen.Johnson@sas.com" target="_blank">Galen.Johnson@sas.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
1) Well...poo!  That's unfortunate as we have several dozen of similarly named servers we need to run some specific file checks on and it's going to be a bit annoying to have to add each one individually.<br>
</blockquote>
<div><br>
</div>
<div>You could make this easier by having an include file.  Then just include the file for each host:</div>
<div><br>
</div>
<div>[<a href="http://server1.example.com">server1.example.com</a>]</div>
<div>include standard-client.cfg</div>
<div>[<a href="http://server2.example.com">server2.example.com</a>]</div>
<div>include standard-client.cfg</div>
<div><br>
</div>
<div>Not as good as regexp or wildcard hostname matching, but slightly better.</div>
<div><br>
</div>
<div>Another option is to auto-generate your client-local.cfg file from a macro configuration file - dare I say in M4 format?  This is often how sendmail configurations are managed.  After each change, you type "make" and it rebuilds the configuration file.</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
2) I'm concerned about having to use a command to find certain files..."If you want to check multiple files using a wildcard, you must use a command to generate the filenames. Putting wildcards directly into the file: entry will not work."  Which would imply
 that if I want to check for a files using a wild card, I would need to have a line in client-local.cfg like:<br>
<br>
file:`ls /path/to/<pattern>`<br>
</blockquote>
<div><br>
</div>
<div>Correct.  This works, and is awesomely extensible.  What's your concern?</div>
<div><br>
</div>
<div>J</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>