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 http://wiki.ocsinventory-ng.org. Read it before asking your question.

Does not pass the computer inventory

0votes
 
I installed ocs inventory on ubuntu 12.04. 
 
Page "ocsreports" available. 
 
An installed agent on Windows XP. 
 
This computer does not appear on the page ocsreports 
 
On Wildows log: 
 
Service encounter error <Failed to load/parse last inventory state>. 
 
On Agent log:
 
==============================================================================
Starting OCS Inventory NG Agent on Wednesday, July 09, 2014 08:43:02.
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 <WS-IT-18-2014-06-25-16-32-24> and MACs <00:50:56:C0:00:0800:50:56:C0:00:0100:80:48:18:B5:7100:1B:FC:9F:61:2E08:00:27:00:DC:47> 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 => Disabling cURL SSL server validation support
COM SERVER => Sending HTTP Post request to URL <http://web.tmp-press.ru/ocsinventory>
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:01.
 
 
Please help!

 

in OCS Inventory NG server for Unix by (250 points)

2 Answers

0 votes
Have you create a physical directory ocsinventory in your web server ? If yes, delete it.
by (22k points)
Thanks for the answer 
 
I did not create the folder ocsinventory
 
I do not even know where it should be. 
 
In ocsinventory-reports.conf are only snmp, download, ocsreports.
 
In the Web browser when you try to open web.tmp-press.ru/ocsinventory I get 404 from another site on the server.
Del del del del del
Look if the file ocsinventory-server.conf exist and if apache call it correctly.
Ocsinventory-server.conf file works fine there. 
 
Alias ??snmp, download, ocsreports work and are available on browser: 
 
/ ocsreports               / usr / share / ocsinventory-reports / ocsreports 
 
/ download                / var / lib / ocsinventory-reports / download 
 
/ snmp                / var / lib / ocsinventory-reports / snmp
0 votes
What versions of Server and Agent are?
by (230 points)

Thanks for the answer!

Server Ver. 2.1.1

Agent Ver. 2.1.1.1

OK.

Check what ocsinventory-server and apache2 logs say.
Directory / var / log / ocsinventory-server is empty. 
 
PerlSetEnv OCS_OPT_LOGLEVEL 1 on z-ocsinventory-server.conf 
 
error.log 
 
DBI connect ('database = ocsweb; host = localhost; port = 3306', 'ocs', ...) failed: Access denied for user 'ocs' @ 'localhost' (using password: YES) at / usr / local / share/perl/5.14.2/Apache/Ocsinventory/Server/System.pm line 175. 
[Wed Jul 09 14:58:45 2014] [error] [client 10.2.13.7] Can't call method "do" on an undefined value at / usr/local/share/perl/5.14.2/Apache/Ocsinventory / Server / System.pm line 177. \ n 
 
This error if Server = http://ip_adress/ocsinventory on ocsinventory.ini 
 
But this is no error if Server = http://web.tmp-press.ru/ocsinventory on ocsinventory.ini
What version of mod_perl is installed?
mod_perl ver. 2.0.5
[Wed Jul 09 14:58:45 2014] [error] [client 10.2.13.7] Can't call method "do" on an undefined value at / usr/local/share/perl/5.14.2/Apache/Ocsinventory / Server / System.pm line 177. \ n
 
This message come when you insert a bad login/password for mysql in ocsinventory-server.conf. Please update the server configuration.
currently I have this issue but when I use login/pass from z-ocsinventory-server.conf on CLI

they work:

# mysql -u user -p dbname

user and dbname (and password) taken from z-ocsinventory-server.conf
 
Powered by Question2Answer
...