[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Terminal Batch doesn't work always
From: |
Lutz Mader |
Subject: |
Terminal Batch doesn't work always |
Date: |
Fri, 23 Mar 2018 14:19:24 +0100 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 |
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:address@hidden:2812/_summary?format=xml'
or
curl 'http://admin:address@hidden: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.
- Terminal Batch doesn't work always,
Lutz Mader <=