Created 11-09-2015 09:23 PM
How to adjust thresholds on Ambari alerts?
For example, the following Ambari Agent Disk Usage alert has 50% WARNING and 80% CRITICAL threasholds but what do i need to do if i would like to make 60% usage as CRITICAL?
This host-level alert is triggered if the amount of disk space used on a host goes above specific thresholds. The default values are 50% for WARNING and 80% for CRITICAL.
and also can i make these alerts specific to mount/volume on Ambari host server?
Thanks,
Created 11-09-2015 09:30 PM
Please see this. You can change these values and restart ambari-server
/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
Can i make these alerts specific to mount/volume on Ambari host server?
Yes, you should be able to customize the above script.
Created 08-17-2016 09:24 PM
for my questions : Yes the alert_definition can be updated using a PUT api call.
Created 01-03-2017 12:02 PM
I tried changing the description from the ambari UI but it didn't work. Then I tried modifying the alert_disk_space.py script with PERCENT_USED_WARNING_DEFAULT = 60 and restarted my ambari server. but still I can't see the changes from the UI. And my alert which got generated for 50% utilization still exist. Please advise.