Log file
Monitor description
The monitor can read a text file and check for if new lines in the file contains one of the specified strings. The monitor generates an alarm if the specified search criteria are meet. The monitor uses the SMB protocol for access and authentication, meaning that both Windows host and Unix host running Samba can be tested with this monitor type.
- System type: All
- Category: Log
Log file monitor property page
Monitor specific properties
- Path - Absolute path of the the file, including the name of the host. For example,
\\myhost\C$\test.txt . - Search string - String to search for. Multiple strings can be searched. Separate each sub string with a comma. If multiple substrings are entered, the test performs a logical OR operation on the string.
- Alert if no change - Check option to make the test fail if the file has not changed since last test. If this option is checked, the monitor does not test the text for an occurrence of the search strings.
- Restart - Check this option to have the monitor restart from the top of the log file each test.
- Logon account - Credentials used for authentication. To override the object default account, select an account from the list.
Path field formatting flags
The following formatting variables can be included when specifying a path.
%time_hour - Hour in 24-hour format (00 -23)%time_hour2 - Hour in 12-hour format (01 -12)%time_minute - Minute as decimal number (00 -59)%time_second - Second as decimal number (00 – 59)%date_year - Year with century, as decimal number%date_year2 - Year without century, as decimal number%date_month - Month as decimal number (01 – 12)%date_dayofmonth - Day of month as decimal number (01 – 31)%date_dayofyear - Day of year as decimal number (001 – 366)%date_weekday - Weekday as decimal number (0 – 6; Sunday is 0)
|