Skip to main content
Question

Using --regexp-name/--process-name options in centreon_windows_wsman.pl with mode 'processes'

  • February 14, 2025
  • 1 reply
  • 34 views

Forum|alt.badge.img+4

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

1 reply

Forum|alt.badge.img+6
  • Steward **
  • February 16, 2025

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