[Xymon] test of pultiple ports for same service on same host

J.C. Cleaver cleaver at terabithia.org
Fri Apr 4 17:40:36 CEST 2014


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 <john.thurston at alaska.gov> 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




More information about the Xymon mailing list