Forum Discussion

Greg_34262's avatar
Greg_34262
Icon for Nimbostratus rankNimbostratus
Jan 28, 2009

Multiple return strings

I need to set up an HTTP monitor that will get a custom return string based on the current state of the site, i.e. offline, maintenance, or up states all return different status messages.

 

 

How can I check for any of the 3 states and if none are returned take the server out of the VIP. Is this something I can do by modifying the built in HTTP monitor or will I have to write a custom monitoring script?

 

 

I'm sure this has been done many, many times and should be an easy solution, but my search turned up zilch.

 

 

Thanks in advance for any help.

1 Reply

  • The receive string of a standard monitor can be a regex, so you can use something like this to check for first_string, second_string or third_string:

     

     

    (?:first_string|second_string|third_string)

     

     

    Aaron