Splunk AppDynamics

How do I create custom action in SaaS controller.

Ashish_Saxena3
Explorer

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.

Labels (3)
0 Karma
1 Solution

Dietrich_Meier
Communicator

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.

View solution in original post

iamryan
Community Manager
Community Manager

Hi @Gopikrishnan.Ravindran,

Since the Community was not able to jump in and help, you can try contacting AppDynamics Support: How do I submit a Support ticket? An FAQ 

If you get or find a solution, can you please share your solution here as a reply?

0 Karma

iamryan
Community Manager
Community Manager

Hi @Gopikrishnan.Ravindran,

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...

0 Karma

Gopikrishnan_Ra
New Member

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.

0 Karma

Gopikrishnan_Ra
New Member

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.

0 Karma

Dietrich_Meier
Communicator

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 

Dietrich_Meier
Communicator

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.

Ashish_Saxena3
Explorer

I have YAML script, can i execute this using above steps?

0 Karma
Get Updates on the Splunk Community!

Say goodbye to manually analyzing phishing and malware threats with Splunk Attack ...

In today’s evolving threat landscape, we understand you’re constantly bombarded with phishing and malware ...

AppDynamics is now part of Splunk Ideas

Hello Splunkers, We have exciting news for you! AppDynamics has been added to the Splunk Ideas Portal. Which ...

Advanced Splunk Data Management Strategies

Join us on Wednesday, May 14, 2025, at 11 AM PDT / 2 PM EDT for an exclusive Tech Talk that delves into ...