Hello Martin,
thanks or your suggestion to strip the ANSI escape codes.
I'm not aware that the ANSI codes set on the server side all the time an
stripped by the monit CLI in the batch mode. Nice to know someone try to
make the color handling more easy.
With regards,
I'm happy,
Lutz
p.s.
Someone
Hello Lutz,
the color (ANSI escape sequence) is set on server-side and stripped by monit
CLI if in batch mode. If you use curl to fetch the status in txt format
directly, you need to strip the escape sequence yourselves, for example:
curl http://127.0.0.1:2812/_status
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:monit@macmini.local:2812/_summary?format=xml'
or
curl