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

ocs update problem

$
0
0
I don't have a file on my server called "envvars"...it doesn't exist. What shall I do ?

2.1 to 2.2 error upgrading (ubuntu)

$
0
0

I'm trying to update my 2.1 installation to 2.2, after answer all questions in setup.sh it stops here:

+----------------------------------------------------------+

| Installing files for Administration server...            |

+----------------------------------------------------------+

Creating PHP directory /usr/share/ocsinventory-reports/ocsreports.

Copying PHP files to /usr/share/ocsinventory-reports/ocsreports.

*** ERROR: Unable to copy files in /usr/share/ocsinventory-reports/ocsreports, please look at error in /tmp/OCSInventory-Server-2.2/ocs_server_setup.log and fix !

In the log appears this:

Copying PHP files to /usr/share/ocsinventory-reports/ocsreports

cp: cannot stat 'ocsreports/*': No such file or directory

The directory exists and the permissions seems right, any hint?

OCS 2.2 does not communicate with customers

$
0
0

Does anyone know where there is a documentation of the installation and possible problem solutions in ocs installation for ubuntu server?

I've looked everywhere but I can not solve the problems even posting in the forum . It must be some wrong way. I used the setup.sh installation own ocs . And that same server runs without problem several services . As GLPI , Nagios , among others. But the OCS is the one who insists on not fucnionar . The to enter the page and all the ocsreports , but I can not make any client to communicate.

BRIEF : do not have a command or something that can check the installation to see if it's OK ? Type a checkup ? or checklist

Below all my questions , I got to do what was suggested but nothing happens.

http://ask.ocsinventory-ng.org/4418/nothing-appears-on-the-server-n%C3%A3o-aparece-nada-no-servidor
http://ask.ocsinventory-ng.org/4411/ocsng-windows-agent-2-2-beta
http://ask.ocsinventory-ng.org/4321/com-server-http-post-response-received-http-status-code-%23200

Can't access to ocs plugin page from glpi

$
0
0

Hi,

I have downloaded the tar ball from the website and i decompressed it plugins directory of glpi. glpi detect it very well and it do the installation but when i go on the plugin web page (Tools -> OCS Inventory NG) it says : 

Forbidden

You don't have permission to access /plugins/ocsinventoryng/front/ocsng.php on this server.

Anybody have a clue for that ?

PS : 

Ubuntu server 16.04

Glpi 0.90

ocs inventoory plugin : 1.2.0

Tutorial de correção no servidor

$
0
0
Vocês poderiam fazer um tutorial de verificação para conferir a instalação no servidor ubuntu.

Da muito problema na comunicação com o servidor da até desânimo de usar.

Probleme synchro site distant

$
0
0
Bonjour,

J'ai un serveur OCS/GLPI sur mon réseaux mais j'ai besoin de faire un inventaire de plusieurs sites distants et pour cela il faut donc relier mon serveur GLPI avec tous les serveurs OCS qui seront sur chaque site distant. Mais voilà le problème est comment les faire communiquer ensemble ? Et-il possible de faire accéder mon serveur GLPI via le WEB avec une adresse IP publique ? Si oui comment, car je n'ai pas réussi a dénicher de doc là-dessus ?

agent without communication with the server3

$
0
0

to see if I can help, I show the Log agen

0 votes

to see if I can help, I show the Log agent.

tarting OCS Inventory NG Agent on Friday, May 27, 2016 11:41:38.
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 <TIMOINTGFGRTE-2016-05-06-13-26-02> and MACs <20:47:47:D8:FA:A494:65:9C:7A:1D:F996:65:9C:7A:1D:FA96:65:9C:7A:1D:F90A:00:27:00:00:00> 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 => 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.168.9.230:80/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:22.

the ping from the client PC if it works.
http if the server is online

agent setting

