Plugin returns a pipe in status
Posted: Tue Sep 13, 2016 8:52 am
I have a custom plugin that run s a sql command and then returns the data. Unfortunately, some of the values of the db columns contain pipes. So when it hits the first one it start adding from that point into the perf data field. Is there a way to escape them so nagios doesn't start processing as perf data? I tried wrapping in ' and " with no luck. Short term fix was to regex and replace the | with -, but I'd much rather it show the true values.