diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 98a971351f..bc32ba98a0 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2008-10-13 Sancho Lerena + + * include/help/en/help_tcp_send.php: Added mising help file. + 2008-10-13 Jorge Gonzalez * languages/cs.po, languages/pt_BR.po, languages/es.po, diff --git a/pandora_console/include/help/en/help_tcp_send.php b/pandora_console/include/help/en/help_tcp_send.php new file mode 100644 index 0000000000..e91f53b926 --- /dev/null +++ b/pandora_console/include/help/en/help_tcp_send.php @@ -0,0 +1,68 @@ +

TCP Check

+

+This module just send character strings to destination IP / port, wait for response and optionally match it's response with a predefined response. If TCP SEND / TCP RCV. fields are emply just check for an open port in destination. +

+You can use ^M string to send a carriage return, and also can use a multi request / multi response conversation. Several request and responses are separated with | character. +

+ + +

Example #1. Checking WEB service

+

+Just imagine that you want to check that www.yahoo.com reply correctly to a HTTP request. Put this in TCP Send:

+GET / HTTP/1.0^M^M +

+And this on TCP receive: +

+200 OK +

+This should give OK if a correct HTTP request is possible. +

+ + +

Example #2. Checking SSH service

+

+If you make a telnet to port 22 of a standard service you will see that after connecting they present you a banner like +

+SSH-2.0xxxxxxxxxx +

+If you type something, like "none" and press enter, they reply you the following string and close socket: +

+Protocol mismatch +

+So to "code" this conversation in a Pandora FMS TCP module, you need to put in TCP Send: +

+|none^M +

+And put in TCP Receive: +

+SSH-2.0|Protocol mismatch +

+ +

Example #3. Checking a SMTP service

+

+This is sample SMTP conversation: +

+R: 220 mail.supersmtp.com Blah blah blah
+S: HELO myhostname.com
+R: 250 myhostname.com
+S: MAIL FROM: 
+R: 250 OK
+S: RCPT TO: 
+R: 250 OK
+S: DATA
+R: 354 Start mail input; end with .
+S: .......your mail here........
+S: .
+R: 250 OK
+S: QUIT
+R: 221 mail.supersmtp.com Service closing blah blah blah
+
+
+So if you want to check the first steps of conversation, the fields will be: +

+TCP SEND : HELO myhostname.com^M|MAIL FROM: ^M| RCPT TO: ^M +

+TCP SEND : 250|250|250 +

+If the first three steps of connections are "OK" then the SMTP seems to be ok, don't need to send a real mail (could be done, whatever!). This is a powerful TCP service checker that could be used to verify any TCP plain text service. +

\ No newline at end of file