EyesOfNetworkCommunity / eonweb

EyesOfNetwork web interface
8 stars 12 forks source link

";" and everything after this not interpreted in eonweb for a check command parameter #56

Closed ChamMach closed 4 years ago

ChamMach commented 4 years ago

Hi,

I use a check http to check this URL :

example.com/api/toto/123?plop=geogeo|1.9065356376011096,48.67427024885659;2.750422966702672,49.048302993176705

As you can see, there is a ;

image

But when I update the parameter and reload Nagios I have this : image

And this is missing : ;2.750422966702672,49.048302993176705

On CLI it's working like a charm :

image

Can you help me ?

Thank's

ChamMach commented 4 years ago

Hi, this issue is solved.

By encoding the character ; in ascii (%3b) it works since I use an HTTP check.

However, for NRPE for example it would be necessary to validate the best way to escape a character of this type : \, \\, $, other ? Some tips for those who will encounter this slight problem 😉