Uptime Infrastructure Monitor uses two types of regular expression syntax:
Wildcard
Java Regular Expressions
Sample Regular Expressions Literal Characters
Wildcard
The wildcard regular expression syntax only supports an asterisk at the end of an expression. You can use wildcards with the following reports and monitors:
File System Capacity Growth report Disk I/O Bandwidth report
File System Service Time Summary report File System Capacity monitor
Platform Performance Gatherer
When used with the reports and monitors listed above, a wildcard includes or excludes disks and file systems. For example, if you want to configure the File System Capacity monitor to exclude the /lib and /lost+found file systems on a Solaris server, you can specify the regular expression /l* in one of the Exclude Pattern fields on the monitor template.
Note
Note that a wildcard will include all disks or file systems that match an expression. For example, if you specify /us* in the Exclude File Systems field when creating a File System Service Time Summary report then this expression will force the report to ignore the /users, /usr, and /usr
/local file systems.
Java Regular Expressions
Uptime Infrastructure Monitor also supports the full range of Java regular expressions, as well as inverse regular expressions. For example, you can specify /u.* to include or exclude all file systems with names that begin with u. The inverse regular expression [^OK], on the other hand, will return all results that are not in an OK state.
<span style="color: #333333"><strong>Note</strong></span>
<span style="color: #333333">The matching performed by Java regular expressions in Uptime Infrastructure Monitor is case sensitive.</span>
The following monitors support Java regular expressions: Unable to render embedded object: File (worddava0e5af1952d8679b64a9c868b8993b6d.png) not found. Windows Event Log Scanner
Unable to render embedded object: File (worddava0e5af1952d8679b64a9c868b8993b6d.png) not found. DNS Unable to render embedded object: File (worddava0e5af1952d8679b64a9c868b8993b6d.png) not found. FTP
Unable to render embedded object: File (worddava7313c26dd1122ba05ccd8312dbbcb50.png) not found. HTTP Unable to render embedded object: File (worddava0e5af1952d8679b64a9c868b8993b6d.png) not found. IMAP
Unable to render embedded object: File (worddava0e5af1952d8679b64a9c868b8993b6d.png) not found. Custom Unable to render embedded object: File (worddava0e5af1952d8679b64a9c868b8993b6d.png) not found. NIS/YP Unable to render embedded object: File (worddava0e5af1952d8679b64a9c868b8993b6d.png) not found. NNTP
Unable to render embedded object: File (worddava7313c26dd1122ba05ccd8312dbbcb50.png) not found. POP
Unable to render embedded object: File (worddava0e5af1952d8679b64a9c868b8993b6d.png) not found. SMTP Unable to render embedded object: File (worddava0e5af1952d8679b64a9c868b8993b6d.png) not found. TCP
Unable to render embedded object: File (worddava0e5af1952d8679b64a9c868b8993b6d.png) not found. SNMP
Sample Regular Expressions
The following examples of Java regular expressions can be used with the Windows Event Log Scanner and POP monitors.
The Windows Event Log Scanner searches a specified number of lines in a Windows log file for a specified text string. For example, you want to search the System log to find disks that are full. Because certain Windows systems have more than one disk drive, you can use this regular expression to ignore specific drive letters:
Disk .: is full
The POP (Email Retrieval) monitor checks the status of POP2 and POP3 servers. You can enter a regular expression in the Expected Server Response field of the monitor template to determine if a connection is made to the POP service. For example, entering the following regular expression will direct the POP monitor to look for all server responses that contain OK POP3 and server ready messages:
[OK POP3 .* server ready]
Literal Characters
The following characters have special meaning in a regular expression and must be escaped using a backslash (to indicate that the characters should be interpreted literally):
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="0321cbd4-af23-47aa-9923-5bcd70296196"><ac:plain-text-body><![CDATA[ |
|
[ |
]]></ac:plain-text-body></ac:structured-macro> |
] |
( |
||
) |
{ |
||
} |
^ |
||
. |
? |
||
* |
+ |
||
$ |
---|
For example, to find the the string (some_text), use the regular expression (some_text).