1401 |
|
|
1402 |
As mentioned above, if the server protocol is not supported by |
As mentioned above, if the server protocol is not supported by |
1403 |
monit you can write your own protocol test using send/expect |
monit you can write your own protocol test using send/expect |
1404 |
strings. Here we show a generic protocol test using send/expect |
strings. Here we show a protocol test using send/expect for an |
1405 |
strings for an imaginary protocol: |
imaginary "Ali Baba and the Forty Thieves" protocol: |
1406 |
|
|
1407 |
if failed host server.whereever.bar port 2345 |
if failed host cave.arabia.baz port 4040 |
1408 |
send "LET ME IN\r\n" |
send "Open, Sesame!\r\n" |
1409 |
expect "WHO ARE YOU?\r\n" |
expect "Please enter the cave\r\n" |
1410 |
send "ME\r\n" |
send "Shut, Sesame!\r\n" |
1411 |
expect "OK, please enter!\r\n" |
expect "See you later [A-Za-z ]+\r\n" |
|
send "BYE\r\n" |
|
|
expect "OK, See you later!\r\n" |
|
1412 |
then restart |
then restart |
1413 |
|
|
1414 |
The I<TCPSSL> statement can optionally test the md5 sum of the |
The I<TCPSSL> statement can optionally test the md5 sum of the |