Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
18.0.1
-
Security Level: Default (Default Security Scheme)
-
Doc Sprint - Aug 4 - Sept 1
-
DB
Description
Hello, I was using the Admin Guide reference of HostResourceSwRunMonitor
The guide says that the service-name parameter is "The name of the process to be monitored. This parameter’s value is case-sensitive and is evaluated as an exact match."
However, the code at https://github.com/vishwaabhinav/OpenNMS/blob/master/opennms-services/src/main/java/org/opennms/netmgt/poller/monitors/HostResourceSwRunMonitor.java shows this value is interpreted as a regular expression.
private boolean match(String expectedText, String currentText) {
268 if (expectedText.startsWith("~"))
271 return currentText.equalsIgnoreCase(expectedText);
272 }
matches expects a regex
Thanks,
Tim
Attachments
Issue Links
- mentioned in
-
Page Loading...