- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2023 12:29 AM
I want to trigger custom actions from Appdynamics to Ansible, This required to create custom action on controller but we have SaaS controller. Please advise how would I create the same.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2023 11:01 PM
Hi Ashish
I have not come across a good working example of this for executing something in Ansible.
Way back when I last tried to get this working there was a limitation for custom actions that required the host server to be Linux. Not sure if that has been changed.
Check out this link.
https://docs.appdynamics.com/appd/23.x/latest/en/appdynamics-essentials/alert-and-respond/actions/re...
Prerequisites for Local Script Actions
- The Machine Agent must be installed running on the host on which the script executes. To see a list of installed Machine Agents for your application, click View machines with machine-agent installed in the bottom left corner of the remediation script configuration window.
- To be able to run remediation scripts, the Machine Agent must be connected to an on-premises Controller or to a SaaS Controller via SSL. Remediation script execution is disabled if the Machine Agent connects to a SaaS Controller on an unsecured (non-SSL) HTTP connection.
- The Machine Agent OS user must have full permissions to the script file and the log files generated by the script and/or its associated child processes.
- The script must be placed in <agent install directory>\local-scripts.
- The script must be available on the host on which it executes.
- Processes spawned from the scripts must be daemon processes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2023 05:38 AM
I have YAML script, can i execute this using above steps?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2023 12:12 AM
Hi Ashish
The documentation only shows an example with a .sh script.
Please test your YAML script in a non-prod environment if possible and let us know how it turned out.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2024 09:23 AM
Hi Guys,
Any success on this? Also I was checking the server module and in document it says Remediation actions are not available for servers. Any idea how we can call remediation script in Servers.
Regards,
Gopikrishnan R.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2024 09:00 AM
I don't know if you have SaaS or On-prem, but here is a Docs link to SaaS you should check out. https://docs.appdynamics.com/appd/24.x/24.2/en/appdynamics-essentials/alert-and-respond/actions/reme...
Thanks,
Ryan, Cisco AppDynamics Community Manager
Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Check out Observabiity in Action
new deep dive videos weekly in the Knowledge Base.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2024 01:43 PM
Hi Ryan,
I have a Saas controller. The problem here is my machine agent is not associated to any application and my healthrule which needs to trigger the remediation action is created under Server module. Ideally when healthrule violates I want the to run the script. Can you suggest any way for this.
Regards,
Gopikrishnan R.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2024 09:25 AM
Since the Community was not able to jump in and help, you can try contacting AppDynamics Support:
If you get or find a solution, can you please share your solution here as a reply?
Thanks,
Ryan, Cisco AppDynamics Community Manager
Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Check out Observabiity in Action
new deep dive videos weekly in the Knowledge Base.
