White space only in custom send/expect load-balance monitor?
-
I have a custom TCP-based service that I'm trying to do simple load balancing on. I see that I can define my own monitors and send text and match recieved text.
I go to services->load balancer->monitors and click + and chose a type of "Send/Expect" and then I face a problem… I need to just send a newline e.g. \n and watch for some text back. It isn't clear how to send just a newline.
I'm hoping not to have to read the php source code of the page to figure this out - is there a cannonical way to escape non-printing characters?
It appears that if I put "foo" in the send box (without the quotes) these bytes are sent to the service:
foo\n
where \n is the newline character. My question is, am I understanding this right? Should I just leave the send box empty to get just a newline? It APPEARS to work, but I hate relying on an interface accident. Is this the intended behavior?
edit: Also, I can see the monitor hit my service, send a newline, and the service returns the expected response, but the host is always shown as 'down' - like the expected value isn't being parsed correctly. Can you put regexes in the expect field? What SHOULD I put there?
A simple example mimicking the built-in HTTP monitor would be very instructive and helpful. I just dont find much documentation on this at all in the guide, or elsewhere online.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy