Quantcast
Channel: Ocsinventory Q&A - Recent questions and answers in OCS Inventory NG server
Viewing all 7139 articles
Browse latest View live

Answered: Can't set admin profile

$
0
0
Hello,

You probably need a "super administrator" account, with "sadmin" in NEW_ACCESS VL, not "admin"...

Regards,
Bexounet.

Plugin Install

$
0
0
OCS asks me to install the ZipArchive module to be able to work as this is done

sorry for my English

Answered: Répartition des machines par administrateur

$
0
0
Bonjour Merci pour votre réponse,

Le tag par défaut je l'ai utilisé pour consigner le nom de l'utilisateur du PC à l'origine.

Hors je voudrais lier les comptes admins en fonction d'un autre TAG que j'ai crée par la suite, autrement dit le TAG "site". Est-ce possible ?

Cas pratique que je voudrais pouvoir obtenir :

Mes 4 admins locaux installent l'agent sur 1 de leur machine respective.

Les 4 admins verront tous je suppose dans l'interface OCS web dans un premier temps leur machine non encore affectée (lors de la première remontée) ainsi que celles des autres admins qui n'ont pas été affectées.

Ensuite, ils rempliront chacun les données administratives de leurs postes et notamment le TAG "site" qui cloisonnera la machine dans la zone d'administration de chaque admin local (machine1 sur site1 gérée par admin1, ...)

Une fois le TAG "site" rempli, les admins locaux ne voient plus que leurs machines.

Est-ce comme çà que çà se passe ?

Regroupement de plusieurs bases OCS

$
0
0
Bonjour,

Nous sommes une Université répartie sur 4 sites géographiques, chaque site a sa propre base ocs.
Aujourd'hui nous souhaiterions unifier ses 4 bases sur un seul et même serveur.
Est-il possible de faire cela, si oui comment procéderiez-vous ?

Chose à savoir : chaque base a ses propres TAGS et champs administratifs qui diffère des autres bases. C'est aussi pour cela que nous souhaitons unifier pour uniformiser tout cela. Faudra-t-il tout re-saisir sur le modèle commun ?

Merci

Answered: Répartition des machines par administrateur

$
0
0
Vous pouvez faire une recherche multi-critère sur votre tag site et inclure toutes les machines retournées à un groupe statique (dans votre cas 1 groupe = 1 site).

A votre place, je m'arrangerais pour que le tag par défaut corresponde au nom du site car dans votre contexte c'est une donnée plus importante que l'utilisateur ; Ainsi à l'installation de l'agent, le popup de 1er inventaire demanderait de renseigner le site et il sera ainsi facile de définir les groupes de machines correspondant au périmètre de chaque admin local.

> Il serait peut-être envisageable d'inverser les libellés des 2 tags (utilisateur_PC / site) au niveau de la base de données, mais en faire une sauvegarde au préalable...

> Pour vous répondre, les machines qui ne sont pas "taguées" avec le site ne seront pas vues par les admin locaux puisque pas encore inclues dans le groupe qui leur est attribué > Ce sera donc à un sadmin (vous ?) de les affecter / inclure à un groupe - site.

Note : Je n'utilise que des groupes statiques, mais peut-être aussi voir ce que pourraient faire des groupes dynamiques ?!

Ajouter un plugins

$
0
0
Bonjour,

J'ai installé OCSNG Server sur Centos 7. et j'aimeari avoir svp la procédure d'ajout d'un plugin.
 

Cdlt...

Answered: Choix prédéfini dans les tags "radiobutton"

Answered: Regroupement de plusieurs bases OCS

$
0
0
Bonjour,

Les 4 sites utilisent la même version d'OCS? Si oui, il suffit de "merger" les bases entre elles (1 reçoit les données des 3 autres). Si non, il faut mettre à niveau tous les serveurs et faire le "merge " ensuite. A tester bien sûr hors production.

Les tags et champs administratifs sont à modifier avant unification.

