I'm trying to use the Option external-check and can't get it to work with an argument. It if I can't pass anything then that option becomes useless.
I've been trying for hours and nothing works. It only works with just the executable.
It gives me an error if I don't put quotes around the command but then it doesn't work at all. If I remove the IP then it works without the quotes.
here is an piece of code.
This works
.....
bind *:15432
option tcpka
option external-check
external-check path "/usr/bin:/bin"
external-check command /bin/pg_check.py
.....
This does NOT work.
.....
bind *:15432
option tcpka
option external-check
external-check path "/usr/bin:/bin"
external-check command /bin/pg_check.py 192.168.10.1
.....
This does NOT work
.....
bind *:15432
option tcpka
option external-check
external-check path "/usr/bin:/bin"
external-check command "/bin/pg_check.py 192.168.10.1"
.....
How do I pass an argument?
Best Answer
You don't explicitly configure arguments. HAProxy adds them automatically.