Forum Discussion
Alok_3817
Nimbostratus
Feb 27, 2009Modifying 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
- Alok_3817
Nimbostratus
Also needed to add one more point ... i am using perl - 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
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
