SystemEDGE Process Monitoring String yields -2

Document ID : KB000115285
Last Modified Date : 18/09/2018
Show Technical Document Details
Issue:
  • Trying to monitor similar processes on a Linux server.
  • There are two processes:
ora_smon_ABC and ora_smon_ABC_123
  • The string I am using is .*smon_ABC
  • Is this regex string proper or am I missing something?
Resolution:
  • Regex .*smon_ABC would match both processes ora_smon_ABC_123 and ora_smon_ABC yielding the -2.
  • Use the following regex will explicitly match both strings:
^ora_smon_ABC_123$

and

^ora_smon_ABC$