Hi Folks,
I am having some trouble importing XML files that were generated by the OCS Inventory agent. I am using the OCS Inventory web server in order to import it manually (the XML was generated by manually running the agent with /local /xml=path_to_xml).
I think I am having some problems with some additional fields that I am generating through a plugin that I have built. So, when importing the XML, I got an Internal Server Error message (500). So I have removed the parts that my plugin added to the XML file and I was able to import it with no errors.
However, now I am trying to add each new element to the XML at a time so that I may find what is wrong. The problem is that I can no longer import this XML because I always get an Internal Server Error (even when I stick to the XML that once worked). I have turned on OCS debuggin flag (OCS_OPT_LOGLEVEL) and I get the following lines in activity.log whenever I try to import this XML:
- Fri Nov 4 09:01:31 2016;18881;318;MV001534-2016-06-06-17-13-18;127.0.0.1;OCS_local_7009;session;missing
- Fri Nov 4 09:01:31 2016;18881;114;MV001534-2016-06-06-17-13-18;127.0.0.1;OCS_local_7009;inventory;no_session
As far as I was able to understand, OCS tries to find a corresponding row in prolog_conntrack table, but there is no such row. What should I do? The XML query tag is INVENTORY. I saw that in order to have this row in prolog_conntrack, I should import an XML with PROLOG in the query tag... Is it correct? How can I do it? What could have happened?
I would be very pleased to understand the dynamics behind the import action and prolog. Answers may be in english or french!
Thank you very much,
Rafael GuimarĂ£es