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
Last published date
Overview
APM_HardwareItem_Detail and reduce hardware health historical data while keeping the current settings for other statistics.Product section
Resolution
As a workaround, modify the following stored functions in SQL Studio Manager:
GetOrionRetainDetailDate_apmGetOrionRetainHourlyDate_apmapm_GetOrionRetainDailyDate
Perform the following:
- Open SQL Studio Manager.
- Expand DB > Programmability > Functions > Scalar-Valued Functions.
- Replace the following line:
select @DataRetainDays = CurrentValue from Settings where SettingID = 'SWNetPerfMon-Settings-Retain Detail'
with
SET @DataRetainDays= <requested/>
- 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.