On Fri, Jun 01, 2012 at 11:28:00AM +0200, Esteban Torres Rodríguez wrote:
> 2012/6/1 Laurent DOLOSOR <[email protected]>:
> > Hello,
> >
> >> But when I set the Centreon interface command, everything that is
> >> behind the ";" delete it.
> >>
> >> It seems that the ";" is a character not recognized or invalid.
> >
> > Try with a \ before the ;, we had the same problem and it resolv it.
>
> nothing. Not working.
>
> This is the command:
>
> check_haproxy -u "http://ipserver:8888/\;csv" -U admin -P pass
>
> This is the output of the command.
>
> check_haproxy -u '"http://10.239.212.26:8888/\
That's bad, it is possible that they strip everything past this point to
avoid accidentely running commands on poorly written scripts :-/
I'm seeing a possibly workaround : use another character instead of ';'
in your requests, and have haproxy replace it with a ';' in the frontend,
with the backend processing the stats. For instance :
check_haproxy -u "http://ipserver:8888/=csv"
frontend stats_frt
reqrep ^([^\ :]*\ )(/=)(.*) \1/;\3
default_backend stats_bck
backend stats_bck
stats uri /
...
Willy