Agente OCS não se comunica com server [RESOLVIDO]

13. O Agent não comunica com o Servidor

André Ricardo da Silva
andrecnk5

(usa Debian)

Enviado em 26/07/2015 - 14:40h

Boa tarde!!!

Fiz a instalação do OCS em uma máquina virtual com as seguintes confs;
Debian Jessie 8.1
OCS 2.1.2

Segui os tutoriais oficiais do site do OCS e vários aqui VOL, olhei atentamente as configurações do OCS e as respostas deste Tópico e mesmo assim o agente não comunica com o Servidor

Deu um Windows XP Virtual na mesma rede que o Server OCS, eu acesso a interface web, eu instalei um client mysql e consegui dessa maquina fazer uma conexão ao servidor mysql com o usuario ocs, mas o inventário não é enviado!

Segue abaixo log do windows

Starting OCS Inventory NG Agent on Sunday, July 26, 2015 14:35:56.
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:\Arquivos de programas\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:\Arquivos de programas\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.1>
AGENT => Sending getLabel request
COM SERVER => Initializing cURL library for getFile
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:\Documents and Settings\All Users\Dados de aplicativos\OCS Inventory NG\Agent\cacert.pem>
COM SERVER => Sending fileGet request to URL <http://192.168.1.110/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 <WKS-01-2015-07-25-21-06-47> and MACs <00:0C:29:8A:30:41> 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:\Documents and Settings\All Users\Dados de aplicativos\OCS Inventory NG\Agent\cacert.pem>
COM SERVER => Sending HTTP Post request to URL <http://192.168.1.110/ocsinventory>
COM SERVER => HTTP Post response received <HTTP Status Code #404>
COM SERVER => Cleaning cURL library
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.



  


14. Re: Agente OCS não se comunica com server [RESOLVIDO]

João Paulo de Vasconcelos Resende
jpvr2005

(usa Debian)

Enviado em 26/07/2015 - 21:21h

Boa noite amigo!
Poste a saída do seu arquivo:
/etc/httpd/conf.d/z-ocsinventory-server.conf

Acredito que no Debian esteja instalado em outro diretório, portanto faça uma busca por esse arquivo e poste o contéudo dele.

Verifique se não existe outro serviço nesse servidor correndo na porta 80, se tiver, experimente alterar o localhost para localhost:8080 nas configs.



15. Failed connection to OCS Inventory service

Erica P
Erica_S

(usa CentOS)

Enviado em 02/10/2015 - 10:41h

Instalei o agente OCs e ele não comunica com o server
Failed connection to OCS Inventory service
Erro code 1060: O serviço especificado não existe ou não esta instalado.
Fiz os procedimentos postados e mesmo assim não resolveu, poderia me ajudar?

Starting OCS Inventory NG Agent on Friday, October 02, 2015 08:48:48.
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)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.1>
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:03.




16. Re: Agente OCS não se comunica com server [RESOLVIDO]

João Paulo de Vasconcelos Resende
jpvr2005

(usa Debian)

Enviado em 02/10/2015 - 10:54h

Erica_S escreveu:

Instalei o agente OCs e ele não comunica com o server
Failed connection to OCS Inventory service
Erro code 1060: O serviço especificado não existe ou não esta instalado.
Fiz os procedimentos postados e mesmo assim não resolveu, poderia me ajudar?

Starting OCS Inventory NG Agent on Friday, October 02, 2015 08:48:48.
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)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.1>
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:03.



Bom dia amigo, seu problema pode estar sendo causado por dois motivos:
1º - O OCS funciona na porta 80 e se você tiver um outro serviço ou aplicação rodando nessa porta o Agent do OCS não consiguirá se comunicar;
2º - O Endereço do servidor do OCS foi informado incorretamente no agent (na estação).

Você está usando estação windows ou linux?
Se for windows, vá em: C:\Users\All Users\OCS Inventory NG\Agent nesse diretório, procure o arquivo ocsinventory.ini e poste seu conteúdo aqui.

Att.
João Paulo


17. Impossível de se comunicar com o OCS server!!!

Roger William
rogerwr

(usa Ubuntu)

Enviado em 15/10/2015 - 15:01h

Boa tarde galera!

Seguinte, já estou enputecido com esse mesmo problema e não há meio de resolver! já tentei as soluções propostas: alterei o arquivo "z-ocsinventory-server.conf", e o "/usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php" colocando o usuario e senha criado para o ocs, mas não resolve.

