Page 1 of 1

returning special characters using nrpe

Posted: Thu Apr 10, 2014 12:57 pm
by kcarpenter@soleo.com
How do I keep the special characters returned by the plugin ?
The (>) symbol is being stripped out ?

I see the alert with the (>)

[1397151893] SERVICE ALERT: SV724;check_emp;WARNING;HARD;2;WARNING (35) > 10

But the Notification does not have the (>), it seems to be stripped out.

[1397151893] SERVICE NOTIFICATION: NAG01;SV724;check_emp;WARNING;notify-service-Master;WARNING (35) 10

Thanks for any advice

Re: returning special characters using nrpe

Posted: Fri Apr 11, 2014 9:56 am
by sreinhardt
That is actually considered a nasty metacharacter. If you wish to allow it, you will need to download the tar or git clone the nrpe code, and remove that character from src/nrpe.c on line 56, then recompile. This may need to be done for both send_nrpe and the server, or just the server. I would give it a shot on just the server receiving the response and if that does not work, also rebuild the plugin.

Re: returning special characters using nrpe

Posted: Fri Apr 11, 2014 10:36 am
by kcarpenter@soleo.com
Thanks, I think I try harder to leave it out.

Re: returning special characters using nrpe

Posted: Fri Apr 11, 2014 11:55 am
by sreinhardt
You're welcome, I can see where that is a nice way to display it, but it can cause some issues with nrpe and hence the exclusion of it.