It occurred to me just after writing this bug report, that some people may be using the current functionality of the regex search of the cmdline to find a particular instance of a process based on its args.
So a better enhancement idea may be to keep the current functionality of scanning the /proc/PID/cmdline with the regex expression while adding a second regex search of the Name: field in the /proc/PID/status file using the same expression. Then monitor the PID if either of the two searches successfully finds a match using the regex search (a logical OR of the two searches, with only one match required to declare the PID monitored) This would preserve existing functionality of allowing a more specific search of the cmdline (with arguments), should the use specify a more complex regex that will match specifically a given cmdline for a particular process. It would also now enable the monitoring of a set of processes that lack a cmdline (such as NFSD) if the user specifies just the process name for the regex search, which will be found by the search of the Name: field in the status file. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/735452 Title: IOMonitor Plugin does not use optimal /proc parameter to find process PID -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs