Quantcast
Channel: Ocsinventory Q&A - Recent questions
Viewing all 4398 articles
Browse latest View live

Clients does not contact the OCS server

$
0
0
Good morning, some computers not contacted the OCS server.

this computer is recorded only when you install the Agent.

I Attach the log file

==============================================================================
Starting OCS Inventory NG Agent on Friday, May 27, 2016 14:50:00.
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 (x86)\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 (x86)\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 <NI75958-2016-05-27-11-45-35> and MACs <90:xx:xx:xx:xx:xx> 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:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
    COM SERVER => Sending HTTP Post request to URL <https://xxxxxx/ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #200>
    COM SERVER => Cleaning cURL library
================= TRACE START ===============
<?xml version='1.0' encoding='UTF-8'?>
<REPLY>
  <OPTION>
    <NAME>REGISTRY</NAME>
    <PARAM NAME="Java Version W7" REGKEY="SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment" REGTREE="2">CurrentVersion</PARAM>
    <PARAM NAME="Java Version XP" REGKEY="SOFTWARE\JavaSoft\Java Runtime Environment" REGTREE="2">CurrentVersion</PARAM>
    <PARAM NAME="SvcHost" REGKEY="SOFTWARE\Microsoft\Windows NT\CurrentVersion\svchost" REGTREE="2">netsvcs</PARAM>
    <PARAM NAME="VNC_Accept" REGKEY="SOFTWARE\VNC" REGTREE="2">Install</PARAM>
  </OPTION>
  <OPTION>
    <NAME>DOWNLOAD</NAME>
    <PARAM FRAG_LATENCY="10" PERIOD_LATENCY="1" ON="1" TYPE="CONF" CYCLE_LATENCY="60" TIMEOUT="30" PERIOD_LENGTH="10" EXECUTION_TIMEOUT="120" />
  </OPTION>
  <RESPONSE>STOP</RESPONSE>
  <PROLOG_FREQ>1</PROLOG_FREQ>
</REPLY>

================= TRACE STOP ===============
AGENT => Prolog successfully sent
SUPPORT => No support detected, Registration key : N/A
ERROR *** AGENT => Failed to write Prolog Frequency <Error code 5 = Accesso negato.  >
AGENT =>  Communication Server ask for Package Download
    DOWNLOAD => Package history file cleaning not required
DOWNLOAD => Download and setup tool successfully started
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

Thank you very much!

An error appears when I upgrade OCS server from version 2.1.1 to 2.2

$
0
0
When I begin upgrading OCS server from version 2.1.1 to 2.2 by running "setup.sh" script in the new server package, & after answering the prompted questions, an error appears to me:

==================================================================================

ERROR from evaluation of /OCSNG_UNIX_SERVER-2.2/OCSNG_UNIX_SERVER-2.2/Apache/PaxHeaders.9556/Makefile.PL: syntax error at ./Makefile.PL line 1, near "30 mtime"
Warning: Prerequisites too old ! Do you wish to continue (y/[n])?

==================================================================================

when I press 'y' for Yes, it continues then abords upgrading and displaying this error:

==================================================================================

*** ERROR: Prepare failed, please look at error in /OCSNG_UNIX_SERVER-2.2/OCSNG_UNIX_SERVER-2.2/ocs_server_setup.log and fix !

==================================================================================

when I open the mentioned log file (/OCSNG_UNIX_SERVER-2.2/OCSNG_UNIX_SERVER-2.2/ocs_server_setup.log), I find the error:

=================================================================================

make: *** No targets specified and no makefile found.  Stop.   

=================================================================================

How can I solve this error to upgrade the OCSNG server ?

Computers disappear from OCS Reports + Windows Agent communication error

$
0
0

Hello all.

I have a weird issue with Windows Agent.

[Configuration] We have in an Active Directory :

- an OCS Server 2.1.2 installed with xampp on a Windows Server 2012 R2 ;

- OCS Windows Agent 2.1.1.1 (also tried with Agent 2.1.1.3 with no change about the problem), installed as a Windows service, on many clients workstations with Windows XP, 7 and 10 Professional.

Deployment was lastly made by OCSNG Agent Deploy Tool 2.1.0.2, with success.

[Problem] Inventory doesn't work for several computers, whatever they have Windows 7 or 10, 32 or 64 bits.

They don't appear in the OCS Reports console as inventoried. Yet I see them in ipdiscover as non identified devices.

The strange thing is that computer appear in Reports after the deployment, with the /NOW option.

And I can make them appear, starting manually OCSInventory.exe on the machine.

But these computers disappear from OCS Reports if we launch the console like 1 hour or 2 hours, sometimes more, after that. And they never come back in the inventoried, even 1 week later.

[Debug] I found in the Windows log the error :

Event 20, OCS Inventory Service

Service encounter error <OCS Inventory NG Agent encounter an error (exit code is 4 => Failed to talk with Communication Server)>.

But it doesn't explain why inventory works when the agent is started manually?

***** ocsinventory.ini from a machine concerned :

[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=1
Local=
NoSoftware=0
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=http://myserver/ocsinventory
SSL=1
CaBundle=cacert.pem
AuthRequired=0
User=
Pwd=
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
[OCS Inventory Service]
PROLOG_FREQ=24
OLD_PROLOG_FREQ=24
TTO_WAIT=65580

***** OCSInventory.log from the same machine :

==============================================================================
Starting OCS Inventory NG Agent on Monday, May 30, 2016 13:44:27.
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 <U2W71SPAREUCR1-2014-12-17-17-26-02> and MACs <00:1A:D4:02:7F:7E> 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:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
 COM SERVER => Sending HTTP Post request to URL <http://myserver/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 24 hour(s)
AGENT => Inventory required
AGENT => Launching hardware and software checks
 INVENTORY => Loading Download history
 (...)
 INVENTORY => Reading last inventory state
 EXECUTABLE PLUGIN => Searching for VBS script(s) in folder <C:\Program Files\OCS Inventory Agent\plugins>
 EXECUTABLE PLUGIN => Searching for executable(s) in folder <C:\Program Files\OCS Inventory Agent\plugins>
AGENT => Sending Inventory
 INVENTORY => Checking last inventory state
 INVENTORY => Logical drives inventory state changed
INVENTORY => Inventory changed since last run
 INVENTORY => Generating XML document with Device properties
(...)
 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:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
 COM SERVER => Sending HTTP Post request to URL <http://cft-glpi-ocs/ocsinventory>
 COM SERVER => HTTP Post response received <HTTP Status Code #200>
 COM SERVER => Cleaning cURL library
ADMIN INFOS => Couple ( TAG <=> NA ) added to configuration file
AGENT => Inventory successfully sent
 INVENTORY => Writing new inventory state
AGENT =>  Communication Server ask for Package Download
 DOWNLOAD => Found OCS Inventory Agent Setup result file <C:\ProgramData\OCS Inventory NG\Agent\download\OCSNG-Windows-Agent-Setup_done>
ERROR *** DOWNLOAD => Found result code <SUCCESS> for OCS Inventory Agent Setup package but no package ID specified, so remove all packages to avoid running Agent setup in loop !
 DOWNLOAD => Package history file successfully cleaned for duplicate IDs
 DOWNLOAD => Download disabled by server
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:44.

***** Apache error.log :

There is nothing recent except this looping error all the time (previous answer said that was quite normal about Apache : http://ask.ocsinventory-ng.org/3336/error-error-log ) :

Issuing rollback() due to DESTROY without explicit disconnect() of DBD::mysql::db handle database=ocsweb;host=localhost;port=3306 at C:/xampp/perl/site/lib/Apache/Ocsinventory.pm line 64.

***** OCS Server activity.log, about the machine as example :

Knowing that SNMP is not active in our system, and I have this message for all the computers whatever inventory works or not.

Mon May 30 13:44:27 2016;2036;103;U2W71SPAREUCR1-2014-12-17-17-26-02;172.16.110.23;OCS-NG_WINDOWS_AGENT_v2.1.1.1;snmp;error: agent must communicate using https to be able to get SNMP communities (only affects OCS unix agent) !!

Any help or suggestion would be welcome, many thanks !

Installation error. Please, need your help

$
0
0
Hello everyone. First of all to thank everyone for the help they can offer.

I'm trying to set up a clean installation of OCS server but the assistant shows me the following error and not how to fix it. I have tried everything but have no more options:

Bareword found where operator expected at ./Makefile.PL line 1, near "30 mtime"
        (Missing operator before mtime?)
Number found where operator expected at ./Makefile.PL line 2, near "30"
        (Missing semicolon on previous line?)
Bareword found where operator expected at ./Makefile.PL line 2, near "30 atime"
        (Missing operator before atime?)
Number found where operator expected at ./Makefile.PL line 3, near "30"
        (Missing semicolon on previous line?)
Bareword found where operator expected at ./Makefile.PL line 3, near "30 ctime"
        (Missing operator before ctime?)
ERROR from evaluation of /usr/src/OCSNG_UNIX_SERVER-2.2/Apache/PaxHeaders.9556/Makefile.PL: syntax error at ./Makefile.PL line 1, near "30 mtime"
Warning: Prerequisites too old ! Do you wish to continue (y/[n])?
Installation aborted !

Comment installer deux agents sur un même PC

$
0
0
Bonjour,

Est-il possible d'installer deux agents sur un même PC?

En effet, un agent est déployé via GPO, par les admins de la foret AD à laquelle j'appartiens. Je n'ai aucun accès au serveur.

Je souhaite preparer un serveur sur lequel je disposerai des droits dans mon OU. Cependant je me rends compte que seven entreprise 32bits n'accepte pas de faire tourner deux agents.

Y aurait il un moyen d'avoir mon propre agent qui renvoi les infos sur mon serveur tout en préservant l'agent dont je ne dispose pas des droits?

Cordialement.

Inventorier des machines Identifier via ipdiscover

$
0
0
Bonjour,

Je voudrais savoir si il était possible en télédéploiement ou autre méthode via OCS d'inventorier les machines que j'ai identifier grâce a IPDiscover ?

Merci.

OCS Reports 403 after Ubuntu 16.04 LTS

$
0
0

Hello,

I Upgraded my OCS server to latest Ubuntu LTS (16.04) and now I get this error message.

Forbidden

You don't have permission to access /ocsreports/ on this server.

What should I check?

Server is running version 2.0.5 and when I tried to Upgrade to OCS 2.2 I got this error when the installation asked me about the apache daemon,

"AHH00526: Syntax error on line 74 of /etc/apache2/apache2.conf:

Invalid Muted directory in argument file:$ APACHE_LOCK_DI

So I guess there is issue with apache?

I would like to have the version 2.0.5 working or update to 2.2.

EDIT, I think the 403 error is now solved, I changed Alias path from this file /etc/apache2/sites-available/000-default.conf

Path was Alias /ocsreports /usr/share/ocs-inventory-reports and I changed it to Alias /ocsreports /usr/share/ocs-inventory-reports/ocsreports does this even make any sense?

how to uninstall software from ocs? It's possible?

$
0
0

I'm with the purpose of removing software from the ocs. But I found nothing about.


Is there any way of ocs identify pirated software

L'agent OCS pour windows ne remonte rien au serveur

$
0
0
bonjour,

Je rencontre un problème pour faire remonter les données de mon client windows jusqu'à mon serveur ocs sous debian que j'ai créé dans le cadre d'un projet en école

J'ai plusieurs "piste" tout d'abord le répertoir à cibler lors de l'installation de l'agent, faut t'il cibler le répertoir OCS à la racine ou un répertoire en particulier(  http://192.168.1.120/OCS_UNIX_SERVER dans mon cas) ou un dossier en particulier comme http://192.168.1.120/OCS_UNIX_SERVER/ocsreports)

De plus lorsque je me rends dans les log error de mon serveur apache , je constate qu'à l'heure ou j'ai executé l'agent OCS, j'ai bien une erreur venant de l'IP du client windows avec l'agent OCS disant "Attempt to serve directory: /var/www/OCS_UNIX_SERVER"

Voila j'ai essayé d'être le plus clair possible excusez moi si ça n'est pas le cas  j'attend vos réponse merci :)

How can I send addicional info from ocs client to ocs server ..?

$
0
0
I want to populate aditional information from OCS client to  OCS server.

The idea is that I out some XML file with this content:

----------------------------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<ACCOUNTINFO>
        <KEYNAME>Responsable</KEYNAME>
        <KEYVALUE>Infraestructura</KEYVALUE>
</ACCOUNTINFO>

------------------------------------------------------------------------------------

And send it information to OCS server..

Is it possible...?

Attempt reinstall when exit code != 0

$
0
0
Is there a way to tell OCS to re-attempt an installation, when the previous attempt failed? I have packages that cannot be installed under certain conditions (e.g. Firefox is running). In my script (AutoIt or Bat) I would like to check for these conditions and exit with a specific exit code (e.g. 75, ex_tempfail). The agent should then retry the installation after some period of time.

Is this in any way possible? Right now I have to manually remove the package from the history file (on the agent side) and re-affect it on the server side.

Thanks!

Create msi file to uninstall Ocs Agent from windows

$
0
0
Team,

How to create msi file to uninstall OCS Agent from windows????

Doublon d'ordinateur

$
0
0
Bonjour,

Quand je fais remonter l'inventaire du park informatique, j'ai des doublons qui remontent car j'ai des pc qui ont changés de nom. Je sais pas comment faire pour les supprimer. Il y a t-il une solution?

Merci d'avance bonne journée.

Server error when client send information

$
0
0

-------------------------------------------------English-------------------------------------------------

Hey guys !

I've installed OCS on a new virtual Server. I completed the install easily, but now i can't receive data from Client.

In my Client log i found that :

[/NOW] used, so launching "C:\Program Files (x86)\OCS Inventory Agent\ocsinventory.exe"...Result: 4

I checked twice, the Server IP is correct.

In my "error.log" on my Debian Server i can find that :

[Wed Jun 01 09:45:11.527135 2016] [perl:error] [pid 17035] [client 192.168.225.100:51879] Can't call method "do" on an undefined value at /usr/local/share/perl/5.20.2/Apache/Ocsinventory/Server/System.pm line 177.\n

And in the file System.pm we can see :

175:  my $dbh = DBI->connect("DBI:mysql:database=$database;host=$host;port=$port", $user, $password, \%params);

 176:  $dbh->do("SET NAMES 'utf8'") if($dbh && $ENV{'OCS_OPT_UNICODE_SUPPORT'});

177:  $dbh->do("SET sql_mode='NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'");

 I'm really lost right now :/ I've already installed OCS on a Debian like... 2 weeks ago for testing, it perfectly worked... And now it don't :/

Thanks for you help mate !! ;)

-------------------------------------------------Francais-------------------------------------------------

Salut tout le monde !

J'ai installé OCS Server sur une nouvelle machine virtuel. L'installation c'est bien passé, mais je ne peu pas recevoir les données des Clients.

Dans le log du Client je trouve ca :

[/NOW] used, so launching "C:\Program Files (x86)\OCS Inventory Agent\ocsinventory.exe"...Result: 4

J'ai verifié deux fois, l'adresse ip du serveur est la bonne

Du coup j'ai regardé dans error.log et j'ai trouvé ca (bon ca veux au moins dire que y'a contacte entre les deux machine :

[Wed Jun 01 09:45:11.527135 2016] [perl:error] [pid 17035] [client 192.168.225.100:51879] Can't call method "do" on an undefined value at /usr/local/share/perl/5.20.2/Apache/Ocsinventory/Server/System.pm line 177.\n

Dans le fichier indiqué on trouve ca (rien de spécial quoi) :

175:  my $dbh = DBI->connect("DBI:mysql:database=$database;host=$host;port=$port", $user, $password, \%params);

 176:  $dbh->do("SET NAMES 'utf8'") if($dbh && $ENV{'OCS_OPT_UNICODE_SUPPORT'});

177:  $dbh->do("SET sql_mode='NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'");

Donc je suis un peu perdu la :/ j'ai déjà installé OCS sur un Debian il y a genre... 2 semaines pour tester, ca avait marché sans soucis. Et maintenant ca marche plus :(

Merci de votre aide ! :)


Is there any plugin to uninstall software from ocs

$
0
0

I know we can make the deployment packages. However, there is a plugin to do software uninstallation? I need this function

OCS upgrade problem

$
0
0
Dear Sir,

   I updated all the prerequisites to the latest versions available for my operating system version but still the same problem persists...What shall I do ? Any further support from you will be so appreciated.

Thanks and best regards

Youssef Nady

OCS goes back to login screen on any click

$
0
0
I have one instance of OCS running on a CENTOS 6.4 VM. I can login to the web interface, but if I click on ANYTHING it takes me back to the login screen. It does this for every single user, including the Super Administrator user. I have restored the VM back to a clean snapshot, but after a couple days of working well, it will start this issue again.

Import ESX host into OCS

$
0
0
I have successfully used the fusion-ESX to create the OCS file for an ESX server.

Using the injector tool to import into OCS, the status is successful, but no host is created in OCS.

OCS 2.0.5 upgrade to 2.2 Apache error

$
0
0

Hello,

What might be causing this apache error when trying to upgrade from 2.0.5 to 2.2

Click Enter

variables not defined?

Viewing all 4398 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>