This monitor scans the specified files for a string pattern and can be used to scan log files for a known error string. It is intended for scanning text files such as logs, for example, and not binary files. For best performance, select as few files to scan as possible. Using regular expressions to specify filename and scan pattern can affect the monitor’s performance. It is imperative to create detailed regular expressions, specifically for specifying the scan pattern, in order to achieve the best results.
Note: This feature is available with WhatsUp Gold Premium, ProView, TotalView, and TotalView Plus Editions only. To update your license, visit the WhatsUp Customer Portal.
To add a new File Content active monitor:
Note: Wildcards expressions can be used to filter your file search results. For example, to list all text files with .txt extension, you would use: *.txt
Or, to find all text files named file_1.txt
, file_2.txt
, you would use: file?.txt
For these examples, the *
wildcard is used for matching multiple characters and the ?
wildcard is used for matching a single character.
Important: Only single line expressions are supported.
Note: If the Scan only the content added to the file since the last poll option is selected, WhatsUp Gold tracks the offset within the file reached during scanning, then picks up from that point during the next scan. This is not necessarily the end of the file as a timeout could result in not reaching the end of the file. If a file scanned is deleted, then re-created with new content, then one of two things can happen: If the recreated file is smaller than the last scanned offset for that file, WhatsUp Gold start scanning from the beginning of the file. Or, if the recreated file is the same size or larger than the last scanned offset, then WhatsUp Gold picks up the scanning from the last scanned offset.
Important: Ipswitch recommends creating any associated actions to the file content monitor itself as opposed to a target device to which the monitor is applied. Applying actions to a file content monitored device when this scan method is selected can cause the monitor to report a failure followed by subsequent success each time the device is polled after a change is made to the scanned file(s).
To edit an existing File Content active monitor: