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

Problème accès ocsreports

$
0
0
Bonjour,
 

J'ai effectué l'installation d'oscinventory NG server 2.3 sur une machine Linux (debian) sans problème et une fois que j'essaye d'accéder à "http://ip_du_server/ocsreports" via le navigateur web, il me retourne comme réponse : "The requested URL /ocsreports/ was not found on this server." J'ai cherché un peu partout une solution à ce problème rien n'y fait :/
Aurait-il un moyen de m'éclairer svp.

Dylan

Les nouveaux PC ne remontent pas

$
0
0

Bonjour,

J'ai mis à jour mon serveur OCS de la version 2.1.1 vers le 2.3, et depuis plus aucun nouveaux postes ne remontent.

J'ai essayé avec le nouvel agent, l'ancien agent, mais rien à faire.

Les anciens postes ont bien l'air de se mettre à jour (je les vois passer dans les logs, et le "last inventory" se met à jour), mais pour les nouveaux postes j'ai l'erreur suivante dans les logs :

Wed Feb  8 10:59:13 2017;11853;103;MATHIEU-PC-2017-02-06-11-20-50;10.106.46.6;OCS-NG_WINDOWS_AGENT_v2.3.0.0;prolog;new_deviceid
Wed Feb  8 10:59:13 2017;11853;100;MATHIEU-PC-2017-02-06-11-20-50;10.106.46.6;OCS-NG_WINDOWS_AGENT_v2.3.0.0;prolog;accepted
Wed Feb  8 10:59:13 2017;11853;311;MATHIEU-PC-2017-02-06-11-20-50;10.106.46.6;OCS-NG_WINDOWS_AGENT_v2.3.0.0;session;started
Wed Feb  8 10:59:21 2017;11874;319;MATHIEU-PC-2017-02-06-11-20-50;10.106.46.6;OCS-NG_WINDOWS_AGENT_v2.3.0.0;session;found
Wed Feb  8 10:59:21 2017;11874;104;MATHIEU-PC-2017-02-06-11-20-50;10.106.46.6;OCS-NG_WINDOWS_AGENT_v2.3.0.0;inventory;incoming
Wed Feb  8 10:59:21 2017;11874;528;MATHIEU-PC-2017-02-06-11-20-50;10.106.46.6;OCS-NG_WINDOWS_AGENT_v2.3.0.0;accountinfos;missing
Wed Feb  8 10:59:21 2017;11874;515;MATHIEU-PC-2017-02-06-11-20-50;10.106.46.6;OCS-NG_WINDOWS_AGENT_v2.3.0.0;end;error

Quand je regarde les logs sur le poste j'ai ça :

HTTP SERVER: Creating CInternetSession to send inventory results...OK.
HTTP SERVER: Getting HTTP Connection to server 10.106.76.115 port 80 using no authentication...OK
HTTP SERVER: INV : SEND received, sending inventory...ERROR: HTTP status code 500
OK.

HTTP SERVER: INV : ERROR : No server answer concerning the account update
HTTP SERVER: Closing HTTP connection....OK.
DOWNLOAD: Download is off

J'ai vérifié les identifiants pour se connecter à la bdd (dans la conf apache), tout va bien.