[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=1
Local=
NoSoftware=0
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=http://192.168.9.230:80/ocsinventory
SSL=1
CaBundle=cacert.pem
AuthRequired=1
User=s0WzozOy8uWIaCfAI5DDXg==|||8rri5S7ifqIvmy1vnB64pg==
Pwd=befVhtfZYUDZOZPufgrQdw==|||O17XFZjD0d9bLlxhkQThxQ==
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
[OCS Inventory Service]
PROLOG_FREQ=24
OLD_PROLOG_FREQ=24
TTO_WAIT=5520

in view of the server only once the agent reported

OCS Inventory NG packager probleme !

$
0
0
Bonjour,

Je voulais tenter d'utiliser le packager setup pour crée le paquet d'installation pour un déploiement via GPO, mais quand je lance le .exe je tombe sur une pop-up d'erreur "using alternate account to launch setup requires microsoft sysinternals <PsExec.exe> tool" J'ai essayer d'installer PsExec mais rien y fait, donc si quelqu'un avait déjà eu se problème peut-il m'aider ?

Cordialement

Mais que signifie l'erreur "Failed to load/parse last inventory state "

$
0
0
Bonjour,

On a un serveur OCS Windows 2.1.2 et l'agent Windows 2.0.5 sur plusieurs Windows 2008R2. Sur l'une de ces machines l'inventaire n'est jamais remonté et le service OCS renvoie systématiquement l'erreur Service "encounter error "<Failed to load/parse last inventory state >", Nous avons manuellement désinstallé puis réinstallé l'agent mais l'erreur revient toujours. Quels  peuvent-en être l'origine et la signification ?

Merci Beaucoup

Cordialement,

Severus

Log agent :

==============================================================================
Starting OCS Inventory NG Agent on Tuesday, June 07, 2016 14:58:39.
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)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.0.5.0>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <SSL connect error>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:01.

==============================================================================
Starting OCS Inventory NG Agent on Tuesday, June 07, 2016 14:58:42.
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)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.0.5.0>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <SSL connect error>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

==============================================================================
Starting OCS Inventory NG Agent on Tuesday, June 07, 2016 14:59:50.
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)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.0.5.0>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <SSL connect error>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:01.

==============================================================================
Starting OCS Inventory NG Agent on Tuesday, June 07, 2016 15:02:27.
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)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.0.5.0>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <SSL connect error>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

Offce Key ocs inventory Key

Problem with plugins

$
0
0

Hi, I'm trying to install the plugin (winusers, uptime, officepack) after updating the ocs-server, version 2.1 to 2.2. After i click install the first time just get a blank screen, updating, if you try to install again get the message " This plugin has been already installed ", but no plugin appears as installed.

Sorry for the bad english.

Export computers with choosen columns

$
0
0
I've upgraded OCS NG to newest 2.2 version and now I have the next problem: I can't export All computers to csv with information from choosen columns. It saves the csv file with full computers' information.

Unsuccessful stat on filename containing newline at /opt/perl..

$
0
0
Dear guys,

getting this error when executing agent at HP-UX 11.31

dc1hbkp:/tmp# /opt/perl/bin/ocsinventory-agent
Unsuccessful stat on filename containing newline at /opt/perl_32/lib/site_perl/5.8.8/Ocsinventory/Agent/Backend.pm line 33.
dc1hbkp:/tmp#

I have extracted the part of /opt/perl_32/lib/site_perl/5.8.8/Ocsinventory/Agent/Backend.pm containing line 33

    30
    31        my $calling_namespace = caller(0);
    32        chomp(my $binpath=`which $binary 2>/dev/null`);
    33        return unless -x $binpath;
    34        $self->{logger}->debug(" - $binary found");
    35        1
    36      },

Agent does not update the inventory

$
0
0
Hello

I have a problem with my agent windows and Mac , when you install the agent in the event viewer this error unfolds constantly and does not update the inventory :

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

The server is a Windows 2008 and agents 2.1.1.3 for Windows 8 and Mac .

And I made various changes and reinstalls the agent does not work.

I appreciate the help , greetings .
--------------------------

Hola 

