Closed knweiss closed 6 years ago
In fact, this line shouldn't appear at all in batch mode: it would also break other batch types (json, etc.). This is meant for human/normal output only. At least it's an easy fix :)
Actually it's a warn(), so it's sent to stderr. stdout is reserved, in batch mode, for the batch output only. If your monitoring setup merges stdout and stderr, adding 2>/dev/null might do the trick. If you want to keep stderr just in case, and it doesn't confuses your monitoring, I've also added no-color as an implied option to batch mode.
Assuming the issue is fixed. Please reopen if this is not the case!
The "IBPB" line is colored red. IMHO color output should be disabled in batch-nrpe-mode (at least our Nagios instance can't show them and displays the escape sequences instead).