Forum Discussion
Native method to manually change the state of a monitor
- May 14, 2014
http://support.f5.com/kb/en-us/solutions/public/7000/400/sol7444.html?sr=37369745
You can add logging statements to your external monitor to view the variable output. /var/log/ltm is a good target.
Once I know the variables, I play with the script from the shell until it behaves like I expect.
Make sure you have handling to gracefully exit the process included in the script. These monitors fire off at the interval you specify, usually seconds, and they can stack up quite quickly and cause memory contention issues.
You can see the state of a pool member through TMSH on the CLI or through the GUI.
CLI: tmsh show ltm pool [pool name] members { [node]:[port] } | grep Availability
GUI: Local Traffic > Pools > Members
Setting the status is a matter of disabling through CLI or GUI
CLI: modify ltm pool [pool name] members modify { [node]:[port] { state user-down } }
In the GUI, simply click the checkbox next to the pool member, click disable
- eblair84_141985May 14, 2014NimbostratusSo, I'm working on a project to create custom monitors for our various back-end servers. The first monitor is to send a query off to a wsdl which requires a certificate to authenticate. It returns an xml string as a response. I want to parse the xml string for a given value and show the accompanying resource as up or down accordingly. I can do all of this from a bash script easily enough. The fun part comes when I try to integrate the mechanism into becoming a heartbeat monitor for the resource. I tried configuring an external monitor for it from the bash script but it seems to always mark the resource down. I'm also unsure how the system internally treats the variables setting within the external monitor. Thanks again, Chris
Recent Discussions
Related Content
* 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