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

problems when launching packages

$
0
0

Hello,
I have problems to publish a package . With some software (eg Firefox , Microsoft essentials, Java 8 ) when using the option launch returns the following error "Can not open file" and use the option execute the package is not transferred to the server. The version I'm using is OCS version 2.2.1. tested all software cited in version 2.1 and it worked perfectly including downloading and installing the client.
Can someone help me!?


Thanks
                       

Mon problème avec Ocsinventory.ini

$
0
0
Bonjour,

J'ai installé un serveur Ocsinventory sous Ubuntu 16.04... Je déploie l'agent OCS par une GPO pour mon parc informatique Windows!!

Le problème c'est que je n'ai aucune remontée d'inventaire ; Pourtant, l'inventaire s'effectue parfaitement en local (mon ocsinventory.log montre l'erreur :ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #404>).

Aussi, je n'arrive pas à modifier mon fichier ocsinventory.ini qui s'affiche comme suit :

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

Aidez-moi

Installation Apache::SOAP module perl impossible

$
0
0

Bonjour,

Je tente d'installer OCSNG server sur l'OS Ubuntu 16.04.1 LTS.

J'ai réussi à installer l'ensemble des modules hormis Apache::SOAP.

J'ai essayé l'installation avec CPAN i /Apache::SOAP/ : ok.

Mais toujours la même erreur lors de l'exécution ./setup.sh :

Avez-vous une piste pour installer ce module, svp ?

D'avance merci

sam

OCS on Windows server 2012 and Windows 7 install NG Agent

$
0
0

Hi,

I have try this  use the windows server 2012 INSATLL Windows-Server-Setup 2.1.1.0  and Windows 7 INSTALL Windows-Agent-2.1.1.3 join it domain.

 I name a hostname of server as ocs

 I have install OCS Server on Windows server 2012 succesfully and apache service run successfully as well as mysql service.

 During installation page of Windows agent on Windows7. It ask for the name of server so I can't put http://ocs/ocsinventory and http://192.192.124.114/ocsinventory, but  can to ping icmp and responce from server

 I have turn off the firewall also and check mysql name and password is correctly include dbconfig.inc check.

 I go to administer setup on ocs management  and add new subnet already

 However the agent don't send it inventory to server.

as below windows even log & OCS agent log.

1.Service encounter error <Failed to load/parse last inventory state>.

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

OCS Log as below:

==============================================================================
Starting OCS Inventory NG Agent on Wednesday, September 07, 2016 07:52:24.
AGENT => Running OCS Inventory NG Agent Version 2.1.1.3
AGENT => Using OCS Inventory NG FrameWork Version 2.1.1.3
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) successfully 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.3>
AGENT => Sending Prolog
 DID_CHECK => Read DeviceID <DPC021-2016-09-01-10-38-12> and MACs <44:87:FC:D7:E1:31> 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://192.192.124.114/ocsinventory>
 WARNING *** COM SERVER => Failed to send HTTP Post request <Couldn't connect to server>
 COM SERVER => Cleaning cURL library
ERROR *** AGENT => Failed to send Prolog <Couldn't connect to server>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:21.

OCSINVENTORY .INI

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

 How to solve this ? Thanks.

Problème erreur apache perl

$
0
0
Bonjour,

J'ai l'erreur suivant dans le fichier error.log d'apache :

[Wed Sep 07 09:24:32.802639 2016] [perl:error] [pid 4960] [client 172.28.1.161:49220] Not a HASH reference at /usr/local/share/perl/5.20.2/Apache/Ocsinventory/Server/Capacities/Ipdiscover.pm line 62.\n

Quelqu'un peut-il me dire coment corriger cette erreur ?

Merci de votre aide.

Security problem after client installation - Windows

$
0
0

We have scanned server with OCS installation and found a security problem (easy to be fixed). Here is the screen:

Agent OCS pour Mac OSX 10.11.xx

$
0
0
Impossible de faire fonctionner l'agent sous El Capitan en SSL.

Quelqu'un aurait il une solution relativement simple pour parer à ce problème ?

Tuto 'pas à pas' par exemple...

WARNING: Can't find information file at https://172.19.XXX.XXX/download/1473365315/

$
0
0

Hi, my name is Leo.

I have to test the remote archive deployment tool. (Preference Silent Instalations)

While trying to activate a package for remote deployment from the Web Interface -> Deployment -> Activate, i receive:

WARNING: Can't find information file at https://172.19.XXX.XXX/download/1473365315/

My OS is Red Hat Enterprise Linux Server release 6.0 (Santiago)

