Skip to main content

Hello,

I’m trying to understand how options ‘--regexp-name/--process-name’ work together in plugin centreon_windows_wsman.pl. I haven’t get it.

According to help info:

--process-name: Filter process name.

--regexp-name: Allows to use WQL wildcard to filter process name (with option
            --process-name).

How does it mean? What is the right way to do it? Is it a real regular expression? Or a WQL-sysntax query? Where do I have to put the regexp? If I want to get all processes starting with ‘p’, how do I have to write the options?:

  1. --process-name --regexp-name=”^p” ?
  2. --process-name=”^p” --regexp-name ?
  3. --process-name --regexp-name=”%p” ?
  4. --process-name=”%p” --regexp-name ?
  5. --regexp-name=”^p” ?
  6. ..

I haven’t found the way…

If anybody can give me some light...Thanks in advance.

Regards,

Albert

use --process-name=’p%’ --regexp-name


Reply