How To Update Disk Usage Alert Script To Check Another Folder Ambari
Note: This is post is part of the HDPCA exam objective series
Monitoring the health of Hadoop cluster is an important aspect of Hadoop administration. Ambari provides united states the centralized management of wellness alerts and checks for the services in your cluster. You tin can prepare thresholds and tin disable/enable alerts using the ambari UI.
You can view all the alerts definations from the alerts page in the ambari dashboard.
The alerts which have breached the threshold volition be shown in red color. The Alerts which are nether the threshold value are shown in green colour.
There are many filters bachelor on the alerts folio to filter out using some condition. Y'all can filter alerts based on:
1. State (enabled/disabled)
two. Service (alerts for a specific service like YARN, HDFS)
3. Condition (OK, WARNING, CRITICAL, UNKNOWN, NONE)
4. Final condition changed.
5. Alert Definition Proper name.
Yous tin also view the alert definitions with respect to private service groups.
Disable/Enable an Alert
An warning can be easily enabled or disabled from the Alerts page in Ambari. In the instance shown below, we are disabling the "Host Disk Usage" warning.
Manage warning group
Click on "Manage Alert Group" from "Deportment" drib-down to view the options to manage alarm groups. You tin can manage alert groups for each service in this dialog. View the list of alert groups and the alert definitions configured in them. You lot can likewise add/remove warning definitions, and choice notification for that alert grouping.
Each service will take a default alarm group which can non be deleted.
We can add a new alert grouping click on the "+" icon at the bottom and provide the name of the alert grouping.
We can add together the warning definitions to this new alarm group.
We accept added the ii sample alerts to the new alarm grouping as shown beneath.
Create Alarm Notification
Creating alerts is not sufficient if the Hadoop admin does not go the electronic mail alerts from the ambari. Let's encounter how we can create a notification in ambari. Goto the alerts folio and click "Manage Notifications" under the "Actions" drop-down.
Here, Create the new Notification using the "+" icon at the bottom.
Provide the information such as Proper name, Alert groups, Severity and email address to receive the notification on this folio.
Click save and verify if the Notification is created.
Manage Warning Settings (Warning Bank check Count)
Ready the number of warning checks to perform before dispatching a notification. If during an alert check a state change occurs, Ambari will attempt to check this number of times before dispatching a notification. Increase this number if your surroundings experiences transient issues resulting in false alerts.
Source: https://www.thegeekdiary.com/hdpca-exam-objective-configure-and-manage-alerts/
Posted by: sharphadis1993.blogspot.com
0 Response to "How To Update Disk Usage Alert Script To Check Another Folder Ambari"
Post a Comment