<?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: Custom Extension Not Reporting... in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Custom-Extension-Not-Reporting/m-p/739697#M11544</link>
    <description>&lt;P&gt;Hello Andrei,&lt;/P&gt;&lt;P&gt;Please review the following documentation to create custom metrics using script.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.appdynamics.com/display/PRO45/Build+a+Monitoring+Extension+Using+Scripts" rel="noreferrer nofollow noopener" target="_blank"&gt;https://docs.appdynamics.com/display/PRO45/Build+a+Monitoring+Extension+Using+Scripts&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jan 2021 03:08:21 GMT</pubDate>
    <dc:creator>Nawaz_Ali_Moha1</dc:creator>
    <dc:date>2021-01-14T03:08:21Z</dc:date>
    <item>
      <title>Custom Extension Not Reporting...</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Custom-Extension-Not-Reporting/m-p/739696#M11543</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new to this custom extensions.&lt;/P&gt;&lt;P&gt;I am trying to build just a dummy one to see how it works.&lt;/P&gt;&lt;P&gt;I have the folder in the machine-agent-home/monitors and just a simple script that does a simple echo with a predefine metric. I just want to see it in the Metric Browser under Custom Metrics.&lt;/P&gt;&lt;P&gt;This is all that the script contains :&amp;nbsp;&lt;/P&gt;&lt;P&gt;printf "name=Custom Metrics|Disks %s|KB written/sec,aggregator=OBSERVATION,value=%d\n" "/test" 2&lt;/P&gt;&lt;P&gt;So it just prints:&amp;nbsp;name=Custom Metrics|Disks /test|KB written/sec,aggregator=OBSERVATION,value=2&lt;/P&gt;&lt;P&gt;But in the metric browser, custom metrics is not visible under my server path if I expand the tree...&lt;/P&gt;&lt;P&gt;I see this weird info in the log file "&lt;STRONG&gt;Forcing stop for Executable Command...&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;Below is the snipped from the log file as well as what the monitors.xml file contains.&lt;/P&gt;&lt;P&gt;Can someone tell me what I am doing wrong ?&lt;/P&gt;&lt;P&gt;Thank you very much in advance !&lt;/P&gt;&lt;P&gt;[Agent-Monitor-Scheduler-1] 24 Nov 2020 17:29:27,308 INFO ContinuousTaskMonitor - Continuous Task [AndreiTestMonitor] Restarted&lt;BR /&gt;[Worker-10] 24 Nov 2020 17:29:27,308 INFO ExecTask - Initializing process for exec task&lt;BR /&gt;[Worker-10] 24 Nov 2020 17:29:27,308 INFO ExecTask - Running executable script on disk [test.sh]&lt;BR /&gt;[Worker-10] 24 Nov 2020 17:29:27,308 INFO ExecTask - Executing script [/opt/appdynamics/machine-agent/monitors/andrei_custom_ext/test.sh]&lt;BR /&gt;[Worker-10] 24 Nov 2020 17:29:27,327 INFO ExecTask - No task arguments to add&lt;BR /&gt;[Worker-10] 24 Nov 2020 17:29:27,328 INFO ExecTask - Initializing process builder with command list[/opt/appdynamics/machine-agent/monitors/andrei_custom_ext/test.sh]&lt;BR /&gt;[Worker-10] 24 Nov 2020 17:29:27,328 INFO ExecTask - Initializing process builder with enviornment variables {}&lt;BR /&gt;[Worker-10] 24 Nov 2020 17:29:27,328 INFO ExecTask - Running Executable Command [[/opt/appdynamics/machine-agent/monitors/andrei_custom_ext/test.sh]]&lt;BR /&gt;[Worker-10] 24 Nov 2020 17:29:27,333 INFO ExecTask - Forcing stop for Executable Command [[/opt/appdynamics/machine-agent/monitors/andrei_custom_ext/test.sh]]&lt;BR /&gt;[Worker-10] 24 Nov 2020 17:29:27,333 INFO MonitorStreamConsumer - Stopping monitored process&lt;/P&gt;&lt;P&gt;Monitor.xml :&lt;/P&gt;&lt;P&gt;&amp;lt;monitor&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;AndreiTestMonitor&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;type&amp;gt;managed&amp;lt;/type&amp;gt;&lt;BR /&gt;&amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;BR /&gt;&amp;lt;enable-override os-type="solaris"&amp;gt;true&amp;lt;/enable-override&amp;gt;&lt;BR /&gt;&amp;lt;enable-override os-type="sunos"&amp;gt;true&amp;lt;/enable-override&amp;gt;&lt;BR /&gt;&amp;lt;description&amp;gt;Test Andrei CUstom Extension&lt;BR /&gt;&amp;lt;/description&amp;gt;&lt;BR /&gt;&amp;lt;monitor-configuration&amp;gt;&lt;BR /&gt;&amp;lt;/monitor-configuration&amp;gt;&lt;BR /&gt;&amp;lt;monitor-run-task&amp;gt;&lt;BR /&gt;&amp;lt;execution-style&amp;gt;continuous&amp;lt;/execution-style&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;Run&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;type&amp;gt;executable&amp;lt;/type&amp;gt;&lt;BR /&gt;&amp;lt;task-arguments&amp;gt;&lt;BR /&gt;&amp;lt;/task-arguments&amp;gt;&lt;BR /&gt;&amp;lt;executable-task&amp;gt;&lt;BR /&gt;&amp;lt;type&amp;gt;file&amp;lt;/type&amp;gt;&lt;BR /&gt;&amp;lt;file os-type="linux"&amp;gt;test.sh&amp;lt;/file&amp;gt;&lt;BR /&gt;&amp;lt;file os-type="mac"&amp;gt;test.sh&amp;lt;/file&amp;gt;&lt;BR /&gt;&amp;lt;file os-type="windows"&amp;gt;windows-stat.bat&amp;lt;/file&amp;gt;&lt;BR /&gt;&amp;lt;file os-type="solaris"&amp;gt;test.sh&amp;lt;/file&amp;gt;&lt;BR /&gt;&amp;lt;file os-type="sunos"&amp;gt;test.sh&amp;lt;/file&amp;gt;&lt;BR /&gt;&amp;lt;file os-type="aix"&amp;gt;aix-stat.sh&amp;lt;/file&amp;gt;&lt;BR /&gt;&amp;lt;file os-type="z/os"&amp;gt;zos-stat.sh&amp;lt;/file&amp;gt;&lt;BR /&gt;&amp;lt;file os-type="hp-ux"&amp;gt;hpux-stat.sh&amp;lt;/file&amp;gt;&lt;BR /&gt;&amp;lt;/executable-task&amp;gt;&lt;BR /&gt;&amp;lt;/monitor-run-task&amp;gt;&lt;BR /&gt;&amp;lt;/monitor&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 09:16:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Custom-Extension-Not-Reporting/m-p/739696#M11543</guid>
      <dc:creator>Andrei-Dragos_M</dc:creator>
      <dc:date>2020-11-25T09:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Extension Not Reporting...</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Custom-Extension-Not-Reporting/m-p/739697#M11544</link>
      <description>&lt;P&gt;Hello Andrei,&lt;/P&gt;&lt;P&gt;Please review the following documentation to create custom metrics using script.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.appdynamics.com/display/PRO45/Build+a+Monitoring+Extension+Using+Scripts" rel="noreferrer nofollow noopener" target="_blank"&gt;https://docs.appdynamics.com/display/PRO45/Build+a+Monitoring+Extension+Using+Scripts&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 03:08:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Custom-Extension-Not-Reporting/m-p/739697#M11544</guid>
      <dc:creator>Nawaz_Ali_Moha1</dc:creator>
      <dc:date>2021-01-14T03:08:21Z</dc:date>
    </item>
  </channel>
</rss>

