You create a script using keywords. In general, Script Syntax is Command=String
. The command is either Send
, Expect
, SimpleExpect
, or Flow Control.
Note: A script can have as many send and receive lines as needed. However, the more you have, the slower the service check.
Note: To comment out a line, use the # symbol as the first character of the line.
Examples
If you have a TCP service to check, you need to do the following: