ManageEngine® Applications Manager
File Directory Monitor
To create a file/directory monitor, follow the steps given below:
From the New Monitor tab, select File / Directory Monitor.
Provide a Display Name for the monitor.
Select whether it is a File or Directory monitor.
Specify whether the File / Directory to be monitored is in the Local or Remote Server.
If it is in the Local server, give the absolute path to the file / directory. If it is in a Remote server, select the Host Name (remote server) from the combo box or you can create a new host (by giving a new host name / IP address, username and password of the host) and the file / directory's absolute path. This new host thus added can be deleted by clicking on the Delete Host link. Host names already present and configured for server monitoring cannot be deleted in this manner. Also select the Mode Of Monitoring (WMI for Windows, Telnet/SSH for Linux), the port and Command Prompt if required.
If the path that you have selected is in a Remote server,you can either enter the credential details like user name, password, the command prompt or select credentials from a Credential Manager list. Enter the respective port.
For a File monitor, select the Do Content Check box if you wish to run a content check. Enter the string for which you want to check content matching in Check Content text box. Once any/ all of these contents match, the monitor status becomes up/down. You can perform content check for regular expressions by checking the Regular Expressions checkbox. (Regex Guide)
If the Monitor Status is selected as 'Down', the following conditions can be used to make the status Up. If the Monitor status is selected as 'Up', the following conditions can be used to make the status Down.
There are two conditions to configure monitor status:
If the above content(s) is/ are not matched: When this option is chosen, the monitor status will become up/ down if none of the contents in the above Check Content box match.
If any/ all of the contents to make monitor status up/ down are matched: Enter the string for which you want to check content matching in the text box given. If any/ all of these contents match, the monitor status will become up/ down. If none of the contents match, the monitor status will continue to remain in the existing state.
For a file monitor, if the Monitor status is marked 'Down if any/ all content(s) matched' and the content in the Check Content box is 'error, down, problem', then the monitor status will become down if any of these content match. In order to make the monitor status up, one of the following conditions has to be selected.
If, the option 'If the above content(s) is/ are not matched' is selected, then the monitor status will become up if the above content is not matched.
If, the option 'If any/ all content(s) matched' is selected, then the content has to be specified for which the monitor will become up. Example, 'success, up, fine'. Once any/ all of these content(s) are matched, the monitor will become up. (If this option is chosen and none of the contents match, the monitor will continue to remain down.)
Choose between the File Parsing Options to perform content check to Only appended content or the Whole File. Also, you can set the monitor status to UP/DOWN if ANY/ALL of the contents/Regular Expressions are matched. For a Directory monitor, select the Show SubDirectory Count checkbox to display the subdirectory count of a directory.
For both File and Directory monitor, you can select the Do file/directory age check check box if you wish to display the Monitor Status to UP/DOWN if the FILE/DIRECTORY is MODIFIED/NOT MODIFIED within a certain time.
Enter the Polling interval time period in minutes and the Timeout in seconds.
If you are adding a new monitor from an Admin Server, select a Managed Server.
Choose the Monitor Group from the combo box to which you want to associate the Monitor (optional). You can choose multiple groups to associate your monitor.
Click Add Monitor(s). This discovers the file / directory from the network and starts monitoring them.
The File Name / Directory Name should be specified with Absolute Path. (eg) C:\Desktop\test.txt (or) /home/test/test.txt.
Pattern matching for file names is supported in both windows and Linux servers. If we get the multiple files for the pattern matching, monitoring is carried out for the last modified file.
In case of Multiple Checks for Content, use commas to seperate multiple entries.(eg) NullPointerException,File System Monitor,testString
Support for configuring files which will be created on a daily basis. Say for example you can configure filename as localhost - $YYYY-$MM-$DD.log.
Ensure that the file you are monitoring has Read Permission.
Content Matching in File Monitoring is supported in both Windows and Linux Servers.
Displaying the subdirectory count of a directory is configurable.
Monitors - File / Directory Monitoring | Create Other New Monitors | Regular Expressions Guide
Microsoft Dynamics CRM
HTTP URL Monitors