Forum Discussion

Aaron_Hackney_2's avatar
Aaron_Hackney_2
Icon for Nimbostratus rankNimbostratus
Apr 05, 2011

b monitor command fails

This should be something easy, but I'm just not seeing it.

 

 

Note the following:

 

 

[root@xxxx-lbal1:Active] config b monitor MON-HEAD-1.1.1.1-gsk.my-domain.com list

 

monitor MON-HEAD-1.1.1.1-gsk.my-domain.com {

 

defaults from http

 

interval 30

 

timeout 150

 

dest *:http

 

recv "HTTP/(1.0|1.1) (200 OK|301 Moved Permanently|302 Found|302 Object moved)"

 

send "HEAD / HTTP/1.1\r\nHost: gsk.my-domain.com\r\nConnection: Close\r\n\r\n"

 

}

 

[root@xxxx-lbal1:Active] config

 

 

If I cut and paste this back in (With a different monitor name), whether with the \ trick or all as one line, I always get the following:

 

 

012e0010:3: The requested value (HTTP/(1.0|1.1) (200) is invalid ( | none) for 'recv' in 'monitor'

 

 

As I mentioned, this is an existing monitor, and I assume it got in the config via the GUI. I have a lot of these to create and I'd like to be able to do it via the b commands. Any ideas or solutions?

 

 

TIA!

 

-A

 

 

 

  • Hi Aaron,

     

     

    Did you try with tmsh command :

     

     

    create ltm monitor http MON-HEAD-1.1.1.1-gsk.my-domain.com defaults-from http interval 30 timeout 50 recv "HTTP/(1.0|1.1) (200 OK|301 Moved Permanently|302 Found|302 Object moved)" send "HEAD / HTTP/1.1\r\nHost: gsk.my-domain.com\r\nConnection: Close\r\n\r\n"

     

     

     

    It seems to be ok on my side.

     

     

    BR.

     

    NQ.
  • Thanks all for the kind replys.

     

     

    I ended up doing the following at the suggestion of a co-worker:

     

    vi /tmp/monitor.conf

     

     

    Add my monitor to the text file.

     

     

    b merge /tmp/monitor.conf

     

    b save

     

     

    All 100+ monitors were created successfully. Thanks again!