J'ai voulu voir les erreurs 500 dans le log apache, mais elles n'apparaissent pas (c'est bizarre)

Ma table software ne contient que 15000 enregistrements.

Du coup je me demande si dans l'update y a pas un alter sql qui serai mal passé ou autre, mais c'est très bizarre que les postes deja installés continuent de se mettre à jour, mais qu'on puisse pas rajouter de nouveaux postes...

Merci pour votre aide !

How to pick up all versions of IE with OCS ?

$
0
0

Hello,

I want to see all versions of IE that are installed on my computers. But in "software", OCS display only the line "Internet Explorer" without the different versions.

I used the "Registry" (I didn't forgot to activate the registry in "config" of course) but it don't works :

Is someone have an idea ?


Bonjour,

J'aimerais voir toutes les versions d'IE qui sont installées sur mes PCs, mais dans "Software", OCS n'affiche que la ligne "Internet Explorer" sans montrer toutes les versions installées.

J'ai essayé la partie "Registry" comme vous pouvez le voir sur l'image du dessus (je n'ai pas oublié de l'activer dans "config") mais ça ne marche pas. Quelqu'un a une idée ?

Merci d'avance / Thanks 

Answered: Problème accès ocsreports

$
0
0
Bonjour,

Quelle est le chemin du dossier ocsiventory sur Debian ?

/var/www/...?

Cordialement.

NO IPDISCOVER DATA : aucune remontée

$
0
0
Bonjour,

J'ai installé la version 2.3 d'ocs sur une debian serveur 8 Jessie.

J'ai installé un agent 2.3 sur un pc windows 10.

J'ai collé l'url de mon server debian/ocs à l'installation de mon agent windows, et je n'ai rien modifié d'autre pour l'agent.

J'ai collé l'url de mon serveur debian/ocs dans la configuration du server ocs via l'interface web.

Quand je clique sur "network" "ipdiscover", je n'ai rien...

log apache2 erreur :

"

[...]

[Wed Feb 08 16:06:36.449556 2017] [mpm_prefork:notice] [pid 10829] AH00163: Apache/2.4.10 (Debian) mod_perl/2.0.9dev Perl/v5.20.2 configured -- resuming normal operations
[Wed Feb 08 16:06:36.449621 2017] [core:notice] [pid 10829] AH00094: Command line: '/usr/sbin/apache2'
[Wed Feb 08 16:25:38.040508 2017] [mpm_prefork:notice] [pid 10829] AH00169: caught SIGTERM, shutting down
[Wed Feb 08 16:25:39.149438 2017] [mpm_prefork:notice] [pid 11667] AH00163: Apache/2.4.10 (Debian) mod_perl/2.0.9dev Perl/v5.20.2 configured -- resuming normal operations
[Wed Feb 08 16:25:39.149509 2017] [core:notice] [pid 11667] AH00094: Command line: '/usr/sbin/apache2'
[Wed Feb 08 16:42:40.257645 2017] [mpm_prefork:notice] [pid 11667] AH00169: caught SIGTERM, shutting down
[Wed Feb 08 16:42:41.388554 2017] [mpm_prefork:notice] [pid 11839] AH00163: Apache/2.4.10 (Debian) mod_perl/2.0.9dev Perl/v5.20.2 configured -- resuming normal operations
[Wed Feb 08 16:42:41.388614 2017] [core:notice] [pid 11839] AH00094: Command line: '/usr/sbin/apache2'

[...]

"

Merci de votre aide.

Cannot establish communication : 500 .... (certificate verify failed)

$
0
0

Hello to everyone smiley

Firstly, sorry for my english

I am a bit desesperate since friday crying

I have navigated on many discussions, like this one, but without solutionindecision And my "friend" Goggle doesn't give a useful clue.sad

My agent OCS cannot send their informations by https to the server OCS.

Can someone help me pleaseangel

My configuration :

  • Linux Ubuntu 16.04.1 on virtual machine (like the agent)
  • Apache 2.4.18
  • PHP 5.6.29-1
  • Mysql 5.7.16
  • OCS 2.3R
  • GLPI 9.1.1

It works only by http, but the problem is that I will have quickly to build a new server OCS/GLPI outside my company, so https is the only solution.

At the beginning, I create a certificate, using this method :

openssl genrsa -des3 -out server.key 1024

mv server.key server-old.key

openssl rsa -in server-old.key -out server.key

openssl req -new -key server.key -out server.csr

openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt

cp server.crt /etc/apache2/ssl/

cp server.key /etc/apache2/ssl/

a2ensite ssl.conf

/etc/init.d/apache2 restart

Then I changed the lies to the certificate into "/etc/apache2/sites-available/ssl.conf" :

        SSLCertificateKeyFile /etc/apache2/ssl/server.key

        SSLCertificateFile /etc/apache2/ssl/server.crt

I renamed the file "server.crt" to "cacert.pem" and copied it into the agent in /var/lib/ocsinventory-agent

My certificates looks like :

-----BEGIN CERTIFICATE-----

[..................................................]

-----END CERTIFICATE-----

I modifed the ocsinventory-agent.cfg 's configuration

server=https://myserverocs.com/ocsinventory
tag=myagentocs
ca=/var/lib/ocsinventory-agent/cacert.pem
basevardir=/var/lib/ocsinventory-agent
#debug=1
#logfile=/var/log/ocsinventory-agent

Moreover, I tested the certificates on an agent based on Windows seven with this configuration :

[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=0
Local=
NoSoftware=0
HKCU=0
NoTAG=1
IpDisc=
[HTTP]
Server=https://myserverocs.com:443/ocsinventory
SSL=1
CaBundle=C:\ProgramData\OCS Inventory NG\Agent\cacert.pem
AuthRequired=0
User=
Pwd=
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
[OCS Inventory Service]
TTO_WAIT=19260
PROLOG_FREQ=24
OLD_PROLOG_FREQ=24

The result on the agent based on Windows seven :

==============================================================================
Starting OCS Inventory NG Agent on Wednesday, February 08, 2017 10:11:28.
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 <Peer certificate cannot be authenticated with given CA certificates>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

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

But when I try to send information from a agent :

root@myserverocs:~# sudo ocsinventory-agent --debug
[debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.0.5
[debug] Log system initialised (Stderr)
[debug] --scan-homedirs missing. Don't scan user directories
[debug] Accountinfo file: /var/lib/ocsinventory-agent/https:__frelon.intranet.sereneo.com_ocsinventory/ocsinv.adm
[debug] OCS Agent initialised
[debug] Turns hooks on for /etc/ocsinventory/modules.conf
[debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.0.5
[debug] Log system initialised (Stderr)
[debug] Calling handlers : `start_handler'
[debug] [download] Calling download_start_handler
[debug]  - Net::SSLeay qw(die_now die_if_ssl_error) loaded
[debug] Compress::Zlib is available.
[debug] Calling handlers : `prolog_writer'
[debug] sending XML
[debug] sending: <?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
  <DEVICEID>myserverocs-2017-02-06-15-42-17</DEVICEID>
  <QUERY>PROLOG</QUERY>
</REQUEST>
[error] Cannot establish communication : 500 Can't connect to myserverocs.com:443 (certificate verify failed)

Do you have any clue ? Do you find any mistakes on my configuration ?

Thank you in advance yes

Answered: Node up or down?

$
0
0
i think that you can't, that's not a monitoring system, that's and inventory soft.

Answered: OCS Server has no machines in database

$
0
0

I have the same issue.

Debian 8 Jessie, ocs server 2.3 on Debian, and ocs agent 2.3 on windows 10.

I have installed this: libapache2-mod-perl2 and libapache2-mod-php5

and it's not work...

"

[Wed Feb 08 16:06:36.449556 2017] [mpm_prefork:notice] [pid 10829] AH00163: Apache/2.4.10 (Debian) mod_perl/2.0.9dev Perl/v5.20.2 configured -- resuming normal operations

"

My agent:

"

SetACL allowing Users / Power users read/write permissions on <C:\ProgramData\OCS Inventory NG\Agent>...Result: error
SetACL propagating inherited permissions on <C:\ProgramData\OCS Inventory NG\Agent\Download>...Result: error

[...]

SUCCESS: OCS Inventory NG Agent 2.3.0.0 successfully installed

"


NA in Account info: TAG

$
0
0
Hi,

I am running OCS Inventory 2.3 and seeing NA in Account info: TAG in the OCS Inventory NG Dashboard.  Please do let me know if you need any configs or debug logs.

Regards,

Kaushal

I want to know if OCS Inventory works with PostgreSQL

$
0
0
I´m interested to know if I can install OCS inventory NG Sever with the database PostgreSQL

Thanks

Answered: Cannot establish communication : 500 .... (certificate verify failed)

$
0
0

Thanks in advance for you Helpsmiley

I would like just to know :

  • The path to the certificate on the agent (windows and linux) ?
    • /var/lib/ocsinventory-agent/                                   -> for Linux Debian agent ?
    • C:\ProgramData\OCS Inventory NG\Agent             -> for Windows Seven agent ?

  • Is the certificate only the "server.crt" renamed in "cacert.pem", or I need also the "server.key"

Thank you again

Answered: NA in Account info: TAG

Answered: NO IPDISCOVER DATA : aucune remontée

$
0
0
avec ou sans ssl (ocsinventory.ini.

Cela ne change rien.

Log agent :

"

==============================================================================
Starting OCS Inventory NG Agent on Thursday, February 09, 2017 12:33:30.
AGENT => Running OCS Inventory NG Agent Version 2.3.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.3.0.0
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.3.0.0>
    AGENT => Sending getLabel request
    COM SERVER => Initializing cURL library for getFile
    COM SERVER => Using cURL without server authentication
    COM SERVER => Disabling cURL proxy support
    COM SERVER => Disabling cURL SSL server validation support
    COM SERVER => Sending fileGet request to URL <http://ip/ocsinventory/deploy/label>
    COM SERVER => fileGet response received <HTTP Status Code #404>
    COM SERVER => Cleaning cURL library
    AGENT => Failed to retrieve Label <HTTP Status Code #404>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <LANX-2017-02-09-12-01-06> and MACs <mac> 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://ip/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 => Inventory on startup option set to  
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

"

Merci de votre aide

Answered: AGENT => Failed to retrieve Label

$
0
0
Hi,

Its simply because you don't use TAG :D

If your OCS doesn't work, it's for something else.

Answered: client pc not showing in OCSINVENTRY SERVER,error and config file given.

$
0
0
Hi,

Try with ssl=0

(stop the ocs service, change the ocsinventory.ini with notepad (and not notepad++), and restart the service ;)

Answered: Cannot establish communication : 500 .... (certificate verify failed)

features changed after server update [2.2.1->2.3.0]

$
0
0
Hi,

I noticed 2 changes after update:

1. It impossible to find  content with national characters.

2. Cannot show more than 100 entries per page.

Can I do something about it?

Deployment Activate

Issue with OCS Inventory (no machines in DB)

$
0
0

Hello all,

I installed OCS today in CentOS 7 and a client in a Windows 8.1 computer.

If I go in the server (http://ocs001/ocsreports)>All computers I can see this computer.

But (that's the issue) if I go to the main page, I see the following:

Machines in DB                                           0
Machines Inventoried                                    0
Machines contacted today                            0
Machines Inventoried today                           0
Machines not seen in more than 30 day(s)     0
Number of SNMP devices                             0

What can it happen?

Many thanks!

Answered: No data available in table : aucune remontée

$
0
0
avec ou sans ssl (ocsinventory.ini.

Cela ne change rien.

Log agent :

"

==============================================================================
Starting OCS Inventory NG Agent on Thursday, February 09, 2017 12:33:30.
AGENT => Running OCS Inventory NG Agent Version 2.3.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.3.0.0
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.3.0.0>
    AGENT => Sending getLabel request
    COM SERVER => Initializing cURL library for getFile
    COM SERVER => Using cURL without server authentication
    COM SERVER => Disabling cURL proxy support
    COM SERVER => Disabling cURL SSL server validation support
    COM SERVER => Sending fileGet request to URL <http://ip/ocsinventory/deploy/label>
    COM SERVER => fileGet response received <HTTP Status Code #404>
    COM SERVER => Cleaning cURL library
    AGENT => Failed to retrieve Label <HTTP Status Code #404>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <LANX-2017-02-09-12-01-06> and MACs <mac> 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://ip/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 => Inventory on startup option set to  
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

"

Merci de votre aide
Viewing all 7083 articles
Browse latest View live


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