Tengo un problema con mi agente de windows y Mac, al instalar el agente en el event viewer se desplega este error constantemente y no actualiza el inventario:

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

EL servidor es un windows 2008 y los agentes 2.1.1.3  para  windows 8 y Mac.

Ya hice diferentes cambios y reinstalaciones del agente pero no funciona.

Agradezco la ayuda, saludos.

Agent 404 / Failed to send Prolog

$
0
0

Hello,

I recently upgraded OCS from 2.0.2 -> 2.2 and now my clients are not updating.

Client log looks like this"

==============================================================================
Starting OCS Inventory NG Agent on Wednesday, June 08, 2016 20:53:47.
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)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.0.5.0>
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:01.

"

I tried with newer agent but got the same error. Server running Ubuntu 14.4 and all the clients are windows 7 or 10. I already tried to solve this out by myself but cannot figure out what's wrong? Is this issue with mod perl? I ran this command but I'm unsure if this is the way to check if the perl is running.


How to deploy only a script in ocs?

$
0
0

Hello.
I want to deploy a script to run on some computers on the network. It works the same way to deploy a normal packet?​

Upgrade to Ubuntu 16.04 LTS Xenial broken

$
0
0
Dear all,

Since I upgraded to Ubuntu 16.04 LTS las tweek, I have several issues regarding my OCS inventory server : It looks like that Xenial comes only with php7 installed, and this cause the following issue : "ERREUR: MySQL pour PHP n'est pas installé correctement. Essayez d'installer MySQL pour PHP paquet (Debian: php5-mysql)". I installed the php5.6 version using the PPA repository as per described here : https://askubuntu.com/questions/756181/installing-php-5-6-on-xenial-16-04. After installing again the ocsinventory-report and server using apt, PHP7 is installed on the server, and the default php interpreter is v7.

How to use that version that comes bundled with the Xenial version of Ubuntu ?

Many thanks in advance,

Regards,

Jean

Hardware_ID a changé

$
0
0
Bonjour,

J'aimerais savoir pourquoi les ID de mes machines déjà inventoriées remontent avec des ID différents au fur et à mesure du temps. Actuellement j'ai 942 machines dans la base et le dernier hardware_ID est 15897.
La semaine dernière c'était 15887 le dernier ID.

Dans les réglages du serveur, j'ai mis la variable AUTO_DUPLICATE_LVL sur Serial, macaddress et model.

Y-a-t-il un moyen pour stopper l'incrémentation des ID sans cesse?

Merci de votre aide.

déploiement impossible : "Failed to send Prolog "

$
0
0
Bonjour,

Mon but étant d'utiliser la fonction de télédéploiement d'OCS. Après installation du serveur sur une VM Linux et installation de l'agent sur une VM Windows,  voici l'erreur présente dans les log de l'agent :

==============================================================================
Starting OCS Inventory NG Agent on Friday, June 10, 2016 13:15:19.
AGENT => Running OCS Inventory NG Agent Version 2.0.2.0
AGENT => Using OCS Inventory NG FrameWork Version 2020
AGENT => Loading plug-in(s)
    PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files\OCS Inventory Agent\plugins>
    PLUGIN => 0 Plug-in(s) succesfully loaded
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.0.2.0>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <FRC-VM-DEFAUT-2016-05-26-11-37-37> and MACs <00:0C:29:05:8B:56> in file <ocsinventory.dat>
    COM SERVER => Initializing cURL library for sendRequest
    COM SERVER => Using cURL with server authentication
    COM SERVER => Using cURL HTTP type proxy <http://conf.proxy.national.agri:8080>
    COM SERVER => Using cURL proxy with authentication
    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://10.25.115.79/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:02

La remonté du poste windows s'est correctement déroulé malgré cette erreur (ma machine étant bien visible dans l'inventaire à l'adresse 127.0.0.1/ocsreports), mais il m'est impossible de déployer des paquets (une fois activé, leur état ne changent pas, ni en succes, ni en echec ni en notifié)

Vous est-il possible de m'aider?

