Xymon Mailing List Archive search

checking for symlinks

list Oliver
Thu, 2 Jul 2015 09:00:44 -0400
Message-Id: <user-a5e677dc0975@xymon.invalid>

On Wed, Jul 1, 2015 at 9:54 PM, Jeremy Laidman <user-71895fb2e44c@xymon.invalid> wrote:
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:

analysis.cfg:

FILE /etc/.sudoers.local red

client-local.cfg:

file:`find /etc/.sudoers.local -type l`

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.
Thanks!  Test is successful.