I followed the wiki documents and instruction but could not find a solution for this..

http://wiki.ocsinventory-ng.org/index.php?title=Admin_center:Deployment_2_Java

http://iranzo.github.io/blog/2006/07/27/OCS-Inventory-Package-deployment/

The version of my OCS is 2.2

I don't understand whats happening... Can you help?


Migration OCS-NG 1.3.2 => 2.2.1

$
0
0
Bonjour,

Mon serveur de production possède la version 1.3.2 de OcsNG sous Linux Centos 5

Je prépare un nouveau serveur avec CentOS 7.

Ou puis-je trouver l'ancienne version (1.3.2) pour transférer mes données et ensuite procéder à la mise à jour ?
A moins que la version 2.2.1 puisse importer via sont interface un export de l'ancienne version ?

Par avance, merci

Prb remontées OCS avec eyes of network

$
0
0

Bonjour a tous,

j'ai un agent 2.113 window$ et je pense que c'est ça qui gène voir log:
 

==============================================================================
Starting OCS Inventory NG Agent on Friday, September 09, 2016 11:20:10.
AGENT => Running OCS Inventory NG Agent Version 2.1.1.3
AGENT => Using OCS Inventory NG FrameWork Version 2.1.1.3
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) successfully 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.3>
AGENT => Sending Prolog
DID_CHECK => Read DeviceID <PC-14-2016-06-16-10-11-43> and MACs <00:15:5D:CB:00:0800:FF:8B:8C:21:30> 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://192.168.0.195/ocsinventory>
COM SERVER => HTTP Post response received <HTTP Status Code #400>
COM SERVER => Cleaning cURL library
ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #400>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:01.
 



Le serveur est une VM centos 7 eyes of network et ocs server v 2.2

Pouvez vous m'aider s'il vous plait ?

Merci d'avance

Utilisation excessif de la RAM durant l'inventaire

$
0
0

Bonjour,

J'ai mis en place un serveur OCS sous Linux, et les agents sous Windows.

L'inventaire sur un poste s'effectue à chaque lancement d'une session utilisateur grâce à un script de connexion, tout fonctionne très bien, le seul problème est que je trouve excessif l'utilisation des ressources.

A chaque lancement du script, j'ai l'impression que l'agent OCS se réinstalle

Par exemple sur une session TSE, quand je lance simplement l'exécutable de base "OCSLogon.exe", le processus TrustedInstaller se met en execution et la mémoire atteint pendant une vingtaine de seconde plus de 400 000k

Mon script de connexion est très simple, il ne fait qu'exécuter "OCSLogon.exe" sans autres paramètres.

Serait-ce une configuration à revoir durant l'installation de l'agent ?

Merci à vous

Cordialement,

Crabe

Problème Merge redundant computer inactif

$
0
0

Bonjour,

Depuis la mise à jour vers la version 2.2.1 de OCSInventory sur Unix, nous ne pouvons plus gérer les ordinateurs dupliqués.

Nous sélectionnons 2 PC à merge et nous cliquons sur Merge Redundant computers et il ne se passe rien.

J'ai déja essayé de réinstaller l'application OCS sur le serveur j'ai même supprimer complètement le répertoire OCSInventory pour repartir sur une installation propre et malgré cela le bouton reste inactif.

Version OCSInventory : 2.2.1

OS: Ubuntu 16.04

Apache version 2

php version 7

mysql version 5.7

J'ai regardé dans les logs Apache du serveur et j'ai trouvé des erreurs quand on clique sur le bouton Merge Redundant computers:

