Forum Discussion
smp_86112
Cirrostratus
Aug 24, 2010Difference Between "External" and "Scripted" Monitor
I am being forced to develop a monitor that will check the status of some DB2 databases. Since there is nothing built in for this, I am looking closely for the first time at External monitors. What we...
George_Watkins_
Aug 25, 2010Historic F5 Account
Hi smp,
Hope everything has been going well since Chicago. In this case you'll want to use an external (EAV or External Application Verification) monitor. The scripted monitor works just like an expect (http://en.wikipedia.org/wiki/Expect) script. I'm not sure if all the features of expect are implemented, but the basic ones behave the same as far as I can tell. The scripted monitor will read send/expect instructions from a file on the BIG-IP then send those commands to the raw port (just like telnet or nc). So if you're trying to test SSH, the send/expect instructions would look something like this:
expect SSH-2.0-OpenSSH
send SSH-2.0-BIG-IP_Monitor
Not a very interesting conversation, but that's about as far as you can get until the key exchange, which is a little hairy to do in an expect script. A better example would be an intelligent FTP scripted monitor:
expect 220
send user anonymous
expect 331
send pass anonymous
expect 230
send quit
expect 221
Hope this helps,
-George
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