(je tiens a préciser que je suis novice dans le domaine!) Merci d'avance

Tutorial OCS on Ubuntu 16.04

$
0
0

Here a solution to make an OCS+GLPI on Ubuntu 16.04

mkdir /tmp/inventory
chmod 777 /tmp/inventory
apt-get install make apache2 mysql-server php perl libapache2-mod-perl2 libapache2-mod-php 
apt-get install libio-compress-perl libxml-simple-perl libdbi-perl libdbd-mysql-perl 
apt-get install libapache-dbi-perl libsoap-lite-perl libnet-ip-perl 
apt-get install php-mysql php-gd php7.0-dev php-mbstring php-soap
perl -MCPAN -e 'install XML::Entities'
wget https://github.com/OCSInventory-NG/OCSInventory-ocsreports/releases/download/2.2/OCSNG_UNIX_SERVER-2.2.tar.gz
wget https://github.com/glpi-project/glpi/releases/download/0.90.3/glpi-0.90.3.tar.gz
wget https://forge.glpi-project.org/attachments/download/2114/glpi-ocsinventoryng-1.2.1.tar.gz
tar -xzvf glpi-0.90.3.tar.gz -C /var/www
tar -xvzf glpi-ocsinventoryng-1.2.1.tar.gz -C /var/www/glpi/plugins
tar -xvf OCSNG_UNIX_SERVER-2.2.tar.gz
cd OCSNG_UNIX_SERVER-2.2
mv setup.sh originalsetup.sh
wget https://raw.githubusercontent.com/OCSInventory-NG/OCSInventory-Server/master/setup.sh
sh setup.sh (Everything default)
cd
rm -r *.gz
rm -r OCSNG_UNIX_SERVER-2.2/
chown -R www-data:www-data /usr/share/ocsinventory-reports
chown -R www-data:www-data /var/www/glpi
chmod -R 777 /var/www
chmod -R 777 /usr/share/ocsinventory-reports
chmod -R 777 /var/www/glpi

nano /etc/apache2/sites-available/glpi.conf
Write in {
Alias / /var/www/glpi/
<VirtualHost *:80>
    ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
    #ServerName www.example.com
    DocumentRoot /var/www/glpi
      <Directory "/var/www/glpi/">
        Options Indexes MultiViews FollowSymLinks
        #AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>
}

a2dissite 000-default
a2enconf ocsinventory-reports
a2ensite glpi.conf
a2enconf z-ocsinventory-server
service apache2 restart

Web browser {
http://IP_server/ocsreports/install.php
MySQL login: root
MySQL password:pswd
Name of Database:ocsweb
MySQL HostName:127.0.0.1 -> OK
Enter OCS NG GUI
Perform the update
Enter OCS NG GUI

Configuration :
Server : TRACE_DELETED (ON)
Inventory files : GENERATE_OCS_FILES : ON
OCS_FILES_OVERWRITE : ON
OCS_FILES_PATH /tmp/inventory
}

rm /usr/share/ocsinventory-reports/ocsreports/install.php

mysql -u root -p
SET PASSWORD FOR 'ocs'@'localhost' = PASSWORD('pswd');
SET PASSWORD FOR 'ocs'@'%' = PASSWORD('pswd');
exit

nano /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php
{
define("PSWD_BASE","pswd");
}

nano /etc/apache2/conf-available/z-ocsinventory-server.conf
{
PerlSetVar OCS_DB_PWD pswd
In <Location /plugins> Comment lines :
Require local
SetHandler perl-script
}

service apache2 restart

Web browser {
http://IP_server/
create or use a database
}
rm /var/www/glpi/install/install.php

Don't forget to change your passwords in OCS and glpi.

With this solution, u'll have OCS & GLPI Installed but no connection
between them.

There is a bug i still haven't found the solution.
OCS will display 0 computer on the /ocsreports/
but if you go to All computers, u will see all of your computers.
If someone find the solution for this Post-it here please thx. 
Viewing all 4402 articles
Browse latest View live


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