[Mon Sep 12 09:19:28.953935 2016] [:error] [pid 6218] [client IP_MACHINE:40799] PHP Warning:  mysqli_fetch_array() expects parameter 2 to be integer, string given in /usr/share/ocsinventory-reports/ocsreports/plugins/main_sections/ms_doubles/ms_doubles.php on line 48, referer: http://NOM_SERVEUR/ocsreports/?function=admin_double
[Mon Sep 12 09:19:28.954266 2016] [:error] [pid 6218] [client IP_MACHINE:40799] PHP Warning:  mysqli_fetch_array() expects parameter 2 to be integer, string given in /usr/share/ocsinventory-reports/ocsreports/plugins/main_sections/ms_doubles/ms_doubles.php on line 48, referer: http://NOM_SERVEURocsreports/?function=admin_double
[Mon Sep 12 09:19:28.954544 2016] [:error] [pid 6218] [client IP_MACHINE:40799] PHP Warning:  mktime() expects parameter 1 to be integer, string given in /usr/share/ocsinventory-reports/ocsreports/require/function_computers.php on line 168, referer: http://NOM_SERVEUR/ocsreports/?function=admin_double
[Mon Sep 12 09:19:28.954576 2016] [:error] [pid 6218] [client IP_MACHINE:40799] PHP Warning:  mktime() expects parameter 1 to be integer, string given in /usr/share/ocsinventory-reports/ocsreports/require/function_computers.php on line 168, referer: http://NOM_SERVEUR/ocsreports/?function=admin_double
[Mon Sep 12 09:19:29.134872 2016] [:error] [pid 6218] [client IP_MACHINE:40799] PHP Warning:  mysqli_fetch_array() expects parameter 2 to be integer, string given in /usr/share/ocsinventory-reports/ocsreports/plugins/main_sections/ms_doubles/ms_doubles.php on line 48, referer: http://NOM_SERVEUR/ocsreports/?function=admin_double
[Mon Sep 12 09:19:29.135212 2016] [:error] [pid 6218] [client IP_MACHINE:40799] PHP Warning:  mysqli_fetch_array() expects parameter 2 to be integer, string given in /usr/share/ocsinventory-reports/ocsreports/plugins/main_sections/ms_doubles/ms_doubles.php on line 48, referer: http://NOM_SERVEUR/ocsreports/?function=admin_double
[Mon Sep 12 09:19:29.135465 2016] [:error] [pid 6218] [client IP_MACHINE:40799] PHP Warning:  mktime() expects parameter 1 to be integer, string given in /usr/share/ocsinventory-reports/ocsreports/require/function_computers.php on line 168, referer: http://NOM_SERVEUR/ocsreports/?function=admin_double
[Mon Sep 12 09:19:29.135502 2016] [:error] [pid 6218] [client IP_MACHINE:40799] PHP Warning:  mktime() expects parameter 1 to be integer, string given in /usr/share/ocsinventory-reports/ocsreports/require/function_computers.php on line 168, referer: http://NOM_SERVEUR/ocsreports/?function=admin_double

Merci à vous.

Problème de remontée d'inventaire

$
0
0
Bonjour,

J'ai migré mon serveur de debian 6 en 7.

Tout fonctionne correctement sauf pour les nouveaux PC installée, la remontée d'inventaire ne se fait pas.

J'ai l'erreur suivante dans le fichier de log de l'agent :

Starting OCS Inventory NG Agent on Monday, September 12, 2016 10:47:07.
AGENT => Running OCS Inventory NG Agent Version 2.1.1.3
AGENT => Using OCS Inventory NG FrameWork Version 2.1.1.3
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) successfully 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.3>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <REPRO-2016-09-07-16-43-07> and MACs <1C:6F:65:0B:2E:F2> 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 <cacert.pem>
    COM SERVER => Sending HTTP Post request to URL <http://ocsinventory-ng.intra.insa-cvl.fr/ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #500>
    COM SERVER => Cleaning cURL library
ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #500>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

Je ne comprends pas le problème les anciennes machines déjà présente remonte bien.

Une idée ?

Problème de communication entre l'agent Windows et le serveur

$
0
0
Bonjour à tous,

J'ai installé un serveur OCS Inventory sur un serveur W2012R2 (avec Xampp).

J'ai déployé l'agent par GPO via OCSPackager, qui s'est correctement déployé sur tous les postes du parc.

Seul problème, les postes ne parviennent pas à remonter dans l'inventaire, et dans le log de l'agent, j'ai l'erreur suivante :

Starting OCS Inventory NG Agent on Monday, September 12, 2016 11:45:18.
AGENT => Running OCS Inventory NG Agent Version 2.1.1.3
AGENT => Using OCS Inventory NG FrameWork Version 2.1.1.3
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.3>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #404>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

J'ai lu sur le wiki que cette erreur correspondrait à une erreur de paramétrage du serveur Apache, mais je ne sais pas où chercher.

Merci d'avance de votre aide !

error in windows 8.1 /var/lib/ocsinventory-reports/download/

$
0
0

solution for error please, thanks 

/var/lib/ocsinventory-reports/download/
It's not possible to create the packages creation directory.
The package creationis not possible so

is windows 8.1


ERROR *** AGENT => Failed to write Prolog Frequency

$
0
0

I installed .msi according to documentation
now it's happening this error


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