Cordialement

Frank

Pas de remontée machine dans OCS sur serveur distant

$
0
0
Bonjour,

J'ai installé sur un serveur distant OCS serveur, afin de pouvoir faire l'inventaire des parc informatique de mes clients.

J'installe don mon serveur, crée mon package d'installation client avec l'ip publique du serveur, et veut donc commencer le déploiement.

Après plusieurs tentatives, sur le poste client, toujours 2 messages d'erreurs :

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

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

J'ai désactivé le pare-feu sur le serveur afin de savoir si ça ne venait pas de la. Toujours le même problème.

Si vous pouvez m'apporter une aide ce serait vraiment top car je suis à court d'idée.

Cordialement

Answered: OCSINVENTORY-NG 2.0.5 SERVER & AGENT PROBLEM WITH HTTPS

$
0
0
Hi,

Have you created a certificate and copied it on each client?

Regards

Frank

Answered: problème configuration ocsinvetory reports MySQL error: Column count doesn't match value count at row 1 (err:1136)

$
0
0
Bonjour, c'est une mise a jour, depuis la version 2.0 si je me trompe pas, d'après certain forum, il dise que c'est a cause d'un nombre different de tables.

Par contre le ocs server a l'air de marcher, c'est juste le report qui pose problème.

J'arrive a avoir des pc de ocs depuis glpi.

Answered: Pas de remontée machine dans OCS sur serveur distant

$
0
0
Peux tu nous donner le log complet de ton agent en debug=2 ?

Mises à jour

$
0
0

Bonjour,

Je suis Epoc. laugh

Globalement ma question est porte sur deux points qui je pense sont en relation:

J'ai découvert OCS il y a quelque temps, mais la mise en place était assez compliquée, j'ai laissé tombé..crying

Puis je suis revenu à la charge, quelques mois plus tard, mais sur un serveur Linux (Debian 7), en utilisant LAMP...mon installation à fonctionner...mais j'ai effectué une mise à jour de l'OS, et mon serveur OCS à cessé de fonctionner...angry j'ai tout recommencé, mais je n'ai jamais effectué les MAJ de Debian...et depuis plus de 3 ans...surpriseet tout fonctionne.yes

Premier point: les MAJ de l'OS sont elles recommandées sur un serveur Linux avec OCS. surprise

Il y a 15 jours, j'ai remonter un autre serveur Linux, toujours Debian, mais cette fois j'ai fait toutes les MAJ, j'ai installé le version OCS 2.3, une fois arrivé sur la page web, j'ai constaté que la version 2.3.1 est dispo.

Deuxième point: quelle est la procédure pour effectuer la mise à jour ? Je peux la télécharger, et l'exécuter le setup  à partir du /tmp comme pour l'installation d'origine ?

Ou existe-t-il une MAJ comme pour GLPI ? sans perdre la BD ?

Merci d'avance,

Cordialement,laugh

Answered: Pas de remontée machine dans OCS sur serveur distant

$
0
0
Bonjour et merci de votre réponse,

Voici le log de l'agent du ocsinventory.ini :

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

et ocsinventory.log :

==============================================================================
Starting OCS Inventory NG Agent on Thursday, October 12, 2017 17:55:28.
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
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.

==============================================================================
Starting OCS Inventory NG Agent on Thursday, October 12, 2017 17:56:27.
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
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.

==============================================================================
Starting OCS Inventory NG Agent on Thursday, October 12, 2017 17:57:24.
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
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.

==============================================================================
Starting OCS Inventory NG Agent on Thursday, October 12, 2017 18:02:44.
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
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.

==============================================================================
Starting OCS Inventory NG Agent on Thursday, October 12, 2017 18:07:28.
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
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.

==============================================================================
Starting OCS Inventory NG Agent on Thursday, October 12, 2017 18:27:28.
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
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.

