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.

OCS Inventory don't save any computer [closed]

Hello.

My computers are not added to the database but according to the log everything is well. I took months trying to run OCS Inventory for an academic project and have not been successful. I have often installed the server and client. I followed all instructions and I have read many of the answers in this forum to make it work, but whatever I do, I do not get to save a computer in the database. What am I doing wrong? The presentation of my project is in two weeks and not get it to work. I'm desperate. Help me, please.

The log show a good connection but don't send the data to the server.

Test clients: Windows XP & Windows 7

Agent: OCSNG-Windows-Agent-2.1.1.1 in Windows 7 and OCSNG-Windows-Agent-2.0.5 in Windows XP, but I tried various combinations of versions.

Server: Actually Lubuntu 15.10 but same problem with: Ubuntu server 14.04, 15.04, 15.10, Ubuntu Desktop 14.04, 15.04, 15.10. Static IP: 192.168.0.83

All computers are virtual machines bridged in a same network and they can ping each other.

apache2 (default port: 80) with MySQL 5.6

OCS Inventory version: Actually 2.2, but I try too previous versions with same result.

The OCSInventory.xml is successful generated when I run manually "Run OCSInventory NG Agent now", but nothing appear in the server.

 

OCSInventory.log (Windows XP)

Starting OCS Inventory NG Agent on Saturday, March 12, 2016 12:16:14.
AGENT => Running OCS Inventory NG Agent Version 2.0.5.0
AGENT => Using OCS Inventory NG FrameWork Version 2.0.5.0
AGENT => Loading plug-in(s)
    DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Archivos de programa\OCS Inventory Agent\plugins>
    DLL PLUGIN => 0 DLL Plug-in(s) succesfully loaded on 0 DLL(s) found
AGENT => Using network connection with Communication Server
    COM PROVIDER => Loading Communication Provider <C:\Archivos de programa\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.0.5.0>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <EQ-001-2016-03-12-12-11-46> and MACs <08:00:27:32:AD:A4> in file <ocsinventory.dat>
    COM SERVER => Initializing cURL library for sendRequest
    COM SERVER => Using cURL without server authentication
    COM SERVER => Disabling cURL proxy support
    COM SERVER => Enabling cURL SSL server validation support using CA Bundle <C:\Documents and Settings\All Users\Datos de programa\OCS Inventory NG\Agent\cacert.pem>
    COM SERVER => Sending HTTP Post request to URL <http://192.168.0.83/ocsreports>
    COM SERVER => HTTP Post response received <HTTP Status Code #200>
    COM SERVER => Cleaning cURL library
AGENT => Prolog successfully sent
SUPPORT => No support detected, Registration key : N/A
    AGENT => Prolog Frequency set to 10 hour(s)
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

 

OCSInventory.log (Windows 7)

Starting OCS Inventory NG Agent on Saturday, March 12, 2016 11:50:41.
AGENT => Running OCS Inventory NG Agent Version 2.1.1.1
AGENT => Using OCS Inventory NG FrameWork Version 2.1.1.1
AGENT => Loading plug-in(s)
    DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files\OCS Inventory Agent\plugins>
    DLL PLUGIN => 0 DLL Plug-in(s) succesfully loaded on 0 DLL(s) found
AGENT => Using network connection with Communication Server
    COM PROVIDER => Loading Communication Provider <C:\Program Files\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.1>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <EQ-01-2016-03-12-11-50-31> and MACs <08:00:27:72:7B:F5> in file <ocsinventory.dat>
    COM SERVER => Initializing cURL library for sendRequest
    COM SERVER => Using cURL with server authentication
    COM SERVER => Disabling cURL proxy support
    COM SERVER => Disabling cURL SSL server validation support
    COM SERVER => Sending HTTP Post request to URL <http://192.168.0.83/ocsreports>
    COM SERVER => HTTP Post response received <HTTP Status Code #200>
    COM SERVER => Cleaning cURL library
AGENT => Prolog successfully sent
SUPPORT => No support detected, Registration key : N/A
    AGENT => Prolog Frequency set to 10 hour(s)
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

 

apache2 error.log

sysadmin@INVENTARIO:~$ sudo tail -f /var/log/apache2/error.log
[sudo] password for sysadmin: 
ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable
[Sat Mar 12 10:22:22.295577 2016] [mpm_prefork:notice] [pid 7696] AH00163: Apache/2.4.12 (Ubuntu) mod_perl/2.0.9 Perl/v5.20.2 configured -- resuming normal operations
[Sat Mar 12 10:22:22.295591 2016] [core:notice] [pid 7696] AH00094: Command line: '/usr/sbin/apache2'

 

I read in another answer in this forum that the problem of SOAP :: Transport :: HTTP * was not very relevant in case you want to perform a normal inventory.

I'm sorry for my english, itsn't my native language.

closed with the note: SOLVED! ;)
in OCS Inventory NG server for Unix by (160 points)
closed by

1 Answer

0 votes

Solved.

In the field Server URL I thought I had to write http://192.168.0.83/ocsreports like in browser, but had to write http://192.168.0.83/ocsinventory

I am ashamed, but thanks to this fail I learned a lot about OCS Inventory and Perl. We must see the positive side of things. Greetings to everybody and I hope this helps other people.

:)

by (160 points)
 
Powered by Question2Answer
...