[Xymon] checking for symlinks

J.C. Cleaver cleaver at terabithia.org
Wed Jul 1 20:51:55 CEST 2015


On Wed, July 1, 2015 10:07 am, oliver wrote:
> I'm using Xymon 4.3.21 on a linux host with mix of linux and solaris
> clients
>
> Is checking whether a file is symlink supported in analysis.cfg?  The
> man page doesn't mention it but client_config.c does look like it
> should work.
>
> I have this in analysis.cfg
> FILE /etc/.sudoers.local red type=symlink
>
> My test goes red with the following statement:
> File is a file - should be symlink
>
> If I click on it, I see this:
> [file:/etc/.sudoers.local]
> type:100000 (file, symlink -> /bw/local/etc/.sudoers.local)
> mode:440 (-r--r-----)
> linkcount:1
> owner:0 (root)
> group:0 (root)
> size:102
> clock:1435770054 (2015/07/01-17:00:54)
> atime:1336161370 (2012/05/04-19:56:10)
> ctime:1377011564 (2013/08/20-15:12:44)
> mtime:1377011564 (2013/08/20-15:12:44)
>
> To prove it's a symlink:
> # ls -l /etc/.sudoers.local
> lrwxrwxrwx   1 root     root          28 Aug  2  2011
> /etc/.sudoers.local -> /bw/local/etc/.sudoers.local
>
> What am I doing wrong?


I believe this is a bug. Might never have really been fully implemented,
actually.

Can you try the following patch (untested) and see if it works for you?


Regards,

-jc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: islink.patch
Type: application/octet-stream
Size: 530 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20150701/77084933/attachment.obj>


More information about the Xymon mailing list