Checks dates, sizes, and contents of files.
The File Event Monitor is designed to look at individual files, check their dates, sizes, and contents. It's perfect for scanning log files for specific text and getting alerts about modified files.
This event monitor provides the following options:
Enter a UNC path to the file that you want to monitor. Instead of entering an actual device name, use [devicename] as in the following example: \\[devicename]\c$\folder\file.txt When the event monitor runs, it will substitute [devicename] for each of the devices selected in the Network Devices section.
Use this option to alert if the event monitor cannot connect to the network device.
Use this option to alert if the event monitor was able to connect to the network device, but the file was missing or present. You might use the option to alert when a file is missing if you have a critical configuration file that applications or services depend on. The option to alert if the file is present can be used for cases where applications or services create an error file when an unexpected condition is detected.
Use this option to alert based on changes in the file's size.
Use this option to alert based on the file's last modified date.
With this option, you can get alerts if the file's size exceeds the thresholds that you specify.
This option can be used to alert if the file's size is smaller than the specific thresholds that you choose.
Enable this option to access further checks that will look at the content of the file.
Use this option to get alerts when specified text is found in the file.
If this option is enabled and a match is found, the line that the match was found on will be included in all alerts and notifications.
Use this option to also include some of the lines that precede the one where the match was found.
Use this option to also include some of the lines that follow the one where the match was found.
With this option enabled, the search text will be interpreted as a regular expression.
With this option enabled and a match is found, the match will be ignored if any of the specified comma-separated text is found on the same line.
This option is the opposite of the previous one. It will alert you if the specified text is not found in the file.
With this option enabled, the search text will be interpreted as a regular expression.
By default, the event monitor will scan the entire file for the text you specify. With this option enabled, it will only check new text that has been appended to the file since the last check.
With this option enabled, the event monitor will show the first lines of the file in all alerts and notifications.
With this option enabled, the event monitor will show the last lines of the file in all alerts and notifications.
With this option enabled, the event monitor will show a portion of the new content that was added to the file since the last run.
With this option enabled, the event monitor will use the time the event monitor runs to replace time tokens in the given file name.
Which would then use the current year, month and day to change the file name to: \\[devicename]\c$\folder\file-1977-05-06.ext
The account used for authentication must have permission to access the file and all its contents.
This event monitor generates the following data points:
Data Point | Description |
---|---|
File Size | The size of the file. |
To view the tutorial for this event monitor, click here.
Add a comment