Starting OCS Inventory NG Agent on Tuesday, September 13, 2016 10:53:56.
AGENT => Running OCS Inventory NG Agent Version 2.1.0.3
AGENT => Using OCS Inventory NG FrameWork Version 2.1.0.3
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.0.3>
AGENT => Sending Prolog
AGENT => Prolog successfully sent
SUPPORT => No support detected, Registration key : N/A
ERROR *** AGENT => Failed to write Prolog Frequency <Error code 5 = Access denied.  >
AGENT =>  Communication Server ask for Package Download
ERROR *** DOWNLOAD => Can't register package <1473771079> into Registry
ERROR *** DOWNLOAD => Can't register package <1473689188> into Registry
DOWNLOAD => Download and setup tool successfully started
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:01.

Web Service does not return machines that checked in during last three days?

$
0
0
Hello - we are accessing the web service as described here:

http://wiki.ocsinventory-ng.org/index.php?title=Developers:Web_services

The service works OK and returns data, but it appears to only return machines that have not been seen within the last 3 days.  In other words, if a machine has contacted the server recently, then it does not come back in the query get_computers_v1.

This seems strange, so we wonder if we are missing something about the get_computers_v1 DTD or query.  Has anyone else seen this problem?

Thank you.

ERROR *** AGENT => Failed to send Prolog

$
0
0
Hello,

can someone told me to what this error is related :

ERROR *** AGENT => Failed to send Prolog <URL using bad/illegal format or missing URL>

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

Starting OCS Inventory NG Agent on Wednesday, September 14, 2016 13:10:05.
AGENT => Running OCS Inventory NG Agent Version 2.1.1.3
AGENT => Using OCS Inventory NG FrameWork Version 2.1.1.3
AGENT => Loading plug-in(s)
    DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files (x86)\OCS Inventory Agentnew\plugins>
    DLL PLUGIN => 0 DLL Plug-in(s) successfully loaded on 0 DLL(s) found
AGENT => Using network connection with Communication Server
    COM PROVIDER => Loading Communication Provider <C:\Program Files (x86)\OCS Inventory Agentnew\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.3>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <ERD1-W01315-2016-06-01-09-05-39> and MACs <D4:3D:7E:14:B2:DC> 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 <>
    WARNING *** COM SERVER => Failed to send HTTP Post request <URL using bad/illegal format or missing URL>
    COM SERVER => Cleaning cURL library
ERROR *** AGENT => Failed to send Prolog <URL using bad/illegal format or missing URL>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

Installer seulement le front office OCS

$
0
0
Bonjour,

J'ai une ancienne base OCS fonctionnelle que j'aurais aimé gardé. Les postes clients n'utilisent plus cette base pour mettre a jour les informations. J'aimerais donc la garder en simple consultation.

Comme je dois changer de serveur, l'idée était de déplacer la base de données sur le nouveau serveur et installer simplement le front office sans le moteur derrière ?

merci

ERROR *** AGENT => Failed to send Prolog

$
0
0

I always get the error ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #500> in the ocsinventory.log:

==============================================================================
Starting OCS Inventory NG Agent on Thursday, September 15, 2016 10:51:10.
AGENT => Running OCS Inventory NG Agent Version 2.1.1.3
AGENT => Using OCS Inventory NG FrameWork Version 2.1.1.3
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.3>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #500>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

The username and password in ocsinventory-server.conf is also correct. I can't find the problem. Can you help me?

Here are the config files:

ocsinventory-server.conf (important part):
#
# OCS Inventory NG Communication Server Perl Module Setup
#
# Copyleft 2006 Pascal DANEK
# Web: http://www.ocsinventory-ng.org
 

<IfModule mod_perl.c>
 
  # Which version of mod_perl we are using
  # For mod_perl <= 1.999_21, replace VERSION_MP by 1
  # For mod_perl > 1.999_21, replace VERSION_MP by 2
  PerlSetEnv OCS_MODPERL_VERSION VERSION_MP

  # Master Database settings
  # Replace DATABASE_SERVER by hostname or ip of MySQL server for WRITE
  PerlSetEnv OCS_DB_HOST DATABASE_SERVER
  # Replace DATABASE_PORT by port where running MySQL server, generally 3306
  PerlSetEnv OCS_DB_PORT DATABASE_PORT
  # Name of database
  PerlSetEnv OCS_DB_NAME ocsweb
  PerlSetEnv OCS_DB_LOCAL ocsweb
  # User allowed to connect to database
  PerlSetEnv OCS_DB_USER ocs
  # Password for user
  PerlSetVar OCS_DB_PWD ocs1
 
  # Path to log directory (must be writeable)
  PerlSetEnv OCS_OPT_LOGPATH "PATH_TO_LOG_DIRECTORY"
 
  # If you need to specify a mysql socket that the client's built-in
  #PerlSetEnv OCS_OPT_DBI_MYSQL_SOCKET "path/to/mysql/unix/socket"
  # DBI verbosity
  PerlSetEnv OCS_OPT_DBI_PRINT_ERROR 0
 
  # Unicode support
  PerlSetEnv OCS_OPT_UNICODE_SUPPORT 1

  # If you are using a multi server architecture,
  # Put the ip addresses of the slaves on the master
  # (This is read as perl regular expressions)
  PerlAddVar OCS_OPT_TRUSTED_IP 127.0.0.1
  #PerlAddVar OCS_OPT_TRUSTED_IP XXX.XXX.XXX.XXX
 
