<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[White space only in custom send/expect load-balance monitor?]]></title><description><![CDATA[<p dir="auto">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.</p>
<p dir="auto">I go to services-&gt;load balancer-&gt;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.</p>
<p dir="auto">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?</p>
<p dir="auto">It appears that if I put "foo" in the send box (without the quotes) these bytes are sent to the service:</p>
<p dir="auto">foo\n</p>
<p dir="auto">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?</p>
<p dir="auto">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?</p>
<p dir="auto">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.</p>
]]></description><link>https://forum.netgate.com/topic/107072/white-space-only-in-custom-send-expect-load-balance-monitor</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Nov 2026 18:56:13 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/107072.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 25 Oct 2016 22:59:33 GMT</pubDate><ttl>60</ttl></channel></rss>