Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Load balancer (relayd) Send/Expect monitor does not send \0x0a (new line)

    Scheduled Pinned Locked Moved General pfSense Questions
    1 Posts 1 Posters 613 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pavelk
      last edited by

      Hi there,

      I am trying to use "Send/Expect" monitor for a load balancer pool.
      The monitor sends "STATUS" and expects "+OK" from the server.
      It does work reliably in telnet session however the check fails when it is done from pfSense.

      I went to investigate and discovered that relayd does not send "\n" (\0x0a, new line) following the text.
      The server waits for the end of input, never gets it and closes connection with "idle timeout" message.
      As result monitor check fails, pool members marked as being down.

      I tried various ways of specifying "\n" in the "Send string" field of "Services: Load Balancer: Monitor: Edit" or via viconfig but to no avail.
      Reading relayd manual page did not help either.

      What is the correct way of specifying Send string so that it is sent with "\n" at the end?

      I use pfSense 2.2.6-RELEASE 64 bit

      Below is the snippet of XML configuration related to the monitor

      
                      <monitor_type><name>SCANNER</name>
                              <type>send</type>
      
                              <options><send>STATUS</send>
                                      <expect>+OK</expect></options></monitor_type> 
      
      

      Thank you for your help!

      Kind regards

      Pavel

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.