processes Advanced Configuration

By default, the process names, such as Java processes, are truncated to 80 characters in the command line field. This truncation process makes it difficult to distinguish between the java instances. You can specify the length of permissible characters in the command line by using Raw Configure.
uimpga-ga
This article describes the advanced configuration concepts and procedures to set up the Processs Monitoring (processes) probe.
Contents
Increase Stack Size
(Applicable for Linux only) You can increase the stack size (default is 10MB) to ensure that the probe does not crash. For example, when you use a complex regular expression to recognize a process, the default stack size is not sufficient to complete the search process and as a result, the probe may crash. Increasing the stack size allows you to perform complex search functions.
Follow these steps:
  1. Hold down the 
    Ctrl
     key, right-click the processes probe in the Infrastructure Manager and select 
    Raw Configure...
     option from the context menu.
    The Raw Configure
     dialog appears.
  2. Select
    setup
    .
  3. Double click on the stack_size_in_mb option from the right pane.
  4. Enter the size of the stack in MB.
  5. Click 
    OK.
(Solaris) Remove Process Character Truncation
By default, the process names, such as Java processes, are truncated to 80 characters in the command line field. This truncation process makes it difficult to distinguish between the java instances. You can specify the length of permissible characters in the command line by using Raw Configure.
Follow these steps:
  1. Hold down the 
    Ctrl
     key, right-click the processes probe in the Infrastructure Manager and select 
    Raw Configure...
     option from the context menu.
    The Raw Configure
     dialog appears.
  2. Select 
    Edit Configuration File
     option.
    The
    Raw Configure
     window appears.
  3. From the left pane, select 
    Setup
     node and click
    New Key
    The
    New Key
     dialog appears.
  4. Enter a name for the key as 
    extended_cmdline 
    and set its value as 
    yes
    .
  5. Click
    OK.
(HPUX) View Full Command Line Parameters
Using the processes probe, if you set up the monitoring of a process with a very long command-line parameter, the probe truncates these parameters and does not display the full process command line. You can see the full command-line parameters by setting the value of
get_full_command_line
to
yes 
through the raw configuration interface of the probe.
Follow these steps:
  1. Hold down the 
    Ctrl
     key, right-click the processes probe in the Infrastructure Manager and select 
    Raw Configure...
     option from the context menu.
    The Raw Configure
     dialog appears.
  2. Select 
    Edit Configuration File
     option.
    The
     Raw Configure
     window appears.
  3. From the left pane, select 
    Setup
     > 
    get_full_command_line
     
    key and set its value as 
    yes
    .
    Default: No 
  4. Click 
    OK.
Use Regular Expressions
A regular expression (regex for short) is a special text string for describing a search pattern. Constructing regular expression and pattern matching requires meta characters. The probe supports Perl Compatible Regular Expression (PCRE) which are enclosed within forward slash
 (/)
. For example, the expression 
/[0-9A-C]/
 matches any character in the range 
to 
in the target string.
You can also use simple text with some wild card operators for matching the target string. For example, 
*c.exe
 expression displays all processes that contain the character 
c
 in their names.
You can use regex in the following fields:
  • Recognize process by:
    You can use regular expression to select multiple processes. For example, enter the regex as "nimbus*" to monitor all the nimbus related processes, as shown in the following screenshot,
    Multiple Processes.PNG
  • Process Owner
    . Ensure that the owner name is same as the one mentioned in the
    User
    field of the
    Status
    tab. Also, add the domain name while entering the regex pattern in the
    Process Owner
    field. For example, for the Process Owner name as <Domain Name>/Robert, enter the regex as  <Domain Name>/R*.
The following table describes some examples of regex and pattern matching for the processes probe.
Regular expression
Type of regular expression
Explanation
^[A-Z]
Standard (PCRE)
Matches any upper case alpha character.
*
Standard (PCRE)
Matches against zero or more occurrences of the previous character or expression
c*
Custom
Matches any process that starts with c*
*.exe 
Custom
Matches any process that ends with .exe
/^((?!sqlservr.exe).)*$/
Custom
Excludes the mentioned process name from generating alarms.
In this example, the sqlserver.exe process is excluded.