Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Alert Configuration on Ambari

avatar
Expert Contributor

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,

1 ACCEPTED SOLUTION

avatar
Master Mentor

@rbalam@hortonworks.com

Please see this. You can change these values and restart ambari-server

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

/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.

View solution in original post

11 REPLIES 11

avatar
Contributor

for my questions : Yes the alert_definition can be updated using a PUT api call.

avatar
New Contributor

@Neeraj Sabharwal

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.