Process monitoring: explicit exclude/negate option (regex for command)
In some scenarios, it is necessary to monitor all processes of a specific user or process group. However, certain individual processes should be explicitly excluded from monitoring.
Currently, this can only be achieved using complex regular expressions with negation, which is error-prone and not very intuitive – especially when dealing with large or dynamic process lists.
Use-Case:
Monitor all running processes of the user “Oracle” but exclude all “java” processes, as these are already monitored by another PS check.
Proposal:
Extend the process discovery/monitoring rule set with an "Exclude regular expression matching command line" or "Negate" option to explicitly exclude unwanted processes.
Benefits:
- Significantly improved readability and maintainability of configurations
- Reduced error potential when working with regular expressions
- Increased flexibility for handling complexer use cases