Forum Discussion
Arden_109503
Sep 27, 2011Nimbostratus
Creating a Monitor
Hi, Loving pycontrol, got it to create vips, pools and nodes but having trouble creating a HTTP monitor. Does anyone have an example of a HTTP monitor? I'm trying to create a m...
Arden_109503
Sep 28, 2011Nimbostratus
Awesome, worked great!
I used:
send_string = m.typefactory.create('LocalLB.Monitor.StringValue')
send_string.type="STYPE_SEND"
send_string.value="GET /200.html"
recv_string = m.typefactory.create('LocalLB.Monitor.StringValue')
recv_string.type="STYPE_RECEIVE"
recv_string.value="OK"
Whew! Now create :)
m.create_template(templates=[tmplt],template_attributes=[tmplt_attrs])
m.set_template_string_property(['matt_test'],[send_string])
m.set_template_string_property(['matt_test'],[recv_string])
To set the Send and Recieve strings.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects