Forum Discussion

Alok_3817's avatar
Alok_3817
Icon for Nimbostratus rankNimbostratus
Feb 27, 2009

Modifying monitors

Is there a way i can edit the monitors using iControl, I mean i need to "edit" the Send/Recieve string of a monitor, is there a way.

 

 

Also is there a way i can query which all pool use that monitors

 

 

 

Thanks in Advance

3 Replies

  • Sure you can. Check out the LocalLB.Monitor interface, you'll want to use the set_template_string_property() method. I don't have any code right now but I could likely whip some up. I'll see what I can get going for you.

     

     

    -Joe
  • Ok, got a little script whipped up for you. I put it over in the iControl Codeshare under PerlSetMonitorProperty

     

     

    http://devcentral.f5.com/wiki/default.aspx/iControl/PerlSetMonitorProperty.html

     

    Click here

     

     

     

    The usage is as follows

     

     

    $ .\PerlSetMonitorProperty.pl bigip 443 user pass

     

    HTTP Monitor Templates

     

    ----------------------

     

    my_http

     

    http

     

    $ .\PerlSetMonitorProperty.pl bigip 443 user pass my_http

     

    STYPE_SEND = GET /

     

    STYPE_RECEIVE = hi there

     

    STYPE_USERNAME =

     

    STYPE_PASSWORD =

     

    $ .\PerlSetMonitorProperty.pl bigip 443 user pass my_http STYPE_RECEIVE "Success"

     

    STYPE_SEND = GET /

     

    STYPE_RECEIVE = Success

     

    STYPE_USERNAME =

     

    STYPE_PASSWORD =

     

     

     

    Hope this gets you going in the right direction.

     

     

    -Joe