Which characters in a Nagios plugin output need escaping other than pipe (|)?
How do I escape the pipe character and others?
linuxnagios
Which characters in a Nagios plugin output need escaping other than pipe (|)?
How do I escape the pipe character and others?
Best Answer
The development guidelines do not specify a way to escape the
|
The syntax of the first line is fix and not very flexible
and then in section 2.6 (Performance Data)
I would then assume that if you have a
|
in theFirst line of output
part it will just interpreted as the beginning of the performance data.Since the first line of output is not interpreted (up to the
|
) I would also assume that no characters have to be specially handled.