<?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 Plugin checking for created file within particular location in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/OneAgent-Plugin-checking-for-created-file-within-particular/m-p/119962#M922</link>
    <description>&lt;P&gt;Hi Dave, no I haven't considered such an option. But how could I configure the push event to Dynatrace when the file exists?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Konstantin&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 02 Jul 2019 10:30:47 GMT</pubDate>
    <dc:creator>Konstantin_Mavr</dc:creator>
    <dc:date>2019-07-02T10:30:47Z</dc:date>
    <item>
      <title>OneAgent Plugin checking for created file within particular location</title>
      <link>https://community.dynatrace.com/t5/Extensions/OneAgent-Plugin-checking-for-created-file-within-particular/m-p/119957#M917</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to develop OneAgent plugin which will monitor paricular file location for any generated files.  Plugin was built under Linux as it will be used on it and succesfully uploaded on DT SaaS.However when a file is generated instead of reporting the mentioned problem, DT just increased the number of monitored hosts.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;  "version": "0.2",&lt;/P&gt;&lt;P&gt;  "name": "custom.python.basic_file_check_linux",&lt;/P&gt;&lt;P&gt;  "type": "python",&lt;/P&gt;&lt;P&gt;  "entity": "HOST",&lt;/P&gt;&lt;P&gt;  "processTypes": [1],&lt;/P&gt;&lt;P&gt;  "source": {&lt;/P&gt;&lt;P&gt;    "package": "basic_file_check_linux",&lt;/P&gt;&lt;P&gt;    "className": "BasicFileCheckLinux",&lt;/P&gt;&lt;P&gt;    "install_requires": [],&lt;/P&gt;&lt;P&gt;    "activation": "Singleton"&lt;/P&gt;&lt;P&gt;  },&lt;/P&gt;&lt;P&gt;  "metrics": [&lt;/P&gt;&lt;P&gt;    {&lt;/P&gt;&lt;P&gt;      "timeseries": {&lt;/P&gt;&lt;P&gt;        "key": "file_exists",&lt;/P&gt;&lt;P&gt;        "unit": "Count",&lt;/P&gt;&lt;P&gt;    "displayname": "File with extension.fail was generated",&lt;/P&gt;&lt;P&gt;    "dimensions": []&lt;/P&gt;&lt;P&gt;      }&lt;/P&gt;&lt;P&gt;    }&lt;/P&gt;&lt;P&gt;  ],&lt;/P&gt;&lt;P&gt;  "configUI": {&lt;/P&gt;&lt;P&gt;    "displayName": "Basic File Existence Check (Linux)"&lt;/P&gt;&lt;P&gt;  },&lt;/P&gt;&lt;P&gt;  "properties": [&lt;/P&gt;&lt;P&gt;    {&lt;/P&gt;&lt;P&gt;      "key": "file_path",&lt;/P&gt;&lt;P&gt;      "type": "String"&lt;/P&gt;&lt;P&gt;    }&lt;/P&gt;&lt;P&gt;  ],&lt;/P&gt;&lt;P&gt;  "alert_settings": [&lt;/P&gt;&lt;P&gt;    {&lt;/P&gt;&lt;P&gt;        "alert_id": "custom_file_exists_check_linux",&lt;/P&gt;&lt;P&gt;        "event_type": "ERROR_EVENT",&lt;/P&gt;&lt;P&gt;        "event_name": "Fail file generated",&lt;/P&gt;&lt;P&gt;        "description": "File with extension .fail was generated within {file_path}",&lt;/P&gt;&lt;P&gt;        "threshold": 1,&lt;/P&gt;&lt;P&gt;        "alert_condition": "ABOVE",&lt;/P&gt;&lt;P&gt;        "samples": 5,&lt;/P&gt;&lt;P&gt;        "violating_samples": 3,&lt;/P&gt;&lt;P&gt;        "dealerting_samples": 5&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;    }&lt;/P&gt;&lt;P&gt;  ]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Alerting settings are minimized as possibly.&lt;/P&gt;&lt;P&gt;Do you have any idea what should be adjusted in order to have the problem reported when the file is generated within the file location?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Konstantin&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Jun 2019 12:26:41 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/OneAgent-Plugin-checking-for-created-file-within-particular/m-p/119957#M917</guid>
      <dc:creator>Konstantin_Mavr</dc:creator>
      <dc:date>2019-06-19T12:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: OneAgent Plugin checking for created file within particular location</title>
      <link>https://community.dynatrace.com/t5/Extensions/OneAgent-Plugin-checking-for-created-file-within-particular/m-p/119958#M918</link>
      <description>&lt;P&gt;Did you tried creating custom threshold via API on this custom metric? &lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://www.dynatrace.com/support/help/shortlink/api-threshold#put-a-threshold-" target="_blank"&gt;https://www.dynatrace.com/support/help/shortlink/api-threshold#put-a-threshold-&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Sebastian &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Jun 2019 14:24:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/OneAgent-Plugin-checking-for-created-file-within-particular/m-p/119958#M918</guid>
      <dc:creator>skrystosik</dc:creator>
      <dc:date>2019-06-19T14:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: OneAgent Plugin checking for created file within particular location</title>
      <link>https://community.dynatrace.com/t5/Extensions/OneAgent-Plugin-checking-for-created-file-within-particular/m-p/119959#M919</link>
      <description>&lt;P&gt;No, I haven't tried to define a custom threshold via the API but what is the idea behind that action?&lt;/P&gt;&lt;P&gt;Also today I received strange error during plugin upload:&lt;/P&gt;&lt;P&gt;The metricGroup field is missing. Since version 1.172, the metric group is an obligatory field. It is used for grouping custom metrics into a hierarchical namespace where various sources, for example multiple plugins, can provide data. Moreover, the metric group becomes a primary part of the metric key, which means that once defined, it must remain the same for the continuity of data. The metric group will also help you find metrics on custom charts. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Where should that MetricGroup be placed - in the Metrics section of plugin.json probably?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Konstantin&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Jun 2019 13:31:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/OneAgent-Plugin-checking-for-created-file-within-particular/m-p/119959#M919</guid>
      <dc:creator>Konstantin_Mavr</dc:creator>
      <dc:date>2019-06-28T13:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: OneAgent Plugin checking for created file within particular location</title>
      <link>https://community.dynatrace.com/t5/Extensions/OneAgent-Plugin-checking-for-created-file-within-particular/m-p/119960#M920</link>
      <description>&lt;P&gt;My idea was threshold on this metrics because without it it will never fire problem I think.&lt;/P&gt;&lt;P&gt;Sebastian &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Jun 2019 13:34:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/OneAgent-Plugin-checking-for-created-file-within-particular/m-p/119960#M920</guid>
      <dc:creator>skrystosik</dc:creator>
      <dc:date>2019-06-28T13:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: OneAgent Plugin checking for created file within particular location</title>
      <link>https://community.dynatrace.com/t5/Extensions/OneAgent-Plugin-checking-for-created-file-within-particular/m-p/119961#M921</link>
      <description>&lt;P&gt;Have you considered just writing a daemon process to watch for the file and push an error event to Dynatrace when it exists?  This way there will be no charge for custom metrics, you can set the interval to whatever makes sense, etc.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Jun 2019 15:50:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/OneAgent-Plugin-checking-for-created-file-within-particular/m-p/119961#M921</guid>
      <dc:creator>dave_mauney</dc:creator>
      <dc:date>2019-06-28T15:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: OneAgent Plugin checking for created file within particular location</title>
      <link>https://community.dynatrace.com/t5/Extensions/OneAgent-Plugin-checking-for-created-file-within-particular/m-p/119962#M922</link>
      <description>&lt;P&gt;Hi Dave, no I haven't considered such an option. But how could I configure the push event to Dynatrace when the file exists?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Konstantin&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Jul 2019 10:30:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/OneAgent-Plugin-checking-for-created-file-within-particular/m-p/119962#M922</guid>
      <dc:creator>Konstantin_Mavr</dc:creator>
      <dc:date>2019-07-02T10:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: OneAgent Plugin checking for created file within particular location</title>
      <link>https://community.dynatrace.com/t5/Extensions/OneAgent-Plugin-checking-for-created-file-within-particular/m-p/119963#M923</link>
      <description>&lt;P&gt;You should be able to send an ERROR_EVENT as documented here: &lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/environment-api/events/post-event/#expand-752authentication"&gt;https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/environment-api/events/post-event/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You would just need to send a description, title and source.&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;dave&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Jul 2019 00:46:13 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/OneAgent-Plugin-checking-for-created-file-within-particular/m-p/119963#M923</guid>
      <dc:creator>dave_mauney</dc:creator>
      <dc:date>2019-07-04T00:46:13Z</dc:date>
    </item>
  </channel>
</rss>

