<?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 Run only on Linux or Window server in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Run-only-on-Linux-or-Window-server/m-p/197745#M2514</link>
    <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to build a host-only V1 Python plugin that will be distributed as a package to all servers in an environment (Windows &amp;amp; Linux). Unfortunately, due to module/library setups, etc., configuring themselves for just the OS that things are building on I need to split the package into two - a Linux &amp;amp; a Windows version.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Previously, in order to make host-only packages run I've configured&amp;nbsp;&lt;EM&gt;&lt;SPAN&gt;"processTypes"&lt;/SPAN&gt;&lt;SPAN&gt;: [&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;],&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;but I can't really do that in this case - u&lt;/SPAN&gt;nfortunately, both plugin packages will be resident on all hosts so I need Dynatrace to only run the relevant package on the relevant OS type.&lt;/P&gt;
&lt;P&gt;I've tried restricting the plugin execution to have&amp;nbsp;&lt;EM&gt;technologies: ['LINUX_SYSTEM']&amp;nbsp;&lt;/EM&gt;or&amp;nbsp;&lt;EM&gt;technologies:['WINDOWS_SYSTEM']&amp;nbsp;&lt;/EM&gt;however when I do that the plugin will not run at all on either system.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any guidance/examples/thoughts that anyone could offer would be hugely appreciated.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thoughts!??&amp;nbsp;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 15 May 2023 09:59:59 GMT</pubDate>
    <dc:creator>ewoelkerling</dc:creator>
    <dc:date>2023-05-15T09:59:59Z</dc:date>
    <item>
      <title>Run only on Linux or Window server</title>
      <link>https://community.dynatrace.com/t5/Extensions/Run-only-on-Linux-or-Window-server/m-p/197745#M2514</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to build a host-only V1 Python plugin that will be distributed as a package to all servers in an environment (Windows &amp;amp; Linux). Unfortunately, due to module/library setups, etc., configuring themselves for just the OS that things are building on I need to split the package into two - a Linux &amp;amp; a Windows version.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Previously, in order to make host-only packages run I've configured&amp;nbsp;&lt;EM&gt;&lt;SPAN&gt;"processTypes"&lt;/SPAN&gt;&lt;SPAN&gt;: [&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;],&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;but I can't really do that in this case - u&lt;/SPAN&gt;nfortunately, both plugin packages will be resident on all hosts so I need Dynatrace to only run the relevant package on the relevant OS type.&lt;/P&gt;
&lt;P&gt;I've tried restricting the plugin execution to have&amp;nbsp;&lt;EM&gt;technologies: ['LINUX_SYSTEM']&amp;nbsp;&lt;/EM&gt;or&amp;nbsp;&lt;EM&gt;technologies:['WINDOWS_SYSTEM']&amp;nbsp;&lt;/EM&gt;however when I do that the plugin will not run at all on either system.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any guidance/examples/thoughts that anyone could offer would be hugely appreciated.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thoughts!??&amp;nbsp;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 09:59:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Run-only-on-Linux-or-Window-server/m-p/197745#M2514</guid>
      <dc:creator>ewoelkerling</dc:creator>
      <dc:date>2023-05-15T09:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Run only on Linux or Window server</title>
      <link>https://community.dynatrace.com/t5/Extensions/Run-only-on-Linux-or-Window-server/m-p/197746#M2515</link>
      <description>&lt;P&gt;Sorry - I should add - in case people are wondering. &amp;nbsp;The plugin uses the &lt;I&gt;psutil&amp;nbsp;&lt;/I&gt;module in Python - unfortunately when I pip install Psutil it drops in only the libraries relevant for the OS that I'm running on (Linux or Windows) - when I distribute a plugin built this way it will fail on the other operating system (module not found).&lt;/P&gt;
&lt;P&gt;Have tried manually picking up the libraries etc for each OS, dropping them into the python site_packages, and then building but to no avail - I suspect there's some more configuration/linking going on during install of Psutil. &amp;nbsp;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 10:01:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Run-only-on-Linux-or-Window-server/m-p/197746#M2515</guid>
      <dc:creator>ewoelkerling</dc:creator>
      <dc:date>2023-05-15T10:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Run only on Linux or Window server</title>
      <link>https://community.dynatrace.com/t5/Extensions/Run-only-on-Linux-or-Window-server/m-p/212663#M3030</link>
      <description>&lt;P&gt;Instead of splitting it into two extensions, build it on both Windows and on Linux, and then merge the zip files. That’s how we do our cross OS supported extensions on the hub.&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 10:39:17 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Run-only-on-Linux-or-Window-server/m-p/212663#M3030</guid>
      <dc:creator>Mike_L</dc:creator>
      <dc:date>2023-05-19T10:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Run only on Linux or Window server</title>
      <link>https://community.dynatrace.com/t5/Extensions/Run-only-on-Linux-or-Window-server/m-p/228099#M3575</link>
      <description>&lt;P&gt;Thanks Mike - sorry, only just saw this one - appreciated!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 04:34:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Run-only-on-Linux-or-Window-server/m-p/228099#M3575</guid>
      <dc:creator>ewoelkerling</dc:creator>
      <dc:date>2023-11-09T04:34:12Z</dc:date>
    </item>
  </channel>
</rss>