# ===== WEB SERVICE (SOAP) SETTINGS =====

  PerlSetEnv OCS_OPT_WEB_SERVICE_ENABLED 0
  PerlSetEnv OCS_OPT_WEB_SERVICE_RESULTS_LIMIT 100
  # PerlSetEnv OCS_OPT_WEB_SERVICE_PRIV_MODS_CONF "WEBSERV_PRIV_MOD_CONF_FILE"

# Be careful: you must restart apache to make settings taking effects

  # Configure engine to use the settings from this file  
  PerlSetEnv OCS_OPT_OPTIONS_NOT_OVERLOADED 0

  # Try to use other compress algorythm than raw zlib
  # GUNZIP and clear XML are supported
  PerlSetEnv OCS_OPT_COMPRESS_TRY_OTHERS 1
 
##############################################################
# ===== OPTIONS BELOW ARE OVERLOADED IF YOU USE OCS GUI =====#
##############################################################

# NOTE: IF YOU WANT TO USE THIS CONFIG FILE INSTEAD, set OCS_OPT_OPTIONS_NOT_OVERLOADED to '1'

# ===== MAIN SETTINGS =====

  # Enable engine logs (see LOGPATH setting)
  PerlSetEnv OCS_OPT_LOGLEVEL 0
  # Specify agent's prolog frequency
  PerlSetEnv OCS_OPT_PROLOG_FREQ 12
  # Configure the duplicates detection system
  PerlSetEnv OCS_OPT_AUTO_DUPLICATE_LVL 15
  # Futur security improvements
  PerlSetEnv OCS_OPT_SECURITY_LEVEL 0
  # Validity of a computer's lock
  PerlSetEnv OCS_OPT_LOCK_REUSE_TIME 600
  # Enable the history tracking system (useful for external data synchronisation
  PerlSetEnv OCS_OPT_TRACE_DELETED 0
 
# ===== INVENTORY SETTINGS =====
 
  # Specify the validity of inventory data
  PerlSetEnv OCS_OPT_FREQUENCY 0  
  # Configure engine to update inventory regarding to CHECKSUM agent value (lower DB backend load)
  PerlSetEnv OCS_OPT_INVENTORY_DIFF 1
  # Make engine consider an inventory as a transaction (lower concurency, better disk usage)
  PerlSetEnv OCS_OPT_INVENTORY_TRANSACTION 1
  # Configure engine to make a differential update of inventory sections (row level). Lower DB backend load, higher frontend load
  PerlSetEnv OCS_OPT_INVENTORY_WRITE_DIFF 1
  # Enable some stuff to improve DB queries, especially for GUI multicriteria searching system
  PerlSetEnv OCS_OPT_INVENTORY_CACHE_ENABLED 1
  # Specify when the engine will clean the inventory cache structures
  PerlSetEnv OCS_OPT_INVENTORY_CACHE_REVALIDATE 7
  # Enable you to keep trace of every elements encountered in db life
  PerlSetEnv OCS_OPT_INVENTORY_CACHE_KEEP 1

dbconfig.inc.php:

<?php
define("DB_NAME", "ocsweb");
define("SERVER_READ","localhost");
define("SERVER_WRITE","localhost");
define("COMPTE_BASE","root");
define("PSWD_BASE","myrootpassword");
?>

ocsinventory.ini: (Server= tried also with ip and localhost --> nothing worked)

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

When i go to http://DNSofServer/ocsinventory/ I just get the Error 500

Can't call method "do" on an undefined value at C:/xampp/perl/site/lib/Apache/Ocsinventory/Server/System.pm line 177.

I installed OCS Server with the Setup-File of OCS Inventory NG 2.2.1 so I've installed the components:

Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1

Do you have any suggestions how I can fix this problem? The agent can't send an inventory.

Thanks in advance!

Regards Mike

Viewing all 4379 articles
Browse latest View live


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