Use case for file availability check

How file availability check works?

Working Principle:
When a file availability check is added, and if the specified file is created/deleted, the resource check will be moved to "Down" status and an alert will be sent to the user. If the specified file is already present in the folder, while adding the check, no alerts will be triggered. But if the file was added later, this will trigger an alert once the file is added. This is specific to file availability check for files added.

Use case:
A user creates a file "Error.txt" in the D: drive. Then, the user sets up a File Availability Resource Check profile (Notification Criterion: File added) in a Windows server. The check is set up in a way that an alert has to be triggered if a file "Error.txt" is created. But, the user does not get alerted.

Reason for the error:
The issue in this case is that the user had already created a file "Error.txt" in D:\. And then, the file availability resource check was added in the Site24x7 client for that particular file. So, even after the next data collection, the status remained as Up (green).

Solution:
The user has to make sure that the resource check profile is created before the addition of the file. In this case, 
  1. The user has to delete the existing file "error.txt"
  2. Add a file availability check with the Notification Criterion as File added
  3. Create a new file "error.txt" in D:\
  4. This will be sent to the instant notifier and make the resource check to Down status
    • Related Articles

    • Subdirectory Availability and File Availability Checks

      The subdirectory check is used to monitor all the sub directories within a monitored directory. The user has the option to monitor all the sub directories or a particular sub directory [subdirectory name supports regular expressions] under the ...
    • How do I check if URL redirection works correctly using the Website Monitor?

      A webpage can be made available from more than a single web address using URL redirection. Most redirects are automated and it becomes difficult to track if the redirection works in a specific way. This can be verified using website monitoring in ...
    • How to generate a HAR file?

      HTTP Archive (HAR) contains all web requests made by the browser tab, including the request and response headers, the body and the time it look to load. It helps to troubleshoot issues related to speed and caching. Please follow the steps below to ...
    • Perform content check on your servers

      Content check is used to search a file for some text/content. The file content check will alert the user in case a specified string occurs in the file being monitored.  Upto two strings can be configured under one check. The strings support regular ...
    • Troubleshooting steps when the directory check does not work for large number of files or folders

      Monitor your directories using the Directory file added/deleted resource check. Log in to Site24x7 and go to Admin > Server Monitor > Resource Check Profile > Create Resource Check Profile > Directory Checks > File Added/Deleted. In case the ...