==============================================================================
Starting OCS Inventory NG Agent on Thursday, October 12, 2017 18:55:13.
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
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.

==============================================================================
Starting OCS Inventory NG Agent on Thursday, October 12, 2017 21:00:04.
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
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.

==============================================================================
Starting OCS Inventory NG Agent on Friday, October 13, 2017 00:54:04.
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
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.

==============================================================================
Starting OCS Inventory NG Agent on Friday, October 13, 2017 04:50:24.
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
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.

Merci par avance

Unable to login after server update

$
0
0

Hi,

I just updated my OCS NG server (debian Jessie) from version 2.0.5 to the latest 2.3, everything went OK during update.

When i want to log in ocsreports i always get an invalid user or password message with every user, when I check the error apache logs, this only error occurs when I try to log in :

[Tue Aug 22 11:40:05.486848 2017] [:error] [pid 16151] [client XX.XX.XX.XX:XX] PHP Warning:  mysqli_fetch_object() expects parameter 1 to be mysqli_result, boolean given in /usr/share/ocsinventory-reports/ocsreports/backend/AUTH/methode/local.php on line 27, referer: https://XX.XX.XX/ocsreports/index.php

Can anyone tell me what's going wrong when trying to authenticate and how to fix it ?

The database is OK, I can see my users in the operator table and my hardware also. Communication server works fine, I see my clients contacting the server in the logs

Thank you for your replies


Probleme utilisation plugin sous OCS 2.1.2

$
0
0
Bonjour,

Je découvre la possibilité d'utiliser des plugins pour remonter plus d'informations via l'agent installé sur les PCS.

J'ai suivi un tuto qui expliquait comment générer un nouveau package de déploiement en y intégrant un ou plusieurs plugins ( une dizaine de plugins au format zip récupérés sur le site OCS). J'ai déployer ce package via GPO sur une machine de test de mon domaine, installation OK.

Coté interface web d'OCS, quand je clique sur l'iconde gestion des plugins, la page web m'affiche aucun module activé pour votre profil. J'ai donc suivi un autre tuto qui expliquait qu'il fallait copier les fichiers plugins dans un dossier download sur le serveur OCS (debian). J'ai donc créé le dossier download qui n'existait pas dans "\usr\share\oscinventory-reports\ocsreports", et ensuite transféré les fichiers zip (les mêmes que pour la création de mon package) par SCP dans le dossier download.

Pour finir j'ai redémarré le serveur OCS mais le résultat est le même dans la gestion des plugins sur l'interface web, aucun module......

Merci d'avance pour votre aide

Answered: Pas de remontée machine dans OCS sur serveur distant

$
0
0
Manipulation effectuée, toujours pareil, par contre pas d'erreur 404 sur differents navigateurs

Problème du remontée d'un ordinateur pour test avec OCS Server 2.2 ,Windows-Agent-2.0.5 ,Centos7

$
0
0

Bonjour OCS community,

Je viens de mettre en place ocs comme solution d'inventaire packagé sous eyes of netowrk 5.0 centos 7

D'où le serveur OCS est 2.2 ,un serveur  SQL :MariaDB Server version 5.5.52-MariaDB,

un Serveur Web :Apache/2.4.6 (CentOS) 

 OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 avec le module mod_ssl bien installé 

mod_ssl-2.4.6-45.el7.centos.4.x86_64

 tout d'abord le ping depuis la machine client (où l'agent soit installé ) vers la machine serveur est bien faite ainsi que pas de firewall activés 

 Pour le moement on n'est pas appelé à utiliser https ou ssl donc une remontée est suffisante actuellement 

 j'ai installé  OCSNG-Windows-Agent-2.0.5 sur une machine Windows 7 32 bits qui se trouve sous le meme réseau  sans avoir définir une certificat cacert.pem (SSL=0) juste on mentionne l'adresse http du serveur 

  et voilà notre fichier .ini 

 [HTTP]

Server=http://192.168.42.100/ocsinventory

