Member since
05-04-2016
6
Posts
0
Kudos Received
0
Solutions
08-05-2016
11:54 PM
Hi Jay SenSharma. After some research these are my latest comments. Since this is the
community site my comments are intended to be helpful to other users of this
portal. While the
Short Description promised to cover two things, none was actually covered. 1. How
to develop a simple python script which returns the result code like
'CRITICAL', 'WARN', 'OK', 'UNKNOWN' based on certain conditions matching our
requirement. This point was never covered
since no script was developed. The script was provided to complete this
exercise. It was not mentioned that the script should be written using Python.
The statement “a simple python script which returns the … code” is misleading,
since script does not return any strings listed. The method exec does…when it
is being called. It seems that the script must contain the exec method that is
being called by ambary framework. In addition, the method exec does
not return just a token string… It returns a json with a listed token being one
of the values… 2. How to write an alert definition in json format so that
we can install those alerts to the Ambari Server in order to get the alerts. This point is not covered as well. See my
prior posting. Considering that we only have 4 API calls to play with: GET,
POST, PUT, DELETE to list required fields used in json and their expected values
would be appropriate. Good Samaritan Andrew Sears provided the link
to Ambari Cheat Sheet site… the example lists a shell script to be used and
python script with the identical name in the json to be used in API call… for more
confusion I presume. On the other hand it lists json that is relatively
easy to “comprehend” by initiated. Still what is the meaning of the fields
"ignore_host"? "component_name"? "service_name"?
"scope"? In conclusion: for the article to be helpful it needs more actual details. Regards, Alex Feldman
... View more
07-19-2016
04:48 PM
Hi Jay SenSharma. This is a great tutorial. You provided a complete tutorial. I followed up the steps and it seems alerts are being generated for disk usage. I have a question about the json file format. If I would create my own alerts I need to know what are the required fields and what are the expected values? Do you have a documentation? Regards, Alex Feldman
... View more
07-13-2016
02:57 PM
The link provides a complete "project": python script and json file. I followed up the instructions... and no surprise it does work. While I can handle the script for my case what are the requirements for a json file? Do you have a useful link? What are required fields? Specifically how do you assign the alert id? Thank you, Alex Feldman
... View more
06-16-2016
03:20 PM
I would like to add/create a custom alert for a process that runs on a single edgenode in the cluster as opposite to predefined Alerts in Ambari.
I could do this using Nagios. Is it possible via Ambari?
... View more
Labels:
- Labels:
-
Apache Ambari
05-04-2016
03:33 PM
Labels:
- Labels:
-
Apache Ranger