<div dir="ltr">It'd be good to have this feature working.<div><br></div><div>In the mean time, you could use "FILE" (in analysis.cfg) to check for the existence of a file, and use a backtick command (in client-local.cfg) to specify the filename only if it's a symlink.  Example:<div><br></div><div>analysis.cfg:</div><div><br></div><div><span style="font-size:12.8000001907349px">FILE /etc/.sudoers.local red</span><br></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">client-local.cfg:</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">file:`find /etc/.sudoers.local -type l`</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div>If the file is a symlink, it will exist.  If it's not a symlink, the Xymon client won't see it, and you'll get a RED as if it didn't exist.</div><div><br></div><div>Cheers</div><div>Jeremy</div><div><span style="font-size:12.8000001907349px"><br></span></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 2 July 2015 at 08:44, oliver <span dir="ltr"><<a href="mailto:ohemming@gmail.com" target="_blank">ohemming@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Applied patch to source, recompiled and installed but no change in<br>
behaviour I'm afraid<br>
<div class="HOEnZb"><div class="h5"><br>
On Wed, Jul 1, 2015 at 2:51 PM, J.C. Cleaver <<a href="mailto:cleaver@terabithia.org">cleaver@terabithia.org</a>> wrote:<br>
><br>
> On Wed, July 1, 2015 10:07 am, oliver wrote:<br>
>> I'm using Xymon 4.3.21 on a linux host with mix of linux and solaris<br>
>> clients<br>
>><br>
>> Is checking whether a file is symlink supported in analysis.cfg?  The<br>
>> man page doesn't mention it but client_config.c does look like it<br>
>> should work.<br>
>><br>
>> I have this in analysis.cfg<br>
>> FILE /etc/.sudoers.local red type=symlink<br>
>><br>
>> My test goes red with the following statement:<br>
>> File is a file - should be symlink<br>
>><br>
>> If I click on it, I see this:<br>
>> [file:/etc/.sudoers.local]<br>
>> type:100000 (file, symlink -> /bw/local/etc/.sudoers.local)<br>
>> mode:440 (-r--r-----)<br>
>> linkcount:1<br>
>> owner:0 (root)<br>
>> group:0 (root)<br>
>> size:102<br>
>> clock:1435770054 (2015/07/01-17:00:54)<br>
>> atime:1336161370 (2012/05/04-19:56:10)<br>
>> ctime:1377011564 (2013/08/20-15:12:44)<br>
>> mtime:1377011564 (2013/08/20-15:12:44)<br>
>><br>
>> To prove it's a symlink:<br>
>> # ls -l /etc/.sudoers.local<br>
>> lrwxrwxrwx   1 root     root          28 Aug  2  2011<br>
>> /etc/.sudoers.local -> /bw/local/etc/.sudoers.local<br>
>><br>
>> What am I doing wrong?<br>
><br>
><br>
> I believe this is a bug. Might never have really been fully implemented,<br>
> actually.<br>
><br>
> Can you try the following patch (untested) and see if it works for you?<br>
><br>
><br>
> Regards,<br>
><br>
> -jc<br>
</div></div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" rel="noreferrer" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</div></div></blockquote></div><br></div>