<?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 How to develop a remote OneAgent plugin retrieving an Oracle database metrics? in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/How-to-develop-a-remote-OneAgent-plugin-retrieving-an-Oracle/m-p/126959#M1311</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am developing a oneagent remote plugin which has to be installed on ActiveGate.&lt;/P&gt;
&lt;P&gt;I have to retrieve some information from an oracle database whom the host is not monitored by OneAgent :&lt;/P&gt;
&lt;P&gt;SELECT name, free_mb, total_mb, (free_mb/total_mb)*100, FROM v$asm_diskgroup;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Firstly, I would like to know what kind entity, metric group to choose in this case :&lt;/P&gt;
&lt;P&gt;"entity": "CUSTOM_DEVICE",&lt;/P&gt;
&lt;P&gt;"metricGroup": "tech.ORACLE_METRICS",&lt;/P&gt;
&lt;P&gt;"technologies": "ORACLE_DB",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Secondly,&lt;/P&gt;
&lt;P&gt;Did I need to make a &lt;STRONG&gt;find_single_process_group&lt;/STRONG&gt; call ?&lt;/P&gt;
&lt;P&gt;(ie: pgi = self.find_single_process_group(pgi_name(attached_process))&lt;/P&gt;
&lt;P&gt;pgi_id = pgi.group_instance_id)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Indeed, I am not looking into a particular process. If the answer is yes, is the display method&lt;/P&gt;
&lt;P&gt;self.results_builder.absolute(key=key_metrics, value=asm_rate, entity_id=ruxit.api.selectors.EntityType.&lt;U&gt;&lt;STRONG&gt;CUSTOM_DEVICE&lt;/STRONG&gt;&lt;/U&gt;)&lt;/P&gt;
&lt;P&gt;Will be OK?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Fousseyni B.&lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2023 14:21:50 GMT</pubDate>
    <dc:creator>fousseyni_bouar</dc:creator>
    <dc:date>2023-05-18T14:21:50Z</dc:date>
    <item>
      <title>How to develop a remote OneAgent plugin retrieving an Oracle database metrics?</title>
      <link>https://community.dynatrace.com/t5/Extensions/How-to-develop-a-remote-OneAgent-plugin-retrieving-an-Oracle/m-p/126959#M1311</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am developing a oneagent remote plugin which has to be installed on ActiveGate.&lt;/P&gt;
