[Xymon] client-local.cfg

Galen Johnson Galen.Johnson at sas.com
Tue Jan 28 15:00:01 CET 2014


1) even with the include, you have to define each host entry.

2) No more concerns.  My concern was around using xymonfetch and that the server sent some info for the files.  Mike (and experimentation) has removed those concerns.

=G=

________________________________
From: Jeremy Laidman <jlaidman at rebel-it.com.au>
Sent: Monday, January 27, 2014 11:02 PM
To: Galen Johnson
Cc: Mike Burger; xymon at xymon.com
Subject: Re: [Xymon] client-local.cfg

On 28 January 2014 02:57, Galen Johnson <Galen.Johnson at sas.com<mailto:Galen.Johnson at sas.com>> wrote:
1) Well...poo!  That's unfortunate as we have several dozen of similarly named servers we need to run some specific file checks on and it's going to be a bit annoying to have to add each one individually.

You could make this easier by having an include file.  Then just include the file for each host:

[server1.example.com<http://server1.example.com>]
include standard-client.cfg
[server2.example.com<http://server2.example.com>]
include standard-client.cfg

Not as good as regexp or wildcard hostname matching, but slightly better.

Another option is to auto-generate your client-local.cfg file from a macro configuration file - dare I say in M4 format?  This is often how sendmail configurations are managed.  After each change, you type "make" and it rebuilds the configuration file.

2) I'm concerned about having to use a command to find certain files..."If you want to check multiple files using a wildcard, you must use a command to generate the filenames. Putting wildcards directly into the file: entry will not work."  Which would imply that if I want to check for a files using a wild card, I would need to have a line in client-local.cfg like:

file:`ls /path/to/<pattern>`

Correct.  This works, and is awesomely extensible.  What's your concern?

J

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20140128/4482d413/attachment.html>


More information about the Xymon mailing list