Re: Terminal Batch doesn't work always

2018-03-27 Thread Lutz Mader
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

Re: Terminal Batch doesn't work always

2018-03-23 Thread mart...@tildeslash.com
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

Terminal Batch doesn't work always

2018-03-23 Thread Lutz Mader
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