Xymon Mailing List Archive search

Syntax checking function

2 messages in this thread

list John Thurston · Thu, 27 Aug 2015 11:26:08 -0800 ·
I've been looking in the man pages and can't find what I'm looking for. I hope I'm just looking with my eyes closed.

Some applications (ISC BIND is one that comes to mind) provide a dry-run or syntax-checking function for their config and data files. For BIND, I can run named-checkconf to test the syntax of the application configuration files. I also have named-checkzone which will confirm a zone file passes muster.

Is there such a function available for the Xymon tasks or hosts?
-- 
    Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Enterprise Technology Services
Department of Administration
State of Alaska
list Japheth Cleaver · Thu, 27 Aug 2015 13:31:57 -0700 ·
quoted from John Thurston
On Thu, August 27, 2015 12:26 pm, John Thurston wrote:
I've been looking in the man pages and can't find what I'm looking for.
I hope I'm just looking with my eyes closed.

Some applications (ISC BIND is one that comes to mind) provide a dry-run
or syntax-checking function for their config and data files. For BIND, I
can run named-checkconf to test the syntax of the application
configuration files. I also have named-checkzone which will confirm a
zone file passes muster.

Is there such a function available for the Xymon tasks or hosts?

For tasks.cfg (or clientlaunch.cfg), run xymonlaunch with the --dump
command to get what is effectively a config check.

For xymond_client or xymond_alert, use --dump-config -- errors will be
sent in STDERR, IIRC.

Since hosts.cfg doesn't have a single unified syntax (for tests and
whatnot), there's a limit to the direct syntax checks one can do while
loading it. Truly egregious issues might be seen from xymonnet, xymongen,
or xymond in --debug mode, however.


HTH,

-jc