You can apply G1 and G2 agent process statistics monitoring templates for Linux and Windows devices. G2 agent templates allow for threshold and filter configuration at the component level.

The agent can send cache, physical, and virtual memory components for all Linux distributions.

Agent G2 Process Statistics Monitors

The following global templates are used to monitor devices.

Template NameSupported Metrics
Agent G2 - Linux Process Statistics Monitoring-v2system.process.stats.count
system.process.stats.cpu system.process.stats.memory system.process.stats.threads system.process.stats.open.fds
Agent G2 - Linux Process Statistics Monitoringsystem.process.stats.count
system.process.stats.cpu system.process.stats.memory system.process.stats.threads system.process.stats.open.fds
Agent G2 - Windows Process MonitoringSystem.windows.process.count System.windows.process.handlecount System.windows.process.pagefilebytes System.windows.process.processorcoretime.percent System.windows.process.processortime.percent System.windows.process.threadcount System.windows.process.workingset
  1. Select a client from the All Clients list.
  2. Go to Infrastructure > Resources.
  3. Go to Resource Name > Resource Details > Monitors > Template.
  4. Click +Assign Templates.
  5. Go to Apply Templates > Select Templates > Available templates and select the templates.
  6. Click Assign.
  7. In the Enter Configurations step, enter a Value for each Configuration Parameter:

For windows template we will get the below options

Apply Template

For Linux template we will get the below options

Apply Template

  1. Click Submit to apply the changes. The Templates screen displays the selected templates.

After applying the template to a device, validate the template to ensure that it is assigned to a resource.

Configuration Parameters

Use the following input argument format for Linux and Windows processes, where processname is the name of the process you want to monitor:

processname@@@processname@@@processname.

The format uses @@@ to delimit multiple processes.

The Agent supports all basic and extended regular expressions, including:

  • grep with -E switch-based regular expressions for Linux.
  • PowerShell-based regular expressions for Windows.

In Agent G2 - Linux Process Statistics Monitoring- v2, along with the above configurations we have one more configuration parameter called process stat matching criteria with below 3 options:

  1. Include Process Arguments: Agent will match the given process name or regex with all the process names and its arguments in the system.
    Example: If a user has given a process name as systemd for monitoring, agent will monitor all the processes in the system whose name or arguments contains systemd like systemd-journal, systemd-udev, debus-demon(process argument matches)

  2. Exclude Process Arguments: Agent will match the given process name or regex only with the process names in the system.
    Example: If a user has given a process name as systemd for monitoring, agent will monitor all the processes in the system whose name contains only systemd like systemd-journal, systemd-udev, systemd.

  3. Match Exact Process Name: Agent will monitor only if the given process name is found in the system.
    Example: If a user has given a process name as systemd, agent will try to find the process name with systemd, if it is not found in the system agent will return nil.

Examples:

Example regexExample Description
opsramp-agent@@@opsramp-shieldThe component name is the respective process name.
opsramp-.\*@@@chromeThe component name is the respective process name and other process names matching the regular expression.
(ntpd|chrond)@@@notepad.\*The component name is the process name matching with a given regular expression. If the string notepad.* matches with two process names such as notepad.exe and notepad++.exe. The component names are Notepad and Notepad++.
processPattern1;;;DisplayName1@@@processPattern2;;;DisplayName2Use respective display names for each component while monitoring the same process with different arguments, where the component names are the display names for the respective process patterns.
svchost.*NetworkService;;;svchost_NetworkService@@@svchost.*DcomLaunch;;;svchost_DcomLaunchEnter the same display name while configuring [component filter](/solutions/monitoring/template/component-filters/) or component thresholds at the template or device level. Use the component name `svchost_NetworkService and svchost_DcomLaunch while defining the [component filters](/solutions/monitoring/template/component-filters/) and component thresholds.

Process Statistics Alert

Alerting is available for Process Count, Memory, and CPU under the process statistics monitoring.
Alerts are sent when monitoring processes and can be viewed in the alert browser. The alert subject displays process alert details similar to those shown in the figure below:

Process Alerts
Process Alerts
Process Alerts

View Collected Metrics

Go to Infrastructure > Resources > Device Details > Monitors > Monitors to view the collected metrics for the respective operating system:

  • Windows: Agent G2 - Windows Process Monitoring
  • Linux: Agent G2 - Linux Process Statistics Monitoring-v2
  • Linux: Agent G2 - Linux Process Statistics Monitoring

Validate Templates

Each metric name configured in the process statistics monitor has an associated graphical display. Go to Infrastructure > Resources > Device Details > Metrics and use the metric drop-down menu to select and view a metric graph.

Validate Template