1 Sep
2014
1 Sep
'14
6:31 a.m.
On 30 August 2014 07:45, Tim McCloskey <tm at freedom.com> wrote:
Is there a way to send what xymon has parsed as it's config to std out? I looked through some of the files and options for them in the bin dir but did not see anything obvious. (short of running strace/truss)
$XYMON $XYMSRV hostinfo
This will give the parsed hosts.cfg file in pipe-separated value format.
$XYMON $XYMSRV 'config hosts.cfg'
This will give the semi-parsed hosts.cfg file in original format, but with "include" files expanded.
The latter works with other files too, such as "tasks.cfg".
Cheers Jeremy