[Xymon] checking for symlinks
oliver
ohemming at gmail.com
Thu Jul 2 15:00:44 CEST 2015
On Wed, Jul 1, 2015 at 9:54 PM, Jeremy Laidman <jlaidman at rebel-it.com.au> 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.
More information about the Xymon
mailing list