Xymon Mailing List Archive search

test of pultiple ports for same service on same host

list Japheth Cleaver
Fri, 4 Apr 2014 08:40:36 -0700
Message-Id: <user-2ce59bffdcac@xymon.invalid>

On Fri, April 4, 2014 8:04 am, John Thurston wrote:
On 4/4/2014 6:15 AM, Jeremy Laidman wrote:
On 3 April 2014 03:11, John Thurston <user-ce4d79d99bab@xymon.invalid> wrote:
This reuses all/any of the ftp send/response strings in protocols.cfg
which is nicer than copy/paste the whole section. The problem with this
approach is updates to the Xymon application will repair protocols.cfg
by
keeping my modified definition _and_ reinserting the original.

You can use the "include" keyword for protocols.cfg.  So you could
append
"include protocols-local.cfg" at the end of protocols.cfg, and then put
your re-definition into that file.
A couple of months ago, I dug through the documentation seeking just
such an option. Your suggestion was enough to have me try it even
without finding it in the doc. I didn't confirm the 'include' keyword
worked because I really wanted the 'directory' function.

a'yep. It does.

I've appended:
    directory /opt/xymon/server/etc/protocols.d
to server/etc/protocols.cfg and it happily consumes the files I put in
that directory.
Shucks. I didn't know it would work with graphs.cfg, too. I'm off to try
the same thing there. Thank you, Jeremy!
--

The include and directory directives should work on anything opened using
the file stack routines, which is pretty much most files except the
cgioptions.cfg shell include.


HTH,
-jc