/[monit]/monit/monit.pod
ViewVC logotype

Diff of /monit/monit.pod

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.116 by hauk, Tue Sep 30 00:05:21 2003 UTC revision 1.117 by hauk, Tue Sep 30 01:12:46 2003 UTC
# Line 1401  specified, the default web server page w Line 1401  specified, the default web server page w
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

Legend:
Removed from v.1.116  
changed lines
  Added in v.1.117

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26