You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2014-07-16 12:14:46

glpi.al
Member
Registered: 2012-10-16
Posts: 78

OCS Plugin: The OCSNG TAG of the computer changed from NA to NA

Hi,
at each OCS sync (auto or manual), in the computers' log history appears the line:

"The OCSNG TAG of the computer changed from NA to NA"

I delete them in DB.
Is it possible to exclude these lines from sync?

Best Regards.

Offline

#2 2014-09-17 09:32:58

giudig
Member
Registered: 2013-03-07
Posts: 5

Re: OCS Plugin: The OCSNG TAG of the computer changed from NA to NA

Hi,

we have found the same issue.
OCS Inventory NG plugin 1.0.2
GLPI 0.84.5

Is it possible to exclude these lines from sync?

Best regards,

Offline

#3 2014-10-26 23:29:00

elliot01
Member
From: England
Registered: 2010-03-23
Posts: 206

Re: OCS Plugin: The OCSNG TAG of the computer changed from NA to NA

Same here. Same crap fills up the logs, day after day:

12218626    25-10-2014 23:30    ocsinventoryng    OCSNG link    The OCSNG TAG of the computer changed from H001123 to H001123
12218104    24-10-2014 23:30    ocsinventoryng    OCSNG link    The OCSNG TAG of the computer changed from H001123 to H001123
12216372    23-10-2014 23:30    ocsinventoryng    OCSNG link    The OCSNG TAG of the computer changed from H001123 to H001123
12215206    22-10-2014 23:30    ocsinventoryng    OCSNG link    The OCSNG TAG of the computer changed from H001123 to H001123
12214062    22-10-2014 04:35    ocsinventoryng    OCSNG link    The OCSNG TAG of the computer changed from H001123 to H001123
12212974    20-10-2014 23:25    ocsinventoryng    OCSNG link    The OCSNG TAG of the computer changed from H001123 to H001123
12211760    19-10-2014 23:25    ocsinventoryng    OCSNG link    The OCSNG TAG of the computer changed from H001123 to H001123
12211296    18-10-2014 23:25    ocsinventoryng    OCSNG link    The OCSNG TAG of the computer changed from H001123 to H001123
12210784    17-10-2014 23:25    ocsinventoryng    OCSNG link    The OCSNG TAG of the computer changed from H001123 to H001123
12209489    16-10-2014 23:20    ocsinventoryng    OCSNG link    The OCSNG TAG of the computer changed from H001123 to H001123
12207923    15-10-2014 23:15    ocsinventoryng    OCSNG link    The OCSNG TAG of the computer changed from H001123 to H001123

1500+ Computers / 1100+ users

Offline

#4 2014-10-28 12:25:27

giudig
Member
Registered: 2013-03-07
Posts: 5

Re: OCS Plugin: The OCSNG TAG of the computer changed from NA to NA

giudig wrote:

Hi,

we have found the same issue.
OCS Inventory NG plugin 1.0.2
GLPI 0.84.5

Is it possible to exclude these lines from sync?

Best regards,

Hi,

we still have the problem after update GLPI (0.84.7) and OCS (2.1.2).

Offline

#5 2014-11-12 14:28:56

elliot01
Member
From: England
Registered: 2010-03-23
Posts: 206

Re: OCS Plugin: The OCSNG TAG of the computer changed from NA to NA

We still have this issue with OCS Inventory NG plugin v1.03:

"
...
12236178    10-11-2014 22:50    ocsinventoryng    OCSNG link    The OCSNG TAG of the computer changed from H001123 to H001123
12234672    09-11-2014 22:50    ocsinventoryng    OCSNG link    The OCSNG TAG of the computer changed from H001123 to H001123
12234108    08-11-2014 22:45    ocsinventoryng    OCSNG link    The OCSNG TAG of the computer changed from H001123 to H001123
12233673    07-11-2014 22:45    ocsinventoryng    OCSNG link    The OCSNG TAG of the computer changed from H001123 to H001123
12232545    06-11-2014 22:45    ocsinventoryng    OCSNG link    The OCSNG TAG of the computer changed from H001123 to H001123
12231253    05-11-2014 22:45    ocsinventoryng    OCSNG link    The OCSNG TAG of the computer changed from H001123 to H001123
12230260    04-11-2014 22:40    ocsinventoryng    OCSNG link    The OCSNG TAG of the computer changed from H001123 to H001123
...
"


