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