Page 2 of 2

Re: Error: Request contained illegal metachars!

Posted: Mon May 29, 2017 3:56 am
by optionstechnology
I tried this- same issue

Re: Error: Request contained illegal metachars!

Posted: Tue May 30, 2017 12:58 pm
by avandemore
If you turn on debug in the NRPE listener you can see exactly what arguements where passed and how the check is being executed. What does it say when compared with the check_nrpe invocation?

Re: Error: Request contained illegal metachars!

Posted: Wed Jun 21, 2017 1:29 pm
by tmcdonald
Just checking in since we have not heard from you in a while. Did @avandemore's post clear things up or has the issue otherwise been resolved?

Re: Error: Request contained illegal metachars!

Posted: Wed Jul 19, 2017 11:04 am
by optionstechnology
No the issue was not solved- the debug did not show any information

Re: Error: Request contained illegal metachars!

Posted: Wed Jul 19, 2017 1:18 pm
by tgriep
I found that the NRPE agent cannot accept the following characters in the arguments.

Code: Select all

|`&><'\\[]{};\r\n
The only workaround is to hard code the settings in the NRPE Agent's config file so then you do not need to use them in the check_nrpe arguments.

Re: Error: Request contained illegal metachars!

Posted: Mon Aug 21, 2017 8:40 am
by optionstechnology
Hmmmm, its hard coding that we are trying to avoid in the first place!

I found a way around it where the command is half hard coded and half args

This seems to do the job, just not as cleanly as I would have liked

Re: Error: Request contained illegal metachars!

Posted: Mon Aug 21, 2017 10:51 am
by bolson
Closing topic as resolved.

Thank you for using the Nagios Support Forum.