Forum Discussion
Henrik_Gyllkran
May 09, 2014Nimbostratus
Certainly, the external monitor does whatever you tell it to do. If I had more time I could give you an example but the logic would be something like this:
if the member responds with correct string - echo UP and check if member is disabled, if so issue the tmsh command to enable it.
else if the member responds with the disable string - check if the member is enabled, if so issue the tmsh command to disable the member.
If you're using this type of logic for multiple pools I would include the pool name as an additional parameter in the monitor configuration so you would need one monitor per pool but they can use the same script.