---
title: Alert on infrastructure processes
source: https://docs.newrelic.com/docs/infrastructure/infrastructure-alerts/alert-infrastructure-processes
---

Use New Relic infrastructure's **Process running** [alert condition](https://docs.newrelic.com/docs/infrastructure/new-relic-infrastructure/configuration/infrastructure-alerts-add-edit-or-view-host-alert-information) to be notified when a set of processes on your [filtered hosts](https://docs.newrelic.com/docs/infrastructure/new-relic-infrastructure/filter-group/filter-sets-organize-your-infrastructure-hosts) stop running for a configurable number of minutes. This is useful, for example, when:

-   Any of the processes on the hosts stop reporting
-   A process is running too many instances on one host

This feature's flexibility allows you to easily filter what hosts and processes to monitor and when to notify selected individuals or teams. In addition, the email notification includes links to help you quickly troubleshoot the situation.

> #### ⚠️ IMPORTANT
>
> By default, the infrastructure agent doesn't send [data about the operating system's processes](/attribute-dictionary/?event=ProcessSample). To enable the sending of process data set [`enable_process_metrics`](https://docs.newrelic.com/docs/infrastructure/install-configure-manage-infrastructure/configuration/infrastructure-configuration-settings#enable-process-metrics) to `true`. To fine-tune which processes you want to monitor, configure [`include_matching_metrics`](https://docs.newrelic.com/docs/infrastructure/install-configure-manage-infrastructure/configuration/infrastructure-configuration-settings#include-matching-metrics) or [`exclude_matching_metrics`](https://docs.newrelic.com/docs/infrastructure/install-configure-manage-infrastructure/configuration/infrastructure-configuration-settings#exclude-matching-metrics).

## Examples [#features]

By applying filters to the hosts and processes that are important to your business, you can define [alerting thresholds](https://docs.newrelic.com/docs/alerts/overview#alert-threshold) to decide when alert events open and New Relic sends an email notification to you depending on the policy's [alert event preferences](https://docs.newrelic.com/docs/alerts/organize-alerts/specify-when-alerts-create-events). These examples illustrate how to use infrastructure monitoring's **Process running** condition to monitor your processes.

**Ensure enough processes are running to satisfy load**

**Problem:** Some load balancers and application servers work by running many worker processes in parallel. Here, for example, you may want an alert event when fewer than eight processes are running for a service like gunicorn.

**Solution:** Depending on the situation, use any of these **Process running** thresholds options as needed:

-   **More than** the defined number of processes are running
-   **Exactly** the defined number of processes are running
-   **Fewer than** the defined number of processes are running

**Ensure that critical services run constantly**

**Problem:** A service, such as a database or application server, is expected to be running constantly on certain hosts, and you need to know when it has stopped.

**Solution:** Use the **No processes are running** (default) threshold.

**Monitor startup for critical processes that require special attention**

**Problem:** You have processes requiring special attention due to security or potential performance impact.

**Solution:** Use the **At least one process is running** threshold with condition filters set to a username and specific executable so that New Relic can open an alert event when the process is running.

**Make sure a job doesn't take too long**

**Problem:** You have a job that runs periodically, and you want to open an alert event when it has been running longer than an expected number of minutes.

**Solution:** Use the **At least one process is running** threshold.

**Watch for runaway processes or configuration problems**

**Problem:** Sometimes problems with processes can be solved with changes to your configuration. For example, you have more than one Chef process running, and you may need to address an issue with how that service is configured.

**Solution:** Depending on the situation, use any of these **Process running** thresholds options as needed:

-   **More than** the defined number of processes are running
-   **Exactly** the defined number of processes are running
-   **Fewer than** the defined number of processes are running

## Create an infrastructure process running condition [#create-condition]

To define the **Process running** alert criteria:

1.  Go to **[one.newrelic.com > All capabilities](https://one.newrelic.com/all-capabilities) > Infrastructure**. Mouse over a chart you want to alert on, select the ellipses  icon, and then select **Create alert condition**.
2.  Type a meaningful condition name.
3.  Select **Process running** as the **Alert type**.
4.  Filter what hosts and processes you want the alert condition to apply to.
5.  Define the **Critical** threshold for triggering the alert notification: minimum 1 minute, default 5 minutes, and maximum 60 minutes.
6.  Optional: To create the condition criteria proactively but not receive alert notifications at this time, turn off the [**Enabled** checkbox option](https://docs.newrelic.com/docs/infrastructure/new-relic-infrastructure/configuration/infrastructure-alerts-add-edit-or-view-host-alert-information#enabled).
7.  Select an existing policy for the new condition.

    OR

    Select the option to create a new policy and identify the email for alert notifications.
8.  Optional: Add a [runbook url](#runbook-url-infrastructure).
9.  Optional: Set the [**Close open alert events after**](#alert-event-time-limit) time limit to automatically close open alert events after a certain amount of time (this defaults to 24 hours for infrastructure conditions).
10. Select **Create**.

If you create the alert condition directly with infrastructure monitoring, New Relic will send an email notification when the defined threshold for the alert condition passes depending on the policy's [alert event preferences](https://docs.newrelic.com/docs/alerts/organize-alerts/specify-when-alerts-create-events). Your alert policy defines which personnel or teams and which notification channels we use.
