<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[I-doIT importiert Software die in OCS auf "ignorieren" gesetzt ist]]></title><description><![CDATA[<p dir="auto">Hallo,</p>
<p dir="auto">beim importieren von Linux Maschinen unter der Verwendung von OCS habe ich festgestellt, dass Software-Objekte die auf dem OCS Inventory NG Server Web Frontend (/ocsreports) auf "ignoriert" gesetzt waren trotzdem importiert werden.</p>
<p dir="auto">Dies kann durch folgende Anpassung von <strong>/var/www/idoit/src/classes/components/isys_component_dao_ocs.class.php</strong> gelöst werden.<br />
Wenn Version 1.8.0 (Pro) ist das Problem immer noch vorhanden.</p>
<pre><code>
public function getSoftware($p_hardwareID, $p_snmp = false) {
            if ($p_snmp)
            {
                        $l_query = "SELECT * FROM snmp_softwares WHERE SNMP_ID = " . $this-&gt;convert_sql_id($p_hardwareID);
            }
            else
            {
                        $l_query = "SELECT * FROM hardware " . "INNER JOIN softwares ON softwares.HARDWARE_ID = hardware.ID AND softwares.NAME != '' AND softwares.NAME not in (select dico_ignored.EXTRACTED from dico_ignored) " . "WHERE hardware.ID = " . $this-&gt;convert_sql_id(
                                                $p_hardwareID
                                    ) . " AND hardware.OSNAME != softwares.NAME";
            } // if

            return $this-&gt;retrieve($l_query); }

/**
* Get all applications only from hardware
*
* @return isys_component_dao_result
*/
public function getAllSoftware()
{
            $l_query = "SELECT DISTINCT(softwares.NAME) FROM softwares " . "LEFT JOIN hardware ON hardware.OSNAME = softwares.NAME " . "WHERE hardware.OSNAME IS NULL AND softwares.NAME not in (select dico_ignored.EXTRACTED from dico_ignored)";

            return $this-&gt;retrieve($l_query); }

</code></pre>
<p dir="auto">Wobei konkret folgender Einschub das Problem löst.</p>
<pre><code>
AND softwares.NAME not in (select dico_ignored.EXTRACTED from dico_ignored)

</code></pre>
<p dir="auto">Kann dies eventuell in der folgenden Version berücksichtigt werden?</p>
<p dir="auto">Danke im Voraus.</p>
<p dir="auto">Gruß<br />
Robert</p>
]]></description><link>https://community.i-doit.com/topic/3060/i-doit-importiert-software-die-in-ocs-auf-ignorieren-gesetzt-ist</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 16:34:13 GMT</lastBuildDate><atom:link href="https://community.i-doit.com/topic/3060.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 11 Jan 2017 08:53:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to I-doIT importiert Software die in OCS auf "ignorieren" gesetzt ist on Tue, 24 Jan 2017 08:16:12 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">ist in Version 1.8.3 dann mit "drin". Danke für die Ergänzung!</p>
]]></description><link>https://community.i-doit.com/post/12339</link><guid isPermaLink="true">https://community.i-doit.com/post/12339</guid><dc:creator><![CDATA[dkirsten]]></dc:creator><pubDate>Tue, 24 Jan 2017 08:16:12 GMT</pubDate></item></channel></rss>