Terminal Batch doesn't work always

Lutz Mader <[email protected]>
Newsgroups gmane.comp.monitoring.monit.general
Message-ID <[email protected]>
Hello Tildeslash,
I try to gather the Service status summary via a curl request from an
other/remote monit system to use the status in a local monit check
program script.

curl 'http://admin:[email protected]:2812/_summary?format=xml'
or
curl 'http://admin:[email protected]:2812/_summary?format=text'

Unfortunately, I got the output in the terminal output format only.

I try to disable tabular output and colours completely in the monitrc
used by monit.

set terminal batch

Nothing was happened, I got the terminal text format with tabular output
and colours. But the tabular and colours are removed from the local
monit command output (the monit daemon was restarted), the set terminal
batch mode seems to be used (handled like -B).

My question is this the normal behaviour?
How to get text only or xml output via curl for _summary?

With _status and format xml I got xml output, but many other
informations also. And with format text I got the coloured output as well.

Thanks for any help or suggestion,
Lutz

p.s.
I use Monit 5.25.1 and 5.22.0, 5.19.0.

-- 
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.