Alerting logic in the logmon probe is defined at the Watcher level. Follow these steps to identify the triggering strings:
Method 1: Using the Probe GUI (Admin Console or Infrastructure Manager)
- Open the logmon probe configuration.
- Navigate to the Profiles list and select the profile you wish to audit.
- Click on the Watcher Rules tab. This tab lists all active monitoring rules for that specific file or command.
- Select a specific Watcher from the list.
- In the Standard sub-tab, locate the Match Expression field. This field contains the specific string or regex that the probe is searching for.
Note: If the expression starts and ends with forward slashes (e.g., /[Ee]rror/), it is being treated as a Regular Expression. - (Optional) Check the Variables tab within the same Watcher. Sometimes strings are captured into variables and used later in Thresholds to trigger alerts based on numerical values found within the log.
Method 2: Examining the logmon.cfg File
If you have access to the file system of the robot, you can check the configuration file directly:
- Navigate to <Nimsoft_Installation_Path>/probes/system/logmon/.
- Open logmon.cfg in a text editor.
- Locate the section for your profile. Look for the active = yes flag.
- Under the <watchers> section, find the match key.
Example: match = *Critical Error*
Example (Regex): match = /.*(Failed|Timeout|Refused).*/
Important Considerations
Match on Every Run: Check the Advanced tab of the Watcher Rule. If "Match on Every Run" is enabled, the probe may trigger an alarm even if the string is not found (inverted logic).
Multiple Strings: A single watcher may be configured to trigger on multiple strings using the OR operator (|) in a regex. Example: /error|failure|denied/.