Hi Sean, You are not meant to do that. The scripts are not really called from Ambari server which is a Java process but from Python scripts invoked by the agent. If you need config from ambari, you can in your script ask ambari to pass it to you. If you need some metrics to validate, you can define then in the descriptor including the validations and error messages (or as a last result talk directly to Ambari Metrics which doesn't have user/password)
Have a look at some existing service that has something similar like what you trying to do. Regards, Gonzalo On 18 January 2018 at 14:57, Sean Roberts <[email protected]> wrote: > Ambari folks – Within a service we have an ALERT which uses a SCRIPT. The > script talks to the Ambari API *(GET and POST).* Currently we are > providing credentials for the script to talk to the Ambari API. > > > > *Is it possible for Alerts, of the WEB or SCRIPT type, to be authenticated > automatically since they are being called from Ambari?* > > -- > > Sean Roberts >
