Applications Systems

Hardware Health monitoring table is too big in SAM

This article describes how to shrink the APM_HardwareItem_Detail table and reduce hardware health historical data while keeping the current settings for other statistics.

First published date

10/17/2018 2:52 PM

Last published date

10/17/2018 2:52 PM

Overview

The Hardware Health  monitoring table is too bigThis article describes how to shrink the table APM_HardwareItem_Detail and reduce hardware health historical data while keeping the current settings for other statistics.

Product section

Server Application Monitor

Resolution

As a workaround, modify the following stored functions in SQL Studio Manager:

  • GetOrionRetainDetailDate_apm
  • GetOrionRetainHourlyDate_apm
  • apm_GetOrionRetainDailyDate

Perform the following:

  1. Open SQL Studio Manager.
  2. Expand DB > Programmability > Functions > Scalar-Valued Functions.
  3. Replace the following line:
    select @DataRetainDays = CurrentValue from Settings where SettingID = 'SWNetPerfMon-Settings-Retain Detail'
    with
    SET @DataRetainDays= <requested/>
  4. Verify that the value has been updated in.apm_GetOrionRetainDetailDate < apm_GetOrionRetainHourlyDate < apm_GetOrionRetainDailyDate

 

Disclaimer: Please note, any content posted herein is provided as a suggestion or recommendation to you for your internal use. This is not part of the SolarWinds software or documentation that you purchased from SolarWinds, and the information set forth herein may come from third parties. Your organization should internally review and assess to what extent, if any, such custom scripts or recommendations will be incorporated into your environment.  You elect to use third-party content at your own risk, and you will be solely responsible for the incorporation of the same if any.