<div class="gmail_quote">On Tue, Jan 3, 2012 at 3:09 AM, Henrik Størner <span dir="ltr"><<a href="mailto:henrik@hswn.dk">henrik@hswn.dk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 03-01-2012 08:32, Moodley, Nelandran N wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I’m trying to monitor all file (permissions) of all files in a directory<br>
viz:/var/adm.<br>
<br>
I have the following entries in client-local.cfg<br>
<br>
[sunos]<br>
log:/var/adm/%.*:10240<br>
log:/var/adm/messages %ERROR|CRIT COLOR=red<br>
log:/var/adm/messages %WARNING|NOTICE COLOR=yellow IGNORE=lpr<br>
</blockquote>
<br></div>
First, You should only use "log" for log-files, i.e. files where you want to have the actual contents of the files sent to Xymon for checking. If you only want to monitor file permissions, then use a "file:" definition instead.<br>

<br>
Second, you cannot use wild-card filenames in the client-local.cfg file. As the man-page says:<br>
<br>
"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."<br>
<br>
So something like this should do the trick:<br>
<br>
file:`ls /var/adm/`<br></blockquote><div><br></div><div><br></div><div>I was wondering - is it (or could it become) possible to enter wildcard hostnames? Something like:</div><div><br></div><div>        [www.*.<a href="http://domain.com">domain.com</a>]</div>
<div>        file:/var/log/xxx.log</div><div><br></div><div>with the intention that the file: and log: entries be sent to any host matching the wildcard.</div><div><br></div><div>Thanks,</div><div><br></div><div>Ralph Mitchell</div>
</div>