<div class="gmail_quote">On Sat, Jun 2, 2012 at 3:57 AM, Michael Beatty <span dir="ltr"><<a href="mailto:Michael.Beatty@sherwin.com" target="_blank">Michael.Beatty@sherwin.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

My client-local.cfg needed a command<br>
dir:`find /var/mqm/log/*/active`<br></blockquote><div><br></div><div>Yes, this collects the data on the client and sends it to the server with all the rest of the client data.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

and my analysis.cfg needed a regular expression<br>
DIR %/var/mqm/log/*/active$ yellow SIZE<25000<br></blockquote><div><br></div><div>This tells the server what to look for in the client data. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


So, my checks are now checking.<br>
<br>
However, ALL of the checks for all of the directories listed in the<br>
client-local.cfg are being listed for all of the hosts regardless of<br>
what tags I have in the analysis.cfg.  My assumption here is that the<br>
web page will display ALL the data that is sent from client-local.cfg,<br>
but will only alert on what is configured in analysis.cfg?  Is this correct?<br></blockquote><div><br></div><div>Correct.  It will display all client data.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

If so, it would appear that I need to setup wildcards for host names in<br>
client-local.cfg... is this supported?<br></blockquote><div><br></div><div>Or, you can be a bit trickier in your client-local.cfg file.  For example:</div><div><br></div><div>dir:`find <span style>/backup/local/mq -type d 2>/dev/null; </span>[ "$(uname -n | grep _02)" = "" ] && find /var/mqm/log/*/active -type d 2>/dev/null`</div>

<div><br class="Apple-interchange-newline"></div><div>This is untested, but should demonstrate the basic idea.  Play with it until the string between the backticks runs correctly on every host you want to include, and shows only the correct files for each host.</div>

<div><br></div><div>Cheers</div><div>Jeremy</div><div><br></div></div>