Skip to main content
nsabharwal
Gold ⭐️
November 26, 2015

Change ambari alert threshold values for disks

  • October 5, 2026 at 9:39 AM
  • 2 replies
  • 6076 views
  • Translate All

https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/host_scripts/alert_disk_space.py

596-screen-shot-2015-11-26-at-71311-am.png

vi /var/lib/ambari-server/resources/host_scripts/alert_disk_space.py

# defaults in case no script parameters are passed

MIN_FREE_SPACE_DEFAULT = 5000000000L #5GB

PERCENT_USED_WARNING_DEFAULT = 50

PERCENT_USED_CRITICAL_DEFAULT = 80

You can change the above parameter to avoid alerting at 80% threshold reached in case it needs to be aletered to 85 or 90

2 replies

krishnanand_tho
Silver ⭐️⭐️
January 7, 2016

@Neeraj Sabharwal

As per Ambari REST API docs https://github.com/apache/ambari/blob/trunk/ambari-server/docs/api/v1/alert-definitions.md

the definitions can be updated

Is it possible to use REST API to update these thresholds ?

If not, then once the cluster has been deployed should these properties be updated in /var/lib/ambari-server/resources/host_scripts/alert_disk_space.py and then ambari server restarted to push this update to all the agents ?

I couldn't find a way to update these thresholds in Ambari UI

Translate
divakarreddy_a
Gold ⭐️
June 9, 2016

In addition don't forget to re-start Amabri-server after making above mentioned changes.

Translate