<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Passing the parameters of health rule to shell script in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Passing-the-parameters-of-health-rule-to-shell-script/m-p/728061#M6057</link>
    <description>&lt;P&gt;Hi Asha,&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#0066cc"&gt;&lt;FONT color="#000000"&gt;Thanks&lt;/FONT&gt; &lt;FONT color="#000000"&gt;for your help.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#000000"&gt;The script present in below link getting the events only. But I want the health rule parameters.&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://github.com/Appdynamics/servicenow-alerting-extension/blob/master/src/main/custom/actions/createServiceNowTicket/createServiceNowTicket.sh" target="_self" rel="nofollow noopener noreferrer"&gt;&lt;FONT color="#0066cc"&gt;ServiceNow integration using Custom Actions &lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Can you please help in getting health rule parameters into shell script.&lt;/P&gt;

&lt;P&gt;Thanks and Regards&lt;/P&gt;
&lt;P&gt;Siva Mullapudi&lt;/P&gt;</description>
    <pubDate>Tue, 01 Aug 2017 07:01:55 GMT</pubDate>
    <dc:creator>CommunityUser</dc:creator>
    <dc:date>2017-08-01T07:01:55Z</dc:date>
    <item>
      <title>Passing the parameters of health rule to shell script</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Passing-the-parameters-of-health-rule-to-shell-script/m-p/728058#M6054</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;At present our client sending the email to particular dl after healthrule is voilated. Now we&amp;nbsp;are planning to create one custom action and send the parameters to shell script. This shell script will push the health rule details to our java web application.&lt;/P&gt;

&lt;P&gt;Can anyone please provide the sample shell script to get parameters(Node name and health rule name) of health rule voilation.&lt;/P&gt;

&lt;P&gt;Please revert if you want further information.&lt;/P&gt;
&lt;P&gt;Thanks and Regards&lt;/P&gt;
&lt;P&gt;Siva&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 07:24:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Passing-the-parameters-of-health-rule-to-shell-script/m-p/728058#M6054</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2017-07-27T07:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Passing the parameters of health rule to shell script</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Passing-the-parameters-of-health-rule-to-shell-script/m-p/728059#M6055</link>
      <description>&lt;P&gt;Hi Siva,&lt;/P&gt;

&lt;P&gt;Please see if the following documentation helps you retrieve the details you are looking for:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.appdynamics.com/display/PRO43/Alert+and+Respond+API#AlertandRespondAPI-RetrieveEventData" target="_self" rel="nofollow noopener noreferrer"&gt;Retrieve Event Data&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.appdynamics.com/display/PRO43/Alert+and+Respond+API#AlertandRespondAPI-RetrieveAllHealthRuleViolationsinaBusinessApplication" target="_self" rel="nofollow noopener noreferrer"&gt;Retrieve All Health Rule Violations in a Business Application&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Given you are trying to get these details into a Java Application, please check if you really need to implement a custom action to this end. If the above REST APIs are what you are looking for, probably your Java Application can consume them as a client.&lt;/P&gt;

&lt;P&gt;Although the product offers the feature of custom actions so that users can create and trigger execution of a customized shell/bat script to fulfill their various requirements,&amp;nbsp;we do not have any such example scripts.&lt;BR /&gt;&lt;BR /&gt;Looking at your requirement mentioned below, if at all the custom action script is a necessary requirement, please see if you can use the above REST API and pull concerned data to complete the sequence of actions you are interested in.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Asha.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 09:21:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Passing-the-parameters-of-health-rule-to-shell-script/m-p/728059#M6055</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2017-07-31T09:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Passing the parameters of health rule to shell script</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Passing-the-parameters-of-health-rule-to-shell-script/m-p/728060#M6056</link>
      <description>&lt;P&gt;Hi Siva,&lt;/P&gt;

&lt;P&gt;In case if you were looking for the order of the parameters passed into the Custom Actions from the Health Rules and Events, please refer the following documentation:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.appdynamics.com/display/PRO43/Build+a+Custom+Action#BuildaCustomAction-InformationPassedtotheCustomActionScriptfromAppDynamics" target="_self" rel="nofollow noopener noreferrer"&gt;Build a CustomAction -Information Passed to the Custom Action Script from AppDynamics&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Please find an example as below:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://github.com/Appdynamics/servicenow-alerting-extension/blob/master/src/main/custom/actions/createServiceNowTicket/createServiceNowTicket.sh" target="_self" rel="nofollow noopener noreferrer"&gt;ServiceNow integration using Custom Actions &lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope that helps.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Asha.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 13:32:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Passing-the-parameters-of-health-rule-to-shell-script/m-p/728060#M6056</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2017-07-31T13:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Passing the parameters of health rule to shell script</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Passing-the-parameters-of-health-rule-to-shell-script/m-p/728061#M6057</link>
      <description>&lt;P&gt;Hi Asha,&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#0066cc"&gt;&lt;FONT color="#000000"&gt;Thanks&lt;/FONT&gt; &lt;FONT color="#000000"&gt;for your help.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#000000"&gt;The script present in below link getting the events only. But I want the health rule parameters.&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://github.com/Appdynamics/servicenow-alerting-extension/blob/master/src/main/custom/actions/createServiceNowTicket/createServiceNowTicket.sh" target="_self" rel="nofollow noopener noreferrer"&gt;&lt;FONT color="#0066cc"&gt;ServiceNow integration using Custom Actions &lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Can you please help in getting health rule parameters into shell script.&lt;/P&gt;

&lt;P&gt;Thanks and Regards&lt;/P&gt;
&lt;P&gt;Siva Mullapudi&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 07:01:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Passing-the-parameters-of-health-rule-to-shell-script/m-p/728061#M6057</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2017-08-01T07:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Passing the parameters of health rule to shell script</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Passing-the-parameters-of-health-rule-to-shell-script/m-p/728062#M6058</link>
      <description>&lt;P&gt;Hi Siva,&lt;/P&gt;

&lt;P&gt;Please check any of the scripts below could help you serving as an example:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://github.com/Appdynamics/custom-action-scripts" target="_self" rel="nofollow noopener noreferrer"&gt;Custom Action Scripts&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Pease refer the documentation in my previous response. It has the details of Health Rule parameters. Users are encouraged to write the scripts using any of the listed parameters. The sample script should help understand how they can be used.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Asha.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 07:40:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Passing-the-parameters-of-health-rule-to-shell-script/m-p/728062#M6058</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2017-08-01T07:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Passing the parameters of health rule to shell script</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Passing-the-parameters-of-health-rule-to-shell-script/m-p/728063#M6059</link>
      <description>&lt;P&gt;Hi Asha,&lt;/P&gt;

&lt;P&gt;Now able to get the required parameters into my web application.&lt;/P&gt;

&lt;P&gt;Thanks for your help.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Siva&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 13:08:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Passing-the-parameters-of-health-rule-to-shell-script/m-p/728063#M6059</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2017-08-10T13:08:51Z</dc:date>
    </item>
  </channel>
</rss>