O que me deixou confuso foi que no tutorial que segui do OCS (http://wiki.ocsinventory-ng.org/index.php/Install_ocs_ubuntu_server/pt) pedem para descompactar o diretorio do OCS e instalar direto na raiz (não conheço muito de servidores web, mas achei que isso tinha que ser feito dentro de /var/www/). Depois pedem também para criar um alias em "/etc/apache2/sites-enabled/000-default.conf " e direcionar a url raiz do servidor (no meu caso redirecionei para http://meu_ip/ocs). Não sei se isso tem a ver, mas em todos os exemplos que vejo (e quando instalei em xampp também) o acesso é feito por /ocsreports...

... É aí que eu acredito estar o problema! No agente eu coloco o caminho do server como indicado "http://meu_ip/ocsinventory" mas na verdade eu não acesso o "ocsreports"... teria alguma coisa a ver???

Estou usando Ubuntu server 14.04, OCS 2.2.1 Beta e o agente 2.1.1 no Windows 7 (mas já testei com o agente 2.0.5 também)

Aqui estão os logs do arquivo OCSInventory



==============================================================================
Starting OCS Inventory NG Agent on Thursday, October 15, 2015 14:06:14.
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 (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.0.5.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 => Enabling cURL SSL server validation support using CA Bundle <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
COM SERVER => Sending fileGet request to URL <http://192.168.50.8/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 <INFRA05-2015-10-15-13-28-20> and MACs <1C:87:2C:C5:33:4B0A:00:27:00:00:00> 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.168.50.8/ocsinventory>
COM SERVER => HTTP Post response received <HTTP Status Code #404>
COM SERVER => Cleaning cURL library
================= TRACE START ===============

================= TRACE STOP ===============
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.

==============================================================================
Starting OCS Inventory NG Agent on Thursday, October 15, 2015 14:06:23.
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 (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.0.5.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 => Enabling cURL SSL server validation support using CA Bundle <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
COM SERVER => Sending fileGet request to URL <http://192.168.50.8/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 <INFRA05-2015-10-15-13-28-20> and MACs <1C:87:2C:C5:33:4B0A:00:27:00:00:00> 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.168.50.8/ocsinventory>
COM SERVER => HTTP Post response received <HTTP Status Code #404>
COM SERVER => Cleaning cURL library
================= TRACE START ===============

================= TRACE STOP ===============
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.

==============================================================================
Starting OCS Inventory NG Agent on Thursday, October 15, 2015 14:06:29.
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 (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.0.5.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 => Enabling cURL SSL server validation support using CA Bundle <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
COM SERVER => Sending fileGet request to URL <http://192.168.50.8/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 <INFRA05-2015-10-15-13-28-20> and MACs <1C:87:2C:C5:33:4B0A:00:27:00:00:00> 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.168.50.8/ocsinventory>
COM SERVER => HTTP Post response received <HTTP Status Code #404>
COM SERVER => Cleaning cURL library
================= TRACE START ===============

================= TRACE STOP ===============
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.

==============================================================================
Starting OCS Inventory NG Agent on Thursday, October 15, 2015 14:08:28.
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 (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.0.5.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 => Enabling cURL SSL server validation support using CA Bundle <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
COM SERVER => Sending fileGet request to URL <http://192.168.50.8/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 <INFRA05-2015-10-15-13-28-20> and MACs <1C:87:2C:C5:33:4B0A:00:27:00:00:00> 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.168.50.8/ocsinventory>
COM SERVER => HTTP Post response received <HTTP Status Code #404>
COM SERVER => Cleaning cURL library
================= TRACE START ===============

================= TRACE STOP ===============
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.

==============================================================================
Starting OCS Inventory NG Agent on Thursday, October 15, 2015 14:09:18.
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 (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.0.5.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 => Enabling cURL SSL server validation support using CA Bundle <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
COM SERVER => Sending fileGet request to URL <http://192.168.50.8/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 <INFRA05-2015-10-15-13-28-20> and MACs <1C:87:2C:C5:33:4B0A:00:27:00:00:00> 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.168.50.8/ocsinventory>
COM SERVER => HTTP Post response received <HTTP Status Code #404>
COM SERVER => Cleaning cURL library
================= TRACE START ===============

================= TRACE STOP ===============
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.

==============================================================================
Starting OCS Inventory NG Agent on Thursday, October 15, 2015 14:10:15.
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 (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.0.5.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 => Enabling cURL SSL server validation support using CA Bundle <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
COM SERVER => Sending fileGet request to URL <http://192.168.50.8/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 <INFRA05-2015-10-15-13-28-20> and MACs <1C:87:2C:C5:33:4B0A:00:27:00:00:00> 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.168.50.8/ocsinventory>
COM SERVER => HTTP Post response received <HTTP Status Code #404>
COM SERVER => Cleaning cURL library
================= TRACE START ===============

================= TRACE STOP ===============
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.

==============================================================================
Starting OCS Inventory NG Agent on Thursday, October 15, 2015 14:20:57.
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 (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.0.5.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 => Enabling cURL SSL server validation support using CA Bundle <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
COM SERVER => Sending fileGet request to URL <http://192.168.50.8/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 <INFRA05-2015-10-15-13-28-20> and MACs <1C:87:2C:C5:33:4B0A:00:27:00:00:00> 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.168.50.8/ocsinventory>
COM SERVER => HTTP Post response received <HTTP Status Code #404>
COM SERVER => Cleaning cURL library
================= TRACE START ===============

================= TRACE STOP ===============
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.

==============================================================================
Starting OCS Inventory NG Agent on Thursday, October 15, 2015 14:24:12.
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 (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.0.5.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 => Enabling cURL SSL server validation support using CA Bundle <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
COM SERVER => Sending fileGet request to URL <http://192.168.50.8/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 <INFRA05-2015-10-15-13-28-20> and MACs <1C:87:2C:C5:33:4B0A:00:27:00:00:00> 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.168.50.8/ocsinventory>
COM SERVER => HTTP Post response received <HTTP Status Code #404>
COM SERVER => Cleaning cURL library
================= TRACE START ===============

================= TRACE STOP ===============
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.

Fico à disposição pra passar mais informações...

Att



18. Re: Agente OCS não se comunica com server [RESOLVIDO]

João Paulo de Vasconcelos Resende
jpvr2005

(usa Debian)

Enviado em 16/10/2015 - 00:34h

Boa noite amigo,
quanto ao ocsinventory ou ocsinventory, é dessa forma mesmo q vc fez, está correto!
Quando tive problema com o ocs, pesquisei muito nos foruns pela web e esse erro 404 só vi acontecendo quando havia alguma aplicação rodando em conflito na porta 80 ou quando o ip do server era informado errado. Se o seu ip é esse mesmo que gerou no log, então deve ser algum conflito na porta 80. Você chegou a verificar se há algo rodando nessa porta 80?

Att.
João Paulo


19. Re: Agente OCS não se comunica com server [RESOLVIDO]

Roger William
rogerwr

(usa Ubuntu)

Enviado em 16/10/2015 - 08:40h

Bom dia, João Paulo!

Estou rodando o Apache na porta 80 (com o GLPI). O problema é esse então? se sim, como posso resolver?

(como disse, não conheço muito sobre web servers)

root@ubuntu:~# fuser 80/tcp
80/tcp: 12212 13024 13072 13090 13151 13169 13178 13187 13196 13205 13214
root@ubuntu:~# ps 12212 13024 13072 13090 13151 13169 13178 13187 13196 13205
PID TTY STAT TIME COMMAND
12212 ? Ss 0:01 /usr/sbin/apache2 -k start
13024 ? S 0:00 /usr/sbin/apache2 -k start
13072 ? S 0:00 /usr/sbin/apache2 -k start
13090 ? S 0:00 /usr/sbin/apache2 -k start
13151 ? S 0:00 /usr/sbin/apache2 -k start
13169 ? S 0:00 /usr/sbin/apache2 -k start
13178 ? S 0:00 /usr/sbin/apache2 -k start
13187 ? S 0:00 /usr/sbin/apache2 -k start
13196 ? S 0:00 /usr/sbin/apache2 -k start
13205 ? S 0:00 /usr/sbin/apache2 -k start

Obrigado.

Roger.



20. Re: Agente OCS não se comunica com server [RESOLVIDO]

Roger William
rogerwr

(usa Ubuntu)

Enviado em 23/10/2015 - 16:16h

Tenho pesquisado por esse problema na internet e muita gente está dizendo que pode ser por causa do Perl!
Vi que tenho ele instalado mas me lembrei que quando fui instalar os modulos (seguindo conforme está no site oficial do OCS) ele deu erro em um dos modulos que o tutorial pedia pra instalar. Eu tirei da lista e instalei o resto...

Alguem já passou por isso e pode me ajudar??? Desinstalo o Perl e instalo novamente? Apago ou modifico alguma coisa? Alguma sugestão?

Att,

Roger


21. Resuelto era el agente

Juan Carlos Aguirre Alvarado
jcaguirre

(usa Debian)

Enviado em 02/11/2015 - 04:05h


Saludos, yo he resuelto el problema de esta manera me tomo casi 2 semanas poder dar con la respuesta :
Antes lo hacia de la manera tipica descargar he instalar todas sus dependencias y luego descargar el ocsinventory server.tar e instalar pero ahora la cosa es mas facil. :)

apt-get install ocsinventory-server

Luego descargue la version de agente actual...pero seguia teniendo los mismos problemas..
Hasta que resolvi el tema ...solo era : LA ULTIMA VERSION DEL AGENTE FALLA EN WINDOWS 7, ASI QUE ME DESCARGUE UNA VERSION ANTERIOR DEL AGENTE " DESINSTALE LA ACTUAL HE INSTALE LA VERSION ANTERIOR "

Listo eso era todo..wiii :)


22. Re: Agente OCS não se comunica com server [RESOLVIDO]

Leonardo Dornelas Soares
leonardo.dss

(usa Debian)

Enviado em 25/01/2016 - 12:06h

jpvr2005 escreveu:

Bom dia a todos,
Tive problemas semelhantes aos descritos pelos amigos e consegui resolver fazendo uma análise dos logs:
Vou postar aqui, caso ajude mais alguém:
Primeiramente, acessei o diretório:
C:\ProgramData\OCS Inventory NG\Agent

Dentro desse diretório, você encontra o arquivo OCSInventory.log
Nele identifiquei que havia o seguinte erro:

Starting OCS Inventory NG Agent on Friday, December 26, 2014 09:31:05.
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)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.1>
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:01.


Após pesquisar no fórum do OCS, encontrei a dica de que poderia ser a senha do mysql que não estava batendo com a senha contida no arquivo: /etc/httpd/conf.d/z-ocsinventory-server.conf
Então entre neste arquivo e observe as seguintes linhas:
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 ocs


Altere a linha: PerlSetEnv OCS_DB_USER ocs
para
PerlSetEnv OCS_DB_USER "usuariodomysql"
e essa linha: PerlSetVar OCS_DB_PWD ocs
para
PerlSetVar OCS_DB_PWD "senhadomysql"

Para alterar a senha do mysql, use o seguinte comando (logado no servidor mysql):
mysql> update mysql.user set password=PASSWORD('novasenha') where user='nomeusuario';

Depois disso, deve-se reiniciar o apache e rodar a opção "Run..." do botão direito do OCS agent e pronto.
Caso não suba para o OCS, vá até o log novamente e postem aqui.


Segue os links de onde consegui as informações:
Forum OCS:
http://forums.ocsinventory-ng.org/viewtopic.php?id=9412

Mudar senha do mysql:
http://www.vivaolinux.com.br/dica/Alterando-senha-de-usuario-no-MySQL

Att.
João Paulo


Parabéns, resolvi seguindo essas instruções. João.


23. Re: Agente OCS não se comunica com server [RESOLVIDO]

Sidney Perrinchelli
sperrinchelli

(usa Outra)

Enviado em 17/06/2016 - 15:56h

caciocar escreveu:

Fala galera, beleza!

Para quem usa debian o caminho absoluto para o arquivo de configuração é /etc/apache2/conf-enable/ocsinventory-server.conf.

Abraço!



Para quem usa windows onde modifica a senha? Estou com o mesmo problema e utilizei osc ng server para windows, segue o log de uma estação que não comunica com o servidor:

==============================================================================
Starting OCS Inventory NG Agent on Friday, June 17, 2016 15:33:04.
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 => Writing configuration to file <C:\ProgramData\OCS Inventory NG\Agent\ocsinventory.ini>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

==============================================================================
Starting OCS Inventory NG Agent on Friday, June 17, 2016 15:33: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)
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
DID_CHECK => Hostname changed new:<APAA_RECEPCAO> old:<>
DID_CHECK => Generating new unique ID for device <APAA_RECEPCAO>
ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #404>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:11.




24. Instalação OCS CentOS 6.x

José Bento
jose.freitas.rj

(usa CentOS)

Enviado em 30/06/2016 - 15:11h

Olá galera!
Vejo muitas dificuldades em posts pela internet de como implantar o OCS Server no CentOS 6.x. Depois de bater muito a minha cabeça também na configuração nesta Distro, segue o link que me fez conseguir obter sucesso.

http://www.cafecomlinux.com.br/tutoriais/instalacao-do-ocs-inventory-rhelcentos-6-x

OBS: Apesar do cliente acessar via browser a página /ocsreports, o envio da informação Cliente/Servidor é feita pelo "endereço virtual" (que não é acessado via browser) /ocsinventory. Esse é o pulo do gato!!! Muitas pessoas (inclusive EU, até ler tal post) acham que o endereço a ser configurado no Agent pra se comunicar com o OCS Server é /ocsreports e não é.



01 02 03



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts