Xymon Mailing List Archive search

files check for symlink

list Henrik Størner
Wed, 23 May 2007 14:33:00 +0200
Message-Id: <user-a05f095cc0fa@xymon.invalid>

On Wed, May 23, 2007 at 10:21:36AM +0100, Mike Rowell wrote:
Is it possible to use the FILES check to check is a file exists and is a
symlink, in our architecture we use symlinks for a live/fallow setup on
some systems switching between the directories during certain tasks,
what I need to check is that a file inside the current live directory
exists and is a symlink.
The obvious answer would be a FILE check with "type=symlink", but alas
that hasn't been implemented.

A completely untested patch would be the following. Let me know if it
works.


Regards,
Henrik
Attachments (1)