&lt;P&gt;I have to retrieve some information from an oracle database whom the host is not monitored by OneAgent :&lt;/P&gt;
&lt;P&gt;SELECT name, free_mb, total_mb, (free_mb/total_mb)*100, FROM v$asm_diskgroup;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Firstly, I would like to know what kind entity, metric group to choose in this case :&lt;/P&gt;
&lt;P&gt;"entity": "CUSTOM_DEVICE",&lt;/P&gt;
&lt;P&gt;"metricGroup": "tech.ORACLE_METRICS",&lt;/P&gt;
&lt;P&gt;"technologies": "ORACLE_DB",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Secondly,&lt;/P&gt;
&lt;P&gt;Did I need to make a &lt;STRONG&gt;find_single_process_group&lt;/STRONG&gt; call ?&lt;/P&gt;
&lt;P&gt;(ie: pgi = self.find_single_process_group(pgi_name(attached_process))&lt;/P&gt;
&lt;P&gt;pgi_id = pgi.group_instance_id)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Indeed, I am not looking into a particular process. If the answer is yes, is the display method&lt;/P&gt;
&lt;P&gt;self.results_builder.absolute(key=key_metrics, value=asm_rate, entity_id=ruxit.api.selectors.EntityType.&lt;U&gt;&lt;STRONG&gt;CUSTOM_DEVICE&lt;/STRONG&gt;&lt;/U&gt;)&lt;/P&gt;
&lt;P&gt;Will be OK?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Fousseyni B.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 14:21:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/How-to-develop-a-remote-OneAgent-plugin-retrieving-an-Oracle/m-p/126959#M1311</guid>
      <dc:creator>fousseyni_bouar</dc:creator>
      <dc:date>2023-05-18T14:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a remote oneagent plugin retrieving an Oracle database metrics ?</title>
      <link>https://community.dynatrace.com/t5/Extensions/How-to-develop-a-remote-OneAgent-plugin-retrieving-an-Oracle/m-p/126960#M1312</link>
      <description>&lt;P&gt;Hi Fousseyni,&lt;/P&gt;&lt;P&gt;Yes, you most likely will want to create a "custom device" entity and post the metric there. The metric group you have posted should work as well.&lt;/P&gt;&lt;P&gt;For your second point I am not entirely sure I would need to research the custom ActiveGate plugins a bit more since I have not looked in a while. If I get a chance I will try to follow up again.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-Dallas&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Jan 2020 19:36:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/How-to-develop-a-remote-OneAgent-plugin-retrieving-an-Oracle/m-p/126960#M1312</guid>
      <dc:creator>Dallas</dc:creator>
      <dc:date>2020-01-27T19:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a remote oneagent plugin retrieving an Oracle database metrics ?</title>
      <link>https://community.dynatrace.com/t5/Extensions/How-to-develop-a-remote-OneAgent-plugin-retrieving-an-Oracle/m-p/126961#M1313</link>
      <description>&lt;P&gt;Hello Dallas,&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Fousseyni B.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Jan 2020 07:59:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/How-to-develop-a-remote-OneAgent-plugin-retrieving-an-Oracle/m-p/126961#M1313</guid>
      <dc:creator>fousseyni_bouar</dc:creator>
      <dc:date>2020-01-28T07:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a remote oneagent plugin retrieving an Oracle database metrics ?</title>
      <link>https://community.dynatrace.com/t5/Extensions/How-to-develop-a-remote-OneAgent-plugin-retrieving-an-Oracle/m-p/126962#M1314</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I try to build my remote agent plugin on my computer. It failed due to CUSTOM_DEVICE.&lt;/P&gt;&lt;P&gt;Here is the output of the command oneagent_build_plugin --no-upload :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;File: /etc/init.d/dynatracefunctions not found&lt;BR /&gt;Arguments=Namespace(deployment_dir=None, no_cert_ver=False, no_upload=True, plugin_dir='/Users/leanovia/Downloads/Dynatrace/plugin', server=None, token=None, token_file=None, verbose=False)&lt;BR /&gt;Starting oneagent_build_plugin&lt;BR /&gt;Checking plugin metadata: /Users/leanovia/Downloads/Dynatrace/plugin/plugin.json&lt;BR /&gt;Validating plugin.json against schema&lt;BR /&gt;Validating plugin.json failed, details: 'CUSTOM_DEVICE' is not one of ['HOST', 'PROCESS_GROUP_INSTANCE']&lt;BR /&gt;&lt;BR /&gt;Failed validating 'enum' in schema['properties']['entity']:&lt;BR /&gt;    {'description': 'Entity type upon which the plugin is activated',&lt;BR /&gt;     'enum': ['HOST', 'PROCESS_GROUP_INSTANCE'],&lt;BR /&gt;     'type': 'string'}&lt;BR /&gt;&lt;BR /&gt;On instance['entity']:&lt;BR /&gt;    'CUSTOM_DEVICE'&lt;BR /&gt;Error occured: 'CUSTOM_DEVICE' is not one of ['HOST', 'PROCESS_GROUP_INSTANCE']&lt;BR /&gt;&lt;BR /&gt;Failed validating 'enum' in schema['properties']['entity']:&lt;BR /&gt;    {'description': 'Entity type upon which the plugin is activated',&lt;BR /&gt;     'enum': ['HOST', 'PROCESS_GROUP_INSTANCE'],&lt;BR /&gt;     'type': 'string'}&lt;BR /&gt;&lt;BR /&gt;On instance['entity']:&lt;BR /&gt;    'CUSTOM_DEVICE'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here is the content of my plugin.json file :&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;    "name": "custom.python.oracle.plugin",&lt;/P&gt;&lt;P&gt;    "version": "1.0",&lt;/P&gt;&lt;P&gt;    "type": "python",&lt;/P&gt;&lt;P&gt;    "entity": "CUSTOM_DEVICE",&lt;/P&gt;&lt;P&gt;    "metricGroup": "tech.ORACLE_METRICS",&lt;/P&gt;&lt;P&gt;    "technologies": "ORACLE_DB",&lt;/P&gt;&lt;P&gt;    "source": {&lt;/P&gt;&lt;P&gt;        "package": "oracle_active_plugin",&lt;/P&gt;&lt;P&gt;        "className": "RemoteOraclePlugin",&lt;/P&gt;&lt;P&gt;        "install_requires": [&lt;/P&gt;&lt;P&gt;            "cx-Oracle&amp;gt;=7.2.3"&lt;/P&gt;&lt;P&gt;        ],&lt;/P&gt;&lt;P&gt;        "activation": "Remote"&lt;/P&gt;&lt;P&gt;    },&lt;/P&gt;&lt;P&gt;    "ui": {&lt;/P&gt;&lt;P&gt;        "keymetrics": [{&lt;/P&gt;&lt;P&gt;            "key": "databases_asm_disk_usage",&lt;/P&gt;&lt;P&gt;            "displayname": "% ASM Usage"&lt;/P&gt;&lt;P&gt;        }],&lt;/P&gt;&lt;P&gt;        "keycharts": [{&lt;/P&gt;&lt;P&gt;            "group": "Disk Usage",&lt;/P&gt;&lt;P&gt;            "title": "Total Disk Usage",&lt;/P&gt;&lt;P&gt;            "series": [{&lt;/P&gt;&lt;P&gt;                "key": "databases_asm_disk_usage",&lt;/P&gt;&lt;P&gt;                "displayname": "ASM Disk Usage",&lt;/P&gt;&lt;P&gt;                "seriestype": "area",&lt;/P&gt;&lt;P&gt;                "color": "#74cff7"&lt;/P&gt;&lt;P&gt;            }]&lt;/P&gt;&lt;P&gt;        }]&lt;/P&gt;&lt;P&gt;    },&lt;/P&gt;&lt;P&gt;    "metrics": [{&lt;/P&gt;&lt;P&gt;        "timeseries": {&lt;/P&gt;&lt;P&gt;            "key": "databases_asm_disk_usage",&lt;/P&gt;&lt;P&gt;            "unit": "Count",&lt;/P&gt;&lt;P&gt;            "displayname": "% ASM Disk Usage"&lt;/P&gt;&lt;P&gt;        }&lt;/P&gt;&lt;P&gt;    }],&lt;/P&gt;&lt;P&gt;    "properties": [{&lt;/P&gt;&lt;P&gt;            "key": "oracle_host",&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;            "key": "oracle_port",&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;            "key": "oracle_service",&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;            "key": "oracle_user",&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;            "key": "oracle_password",&lt;/P&gt;&lt;P&gt;            "type": "Password"&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": "Oracle Connection Paramter",&lt;/P&gt;&lt;P&gt;        "properties": [{&lt;/P&gt;&lt;P&gt;                "key": "oracle_host",&lt;/P&gt;&lt;P&gt;                "displayName": "Oracle host",&lt;/P&gt;&lt;P&gt;                "displayOrder": 1&lt;/P&gt;&lt;P&gt;            },&lt;/P&gt;&lt;P&gt;            {&lt;/P&gt;&lt;P&gt;                "key": "oracle_port",&lt;/P&gt;&lt;P&gt;                "displayName": "Oracle port",&lt;/P&gt;&lt;P&gt;                "displayOrder": 2&lt;/P&gt;&lt;P&gt;            },&lt;/P&gt;&lt;P&gt;            {&lt;/P&gt;&lt;P&gt;                "key": "oracle_service",&lt;/P&gt;&lt;P&gt;                "displayName": "Oracle service SID ",&lt;/P&gt;&lt;P&gt;                "displayOrder": 3&lt;/P&gt;&lt;P&gt;            },&lt;/P&gt;&lt;P&gt;            {&lt;/P&gt;&lt;P&gt;                "key": "oracle_user",&lt;/P&gt;&lt;P&gt;                "displayName": "Oracle username",&lt;/P&gt;&lt;P&gt;                "displayOrder": 4&lt;/P&gt;&lt;P&gt;            },&lt;/P&gt;&lt;P&gt;            {&lt;/P&gt;&lt;P&gt;                "key": "oracle_password",&lt;/P&gt;&lt;P&gt;                "displayName": "Oracle password",&lt;/P&gt;&lt;P&gt;                "displayOrder": 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;Best Regards,&lt;/P&gt;&lt;P&gt;Fousseyni B.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Jan 2020 09:11:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/How-to-develop-a-remote-OneAgent-plugin-retrieving-an-Oracle/m-p/126962#M1314</guid>
      <dc:creator>fousseyni_bouar</dc:creator>
      <dc:date>2020-01-28T09:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a remote oneagent plugin retrieving an Oracle database metrics ?</title>
      <link>https://community.dynatrace.com/t5/Extensions/How-to-develop-a-remote-OneAgent-plugin-retrieving-an-Oracle/m-p/126963#M1315</link>
      <description>&lt;P&gt;It's treating the plugin as a OneAgent plugin due to your naming convention of the name property. Remote plugins needs to have the name: custom.remote.python.[yourname]&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Jan 2020 10:29:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/How-to-develop-a-remote-OneAgent-plugin-retrieving-an-Oracle/m-p/126963#M1315</guid>
      <dc:creator>Mike_L</dc:creator>
      <dc:date>2020-01-28T10:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a remote oneagent plugin retrieving an Oracle database metrics ?</title>
      <link>https://community.dynatrace.com/t5/Extensions/How-to-develop-a-remote-OneAgent-plugin-retrieving-an-Oracle/m-p/126964#M1316</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;In the plugin SDK there is an examples folder, if you start with the "demo_activegate_plugin" in there it will be much easier to create the plugin.&lt;/P&gt;&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Jan 2020 10:30:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/How-to-develop-a-remote-OneAgent-plugin-retrieving-an-Oracle/m-p/126964#M1316</guid>
      <dc:creator>Mike_L</dc:creator>
      <dc:date>2020-01-28T10:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a remote oneagent plugin retrieving an Oracle database metrics ?</title>
      <link>https://community.dynatrace.com/t5/Extensions/How-to-develop-a-remote-OneAgent-plugin-retrieving-an-Oracle/m-p/126965#M1317</link>
      <description>&lt;P&gt;Hello Michael L,&lt;/P&gt;&lt;P&gt;Thanks to your response, the error has disappeared.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Fousseyni B.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Jan 2020 13:33:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/How-to-develop-a-remote-OneAgent-plugin-retrieving-an-Oracle/m-p/126965#M1317</guid>
      <dc:creator>fousseyni_bouar</dc:creator>
      <dc:date>2020-01-28T13:33:51Z</dc:date>
    </item>
  </channel>
</rss>