SSL=0

CaBundle=cacert.pem

AuthRequired=0

User=

Pwd=

ProxyType=0

Proxy=

ProxyPort=0

ProxyAuthRequired=0

ProxyUser=

ProxyPwd=

concernant les paramétres de connexion à la base de donnés les paramétres de connexion du  Serveur OCSNG avec  comme Hote localhost,Base ocsweb,Utilisateur root ,Mot de passe root66 nous donne une  Connexion à la base de données réussie Version et Configuration OCSNG valide

meme si on teste avec (user,pwd)(ocs ,ocs66) la connexion est toujours réussie

sous /etc/httpd/conf.d/ocsinventory-server.conf on a ceci 

  PerlSetEnv OCS_DB_HOST localhost

  # Replace 3306 by port where running MySQL server, generally 3306

  PerlSetEnv OCS_DB_PORT 3306

  # 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 ocs66

  ainsi que cette requete sql nous donne 

  Grants for ocs@localhost                                                                                   |

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

| GRANT USAGE ON *.* TO 'ocs'@'localhost' IDENTIFIED BY PASSWORD '*9614222E086C90E6B4AB9A1966C60E2379EA5705' |

| GRANT ALL PRIVILEGES ON `ocsweb`.* TO 'ocs'@'localhost'         

voilà le résultat des inventaires lancés

un extrait de  journal d'évenement de windows pour OCS est 

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

sous le serveur var/log/httpd/ j'aurais ce message

AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message

sous  C:\ProgramData\OCS Inventory NG\Agent et comme premier inventaire sans remontée voici le contenu du .log

Comme premier essai on a dans le fichier log 

Starting OCS Inventory NG Agent on Friday, August 18, 2017 12:16:53.

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:\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.0.5.0>

AGENT => Sending Prolog

DID_CHECK => Read DeviceID <380-INF-FARHAT-2015-04-17-16-33-03> and MACs <74:27:EA:55:89:2E> 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.42.100/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:05.

Puis nous avons relancé un deuxieme inventaire voici le message 

Starting OCS Inventory NG Agent on Friday, August 18, 2017 13:06:49.

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 <Unsupported protocol>

AGENT => Unloading communication provider

AGENT => Unloading plug-in(s)

AGENT => Execution duration: 00:00:00.

Answered: Pas de remontée machine dans OCS sur serveur distant

$
0
0
Bonjour,

Mettre debug=2 dans le fichier ocsinventory.ini. Lorsque tu accèdes à l'url http://ip_server_ocs/ocsinventory via un navigateur quelle erreur as-tu?

Cordialement

Frank

Ubuntu 16.04 Installation Nightmare

$
0
0

Team
This is the biggest nightmare I've ever experienced. I'm a Windows person and our Linux Server fell over. So having to rebuild the VM server and Ubuntu 16.04 and now up to the OCS Inventory installation.

I've spent 4 days trying to get this working
I gave up on Ubuntu the first time and tried Windows, but Windows didnt work either following these instructions but it had more errors than Microsoft could dream of.
http://wiki.ocsinventory-ng.org/index.php?title=Documentation:Server#Under_Windows_Operating_System.


Im using a 32bit Dell Server running Ubuntu 16.04.

I'm following these instructions which look very complete - but they dont work.
http://ask.ocsinventory-ng.org/4554/tutorial-ocs-on-ubuntu-16-04

Everything was going smooth uptil this part
sh setup.sh

The sh setup.sh appears to be running fine, but it keeps having errors.
I finally found some sort of log file ... /OCSNG_UNIX_SERVER-2.2/ocs_server_setup.log some how and it has these errors..

See screen shots.

Can someone help me please. Im lost without OCS here.

Can this still be installed and run on either windows or Ubuntu?? If so is there a complete step by step instruction on how to?? I thought it would be easy, but it seems impossible.

First Error

Thanks

Viewing all 7139 articles
Browse latest View live


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