1500+ Computers / 1100+ users

Offline

#6 2014-11-17 03:47:06

stevedanial
Member
Registered: 2014-11-16
Posts: 1

Re: OCS Plugin: The OCSNG TAG of the computer changed from NA to NA

Exemples of OCS Inventory NG plugins
Plugins Windows
Microsoft Office Key retrieve
HP Servers - ILO and RAID informations
Retrieve Internet Explorer proxy settings
Retrieve information from a text file of a specific software
Retrieve information of a specific software stored
Take control of remote computers with TeamViewer
Retrieve Windows services
Retrieve Windows Users
Retrieve Shared Folders

Offline

#7 2015-06-22 12:38:51

giudig
Member
Registered: 2013-03-07
Posts: 5

Re: OCS Plugin: The OCSNG TAG of the computer changed from NA to NA

Anyone solve this issue?
Sill present also in lpi 0.84.8 and glpi-ocsinventory-plugin 1.0.3

Maybe someone test this in 0.85 branch?

Offline

#8 2015-06-22 12:48:15

glpi.al
Member
Registered: 2012-10-16
Posts: 78

Re: OCS Plugin: The OCSNG TAG of the computer changed from NA to NA

In 0.85.4 it seems resolved. I don't find them.
I will monitor.

Offline

#9 2015-07-09 15:41:34

Darkeyes
Member
Registered: 2015-06-18
Posts: 3

Re: OCS Plugin: The OCSNG TAG of the computer changed from NA to NA

Hi

At this French link,   http://forum.glpi-project.org/viewtopic.php?id=34593  the people find a solution to fix that:

I'm French and try to translate :

This example is for 1.0.3 plugin, used with GLIP 0.84:

You need to edit the config file :
plugins/ocsinventoryng/inc/ocsserver.class.php

After the line 5263 ( $data_ocs = Toolbox::addslashes_deep($PluginOcsinventoryngDBocs->fetch_array($result_ocs));)
Insert:
/**
     * 2014-01-14 MC
     * On verifie que le TAG OCS a change
**/
if ($data_ocs["TAG"] != $line_links["tag"]){

close the "if" with "}" juste after this " if ($DB->query($query)){".

Example:
5262   if ($PluginOcsinventoryngDBocs->numrows($result_ocs) == 1){
5263          $data_ocs = Toolbox::addslashes_deep($PluginOcsinventoryngDBocs->fetch_array($result_ocs));
5264
5265          /**
5266           * 2014-01-14 MC
5267           * On verifie que le TAG OCS a change
5268           **/
5269          if ($data_ocs["TAG"] != $line_links["tag"]){
5270
5271          $query = "UPDATE `glpi_plugin_ocsinventoryng_ocslinks`
5272                    SET `tag` = '" . $data_ocs["TAG"] . "'
5273                    WHERE `id` = '" . $line_links["id"] . "'";
5274
5275             if ($DB->query($query)){
5276                $changes[0] = '0';
5277                $changes[1] = $line_links["tag"];
5278                $changes[2] = $data_ocs["TAG"];
5279
5280                PluginOcsinventoryngOcslink::history($line_links["computers_id"], $changes,
5281                                                  PluginOcsinventoryngOcslink::HISTORY_OCS_TAGCHANGED);
5282                return $data_ocs["TAG"];
5283             }
5284          }
5285   }


This fix work good for me wink

Last edited by Darkeyes (2015-07-09 15:42:58)

Offline

Board footer

Powered by FluxBB