Monitoring the existence and modifications of a file [pro]
General information
This check monitors the existence and modification of a local file and also checks its content.
It is possible to check a file packed in an archive. ZIP and RAR archives are currently supported.
Example
Suppose we need to receive an e-mail notification whenever some file is modified.
We create a file check and specify the name of the file on the Settings page.
Then we select the “Fail if checksum changed” checkbox. On the Alerts page we create a Send Mail alert
with the “On failure” and “On every occurrence” activation parameters and fill out the rest of the fields.
We close the Options dialog box by clicking the OK button. Now an e-mail message will be
sent each time the file is modified.
Control items
Except standard properties for this check
you have to specify the next parameters:
- File path - the path to the file that should be checked.
- Check a file in the archive - select this checkbox if an archived file
should be checked in case there is an archive file specified in the «File path» field.
- Path in the archive - the path to the file in the archive that should be checked.
An archive file must be specified in the «File path» field.
- Password - the password is specified for password-protected archives.
- Fail if the file exists - the check is “Failed” if the file is found.
- Fail if the file does not exist - the check is “Failed” if the file is not found.
- Fail if checksum is changed (use MD5) - the check is “Failed” if the checksum of the file is changed.
- Fail if the last modified time of the file is changed - the check is “Failed” if the last modified time of the file is changed.
- Check the file content - select this checkbox if the content of the file should be checked.
- Contains any of the following strings - the check is “Failed” if the file contains any of the specified strings.
- Contains all of the following strings - the check is “Failed” if the file contains all of the specified strings.
- Does not contain any of the following strings - the check is “Failed” if the file does not contain any of the specified strings.
- Does not contain all of the following strings - the check is “Failed” if the file does not contain all of the specified strings.
See Also
About Professional Checks