Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.8 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

XML has not well formed (invalid token)

I installed OCSinventory agent (2.6.0) onto a CentOS7 machine. It's reporting to an OCS inventory server, version 2.7.0. It fails with this error in the agent logfile:-

"[error] Cannot establish communication : 500 Internal Server Error"

The server has this error in the httpd error file:-

"not well-formed (invalid token) at line 931, column 18"

So, I did a debug run of the OCS agent, and the data around line 931 in the agent's XML file is:-

    <MONITORS>
      <BASE64>AP///////wAe1gcJPTa9ABoNAQJoHhd46mP4nlZMmCQZUFW/74DRQIGAgYqBj6lAqUqpTwEBAAAA
/ABLVk0ARzU2MTAgCiAgAAAA/AAxOTIweDE0NDAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAOk=
</BASE64>
      <CAPTION>KVM^@G5610 1920x1440</CAPTION>
      <DESCRIPTION>26/2003</DESCRIPTION>
      <MANUFACTURER>Unknown manufacturer code GVV</MANUFACTURER>
      <SERIAL>12400189</SERIAL>
    </MONITORS>
I believe the error is because of the ^@ character in the <CAPTION> line. Any ideas how to fix this?

Thank you, Symon
in OCS Inventory NG agent for Unix by (120 points)

1 Answer

0 votes
Hi,

Open an issue at https://github.com/OCSInventory-NG/UnixAgent/issues/new/choose

Post content of apache error_log file.

Regards

Frank
by (79.6k points)
 
Powered by Question2Answer
...