The network monitoring tool for Windows!
TOC PREV NEXT INDEX

Monitors and Services


You can define an unlimited number of TCP/IP monitors and services. Once defined, these can be used on any device on your maps.

WhatsUp Gold is shipped with monitors/services already defined for you:

You can define additional TCP services. For example, you may want to monitor an IRC (Internet Relay Chat) service, a Lotus Notes server, a Microsoft SQL server, or a Microsoft Exchange service.

Defining a Custom TCP/IP Service

The monitoring of a service always involves a protocol handshake and can also include some additional information exchange between WhatsUp Gold and the service. You can search the response from the service for an exact match of a particular text string, or you can use rule expressions to analyze the response for a more generic text pattern.

For example, if you are looking for any error message, and you know that all possible error messages have the word "fail" in common, you can use a rule expression to look for just the word "fail." Or, you can create a rule expression that looks for any number of possible error messages. You can search for "this," "that," or "the other."

To define a custom TCP/IP service:

  1. From the Configure menu, Select Monitors & Services. You see the following dialog box.

You can do the following from this dialog box:

  1. Click the New button.
  2. From the Service Type list box, select TCP/IP Service.
  3. In the Service Name text box, enter a unique name for the service. This name will be displayed as a selectable option on the Services dialog box of the device properties.
  4. Click OK.

  1. Select a Network Type. Select the TCP or UDP network type.
    • Example: The network type for the IRC (Internet Relay Chat) service is TCP
    • Example: The network type for the RADIUS (Remote Authentication and Dial-In User Service) service is UDP.
  2. Select a Port Number. Enter the TCP or UDP port that you want to monitor.
    • Example: 6667 is the port number for the IRC (Internet Relay Chat) service.
    • Example: 1645 is the port number of the RADIUS (Remote Authentication and Dial-In User Service) service.
  3. Set the Timeout in Seconds.

Note: Since some devices may be at a different site or may take longer to respond, you can change the default amount of time that WhatsUp Gold waits for a response from the device. This can be from 1 to 500 seconds; or from 501 to 999 milliseconds. In other words, if you enter a value greater than 500, the value is interpreted as milliseconds.

  1. Your script can be any length and can use the following keywords.

Keywords.

Examples:

  1. Click OK to save the custom service.
  2. You can now turn on monitoring of the service on any device in any network map.

Note: Depending on the plug-ins you have installed, there are many other services/monitors you can define. Others include: DNS Monitoring, Telnet Monitoring, SNMP Monitoring, and NT Service. See the WhatsUp Gold help topic: "Plug-Ins" for more information.

Using Rule Expressions

The rule expression syntax is:

search_text quantifier

Note that search_text can be any combination of literal text and the text patterns shown below.

To create a rule expression:

  1. In the "Monitors & Services" dialog box shown on page 98, click the Browse button next to the Timeout:(seconds) box to view the Rule Expression Editor.
  2. Select the contains option to look for messages that contain the search string; select Doesn't contain to look for messages that do not contain the search string.
  3. Select Match Case to search for text that matches the case of the search string; to ignore case, make sure Match Case is cleared.
  4. Enter the expected text by doing one or more of the following:
  5. Select and copy the rule before clicking OK. Once back in your script, paste the rule as your Expect= string.

Rule Expressions Text and Quantifiers Tables

Text Pattern Expression
Match any character .
Match X or Y (x/y)
Match any word character (a-z, A-Z, 0-9) \w
Match any non-word character \W
Match any digit (0-9) \d
Match any non-digit \D
Match any white space (spaces and/or tabs and/or carriage returns) \s
Match any non-white space \S
Match any punctuation character (any character other than \w or \s) \p
Match any non-punctuation character \P
Match `.' \.
Match Binary value %nnn where nnn is a number between 0 and 255

Quantifier Expression
Match Zero or more *
Match One or more +
Match n times {n}
At least n, but not more than m (where n and m are numbers) {n,m}

Note: As shown above, the following characters have special meaning in a rule:

{}()|*+,.:% 

If you want to use one of these characters in a search string, precede it with a backslash. For example, to search for a plus sign, enter \+ in the search string.

Testing a Rule Expression

To test a rule expression, you use the Rule Expression Editor.

  1. If the Rule Expression Editor is not visible, from the Configure menu, select Monitors & Services. Then, select the rule you want to test. Click the Browse button next to the rule to view the Rule Expression Editor.
  2. In the lower text box of the Rule Expression Editor, copy a message that meets your intended search criteria, select Contains, and click Test Expression.

    If the rule expression does what you intended it to, The Comparison Text MATCHED the Pattern Specified is displayed.

    If the rule expression doesn't test true, The Comparison text DID NOT MATCH the pattern specified is displayed. Edit the rule expression and test again. For a long or complex rule expression, we recommend you test one part of it at a time.



Ipswitch, Inc.
http://www.ipswitch.com
TOC PREV NEXT INDEX
©Ipswitch 2001