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.12.3 available

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

Ocs inventory 2.2 can't send plugin data on database

Hi,

I have OCS Inventory server 2.2 on linux Centos 6.6 machine with client Window platform

I have installed and deployment the "uptime" plugin , but after running  inventory the agent can't send data on DB database.

Can you help me ?

Thanks

Regards

Pier
in OCS Inventory NG server for Unix by (140 points)

2 Answers

0 votes
Hi,

Have you some errors in ocsinventory.log file (Windows) and in error_log file oof Apache on your ocs server?

Regards

Frank
by (90.2k points)
Hi,

I have the same problem, when i install a plugin, and make an inventory, plugin data are not send to the database.

But if i modify /usr/local/share/perl/5.20.2/Apache/Ocsinventory/Map.pm with the informations find in the plugin folder APACHE/Map.pm. The data are write in the database.

Quentin
0 votes
Same or similar problem for me. If I enable logs on the server and on mysqld. I see nothing getting inserted in "uptime" table. Nothing about "uptime" in the ocsinventory log:

OCS-NG_WINDOWS_AGENT_v2.1.1.3;prolog;accepted
OCS-NG_WINDOWS_AGENT_v2.1.1.3;session;started
OCS-NG_WINDOWS_AGENT_v2.1.1.3;session;found
OCS-NG_WINDOWS_AGENT_v2.1.1.3;inventory;incoming
OCS-NG_WINDOWS_AGENT_v2.1.1.3;inventory;u:winusers
OCS-NG_WINDOWS_AGENT_v2.1.1.3;inventory;u:drives
OCS-NG_WINDOWS_AGENT_v2.1.1.3;inventory;u:securitycenter
OCS-NG_WINDOWS_AGENT_v2.1.1.3;session;end
OCS-NG_WINDOWS_AGENT_v2.1.1.3;inventory;transmitted

But if I enable to log each inventory in xml file on the server, I can see that the uptime plugin run successfully and stored data in it:

<UPTIME>
<TIME>0 Days, 23 Hours, 34 Minutes</TIME>
</UPTIME>

Is there another place where I can check log files to find the reason why it is not being inserted in mysqld?

Thanks

Patrick
by (240 points)
In my case I had to write the output of my vbscript in XML, otherwise it was not inserted:

Sub writeXML(uptime)
  Wscript.Echo _
  "<UPTIME>" & vbNewLine & _
  "<TIME>"& uptime & "</TIME>" & vbNewLine & _
  "</UPTIME>"
End Sub
 
Powered by Question2Answer
...