# How to resolve Sprinto check for monitoring AWS Load Balancer (ALB) or Classic Load Balancer (CLB) errors

### About <a href="#about" id="about"></a>

Sprinto Check: AWS load balancer errors should be monitored or AWS classic load balancer errors should be monitored

When you integrate your AWS account with Sprinto, the platform fetches the list of services from your AWS account. If you're using AWS Application Load Balancers (ALB) or Classic Load Balancers (CLB) and haven't set up a monitoring alert for the HTTPCode\_Target\_5XX\_Count (for ALBs) or HTTPCode\_ELB\_5XX (for CLBs) metric, Sprinto activates this check for all Load Balancers under your account.

### Purpose <a href="#purpose" id="purpose"></a>

Monitoring 5XX errors in your AWS Load Balancer, specifically focusing on the HTTPCode\_Target\_5XX\_Count metric for Application Load Balancers and HTTPCode\_ELB\_5XX for Classic Load Balancers, is crucial to ensure the health and reliability of your applications. Sprinto promptly sends notifications if the error count exceeds the defined threshold, allowing you to take proactive measures to address potential issues.

### How to Resolve <a href="#how-to-resolve" id="how-to-resolve"></a>

To address this check, follow the steps below to create an AWS CloudWatch alert for monitoring AWS Load Balancer 5XX errors.

#### Before you Begin <a href="#before-you-begin" id="before-you-begin"></a>

* Ensure you have "Admin" access on the AWS account to create alerts.
* Confirm the existence of Application Load Balancers (ALB) or Classic Load Balancers (CLB) on your AWS account for which you want to set up alerts.
* Log in to Sprinto as an administrator.

#### Create a Monitoring Alert for Application Load Balancers (ALB) <a href="#create-a-monitoring-alert-for-application-load-balancers-alb" id="create-a-monitoring-alert-for-application-load-balancers-alb"></a>

1. Log in to your [AWS console](https://aws.amazon.com/console/) using your credentials.
2. Navigate to the **Load balancer** web service and select your desired ALB to create a monitoring alert.
3. On the load balancer page, Select the **Monitoring** tab, then select **View in metric** for **HTTP 5XXs** metric.

   <figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/72087869382/original/nd3zBrsvSSI-dQ8LXqBdnV8isXiZRSamBw.png?1709538778" alt="" width="563"><figcaption></figcaption></figure>
4. Now, click on the alert icon under **Actions**.

   <figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/72087869777/original/J1iGDZanBvsXVn7V2ei3jU6xlIGm4n7xNg.png?1709538904" alt="" width="563"><figcaption></figcaption></figure>
5. Specify the conditions to define the alert trigger point, then click Next.

   <figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/72087869807/original/Asbdl87OQHtlsFw9rXm2XfQos8FI5JDlpQ.png?1709538932" alt="" width="563"><figcaption></figcaption></figure>
6. On the Configure Action page:
   * **Create New Topic**: Enter the topic name and email address for alert notifications. Ensure your created topic gets selected for notification.
   * Click Next.

     <figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/72087869922/original/LZ-oUYG4oT7AD0qWotcj_DcdACd7DWVklQ.png?1709538983" alt="" width="563"><figcaption></figcaption></figure>
7. Enter a name and description for the created alert, then click **Next**.

   <figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/72087869955/original/VKT80dTXGP86jWauajhO1NSRfiiYeWBgTw.png?1709539017" alt="" width="563"><figcaption></figcaption></figure>
8. Preview your created alarm and edit any parameters if required, then click **Create Alarm**.

   <figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/72087870076/original/bw-2ACo01xmhsBIu7omlr5LPARzYgxkH3g.png?1709539079" alt="" width="563"><figcaption></figcaption></figure>

#### Create a Monitoring Alert for Classic Load Balancers (ELB) <a href="#create-a-monitoring-alert-for-classic-load-balancers-elb" id="create-a-monitoring-alert-for-classic-load-balancers-elb"></a>

1. Log in to your [AWS console](https://aws.amazon.com/console/) using your credentials.
2. Navigate to the **Load balancer** web service and select your desired ELB to create a monitoring alert.

   <figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/72087870251/original/VprFpowNLU4_B5nxBkJRQMCQLumrswFBdg.png?1709539186" alt="" width="563"><figcaption></figcaption></figure>
3. On the load balancer page, Select the **Monitoring** tab, then select **View in metric** for **ELB 5XXs** metric.

   <figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/72087870286/original/M6ZDEI49yuJKt0ZIMdfLtIRz7oHs4IFJFQ.png?1709539196" alt="" width="563"><figcaption></figcaption></figure>
4. Now, click on the alert icon under **Actions**.

   <figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/72087870325/original/dlDmdlKLXda0_rwKtXHq46meWGnhXkb1hA.png?1709539217" alt="" width="563"><figcaption></figcaption></figure>
5. Specify the conditions to define the alert trigger point, then click **Next**.

   <figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/72087870354/original/-3Vp-Ltqe9irA8rz5JKhSCwrAiuORKk3eA.png?1709539244" alt="" width="563"><figcaption></figcaption></figure>
6. On the Configure Action page:
   1. **Create New Topic**: Enter the topic name and email address for alert notifications. Ensure your created topic gets selected for SNS.
   2. Click **Next**.

      <figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/72087870559/original/f69OmLJPwB6nDvtVhHSgUONdpfYe1niVJA.png?1709539352" alt="" width="563"><figcaption></figcaption></figure>
7. Enter a name and description for the created alert, then click **Next**.

   <figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/72087870414/original/t8Lby1nbM_GcRSBWVSZnxyt88CxAvFLPVA.png?1709539287" alt="" width="563"><figcaption></figcaption></figure>
8. Preview your created alarm and edit any parameters if required, then click **Create Alarm**.

   <figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/72087870673/original/easDFty-kr5Z5HHq21hpV8FcUn2aRXDfJw.png?1709539424" alt="" width="563"><figcaption></figcaption></figure>

### Final step <a href="#final-step" id="final-step"></a>

Once the monitoring alerts are created on CloudWatch for AWS Load Balancer, Sprinto retrieves the changes, and the Sprinto check status is set to "Passing."

For additional assistance with the Sprinto check, please reach out to [Sprinto Support](mailto:www.support@sprinto.com). We're here to help!
