Yes. The passthrough option is rather new.
I think I already have that, I am having this configured
service health-check {
# this is the default configuration using the simple PING->PONG
# example health-check.
executable = script -p /bin/health-check.sh
inet_listener health-check {
port = 5001
}
}
bash-5.0# /bin/health-check.sh
HTTP/1.1 200 OK
Connection: keep-alive
OK
-----Original Message-----
Subject: Re: Health check curl example
Your health check script should implement HTTP protocol. Then you can
use passthrough mode and use cURL.
The provided script does not speak HTTP.
Aki
wrote:
I am not understanding how this health check[1] script should work.
From
the commandline it works fine when I type a PING I get a PONG. But
how
do I do a curl to this 5001 port?
Tried something like this:
curl: (56) Recv failure: Connection reset by peer
curl: (56) Recv failure: Connection reset by peer
[1]
---
Aki Tuomi