Error: Request contained illegal metachars!

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
optionstechnology
Posts: 234
Joined: Thu Nov 17, 2016 11:26 am

Re: Error: Request contained illegal metachars!

Post by optionstechnology »

I tried this- same issue
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Error: Request contained illegal metachars!

Post 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?
Previous Nagios employee
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Error: Request contained illegal metachars!

Post 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?
Former Nagios employee
optionstechnology
Posts: 234
Joined: Thu Nov 17, 2016 11:26 am

Re: Error: Request contained illegal metachars!

Post by optionstechnology »

No the issue was not solved- the debug did not show any information
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Error: Request contained illegal metachars!

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
optionstechnology
Posts: 234
Joined: Thu Nov 17, 2016 11:26 am

Re: Error: Request contained illegal metachars!

Post 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
bolson

Re: Error: Request contained illegal metachars!

Post by bolson »

Closing topic as resolved.

Thank you for using the Nagios Support Forum.
Locked