[hobbit] files check for symlink
Henrik Stoerner
henrik at hswn.dk
Wed May 23 14:33:00 CEST 2007
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: symlinkcheck.patch
Type: text/x-diff
Size: 1734 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20070523/a19ed86e/attachment.patch>
More information about the Xymon
mailing list