Xymon Mailing List Archive search

files check for symlink

2 messages in this thread

list Mike Rowell · Wed, 23 May 2007 10:21:36 +0100 ·
Hobbitites,

 
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.

 
Regards,

Mike Rowell


This email has been scanned for all viruses by the MessageLabs service. 
list Henrik Størner · Wed, 23 May 2007 14:33:00 +0200 ·
quoted from Mike Rowell
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)