<?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: OneAgent Generic Command Plugin Extension  - Running commands at the same time in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/OneAgent-generic-command-plugin-extension-running-commands-at/m-p/173136#M1721</link>
    <description>&lt;P&gt;OneAgent extensions are executed every 60 seconds. But it's not aligned to a specific second within the minute. Also if your command (in fact the query(...) method of the plugin takes longer than 60 seconds, next query will be skipped.&lt;BR /&gt;&lt;BR /&gt;You can use some of the metric selector transformations such as &lt;A href="https://www.dynatrace.com/support/help/shortlink/api-metrics-v2-selector#smooth-transformation" target="_self"&gt;smooth&lt;/A&gt;&amp;nbsp;or rate to fight the missing value problem.&lt;BR /&gt;&lt;BR /&gt;Or use native OS scheduling means such as cron to execute the command and push the values using the &lt;A href="https://www.dynatrace.com/support/help/how-to-use-dynatrace/metrics/metric-ingestion/" target="_self"&gt;metric ingestion API&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Sep 2021 04:33:20 GMT</pubDate>
    <dc:creator>Julius_Loman</dc:creator>
    <dc:date>2021-09-30T04:33:20Z</dc:date>
    <item>
      <title>OneAgent generic command plugin extension - running commands at the same time</title>
      <link>https://community.dynatrace.com/t5/Extensions/OneAgent-generic-command-plugin-extension-running-commands-at/m-p/173115#M1720</link>
      <description>&lt;P&gt;We have a OneAgent extension that will run a simple command and ouput a numeric value, we have 1 for good and 0 for bad. This is logged within Dynatrace so that we can create charts around this metric plus a custom event.&lt;/P&gt;
&lt;P&gt;We have the same command running on 4 different hosts and want to create a custom event to alert us for when the value is below 4. The alert would tell us that there is an issue on one of the hosts. The problem we are facing is that the command does not run at the same time on all hosts so when we chart it out we only get a count of 1 rather than 4.&lt;/P&gt;
&lt;P&gt;Is there a way to force this command to run at the same time on all 4 hosts? We can make it happen temporarily but once the agent on a host gets stopped or server rebooted then things will get out of sync. Extension I am referring to is the Generic Command Plugin.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 12:13:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/OneAgent-generic-command-plugin-extension-running-commands-at/m-p/173115#M1720</guid>
      <dc:creator>sivart_89</dc:creator>
      <dc:date>2023-05-18T12:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: OneAgent Generic Command Plugin Extension  - Running commands at the same time</title>
      <link>https://community.dynatrace.com/t5/Extensions/OneAgent-generic-command-plugin-extension-running-commands-at/m-p/173136#M1721</link>
      <description>&lt;P&gt;OneAgent extensions are executed every 60 seconds. But it's not aligned to a specific second within the minute. Also if your command (in fact the query(...) method of the plugin takes longer than 60 seconds, next query will be skipped.&lt;BR /&gt;&lt;BR /&gt;You can use some of the metric selector transformations such as &lt;A href="https://www.dynatrace.com/support/help/shortlink/api-metrics-v2-selector#smooth-transformation" target="_self"&gt;smooth&lt;/A&gt;&amp;nbsp;or rate to fight the missing value problem.&lt;BR /&gt;&lt;BR /&gt;Or use native OS scheduling means such as cron to execute the command and push the values using the &lt;A href="https://www.dynatrace.com/support/help/how-to-use-dynatrace/metrics/metric-ingestion/" target="_self"&gt;metric ingestion API&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 04:33:20 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/OneAgent-generic-command-plugin-extension-running-commands-at/m-p/173136#M1721</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2021-09-30T04:33:20Z</dc:date>
    </item>
  </channel>
</rss>

