Problemas na conexão do OCS Agente e o servidor

1. Problemas na conexão do OCS Agente e o servidor

Caio Andrade
caiocastro_57

(usa Outra)

Enviado em 11/02/2020 - 16:37h

Olá,

Instalei o OCS servidor no linux CentOS 7. Ao tentar comunicar um agente no windows10 e o servidor OCS ocorre algum problema. O que pode ser?
Na empresa tem um Firewall Pfsense

Segue o LOG
Starting OCS Inventory NG Agent on Tuesday, February 11, 2020 16:29:46.
AGENT => Running OCS Inventory NG Agent Version 2.6.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.6.0.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.6.0.0>
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.

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




  


2. Re: Problemas na conexão do OCS Agente e o servidor

HML
matroot

(usa Debian)

Enviado em 11/02/2020 - 17:59h

Você tem acesso aos logs de erro do Apache? Se tiver posta aqui.

O agente tá configurado para usar SSL e um certificado, já verificou se ele está correto?


3. Re: Problemas na conexão do OCS Agente e o servidor

Caio Andrade
caiocastro_57

(usa Outra)

Enviado em 12/02/2020 - 15:29h

Sou novo no linux. E não estou conseguindo encontrar os logs do apache


4. Re: Problemas na conexão do OCS Agente e o servidor

Caio Andrade
caiocastro_57

(usa Outra)

Enviado em 12/02/2020 - 15:40h

Conteudo do access_log

192.168.122.1 - - [10/Feb/2020:16:38:53 -0300] "GET / HTTP/1.1" 403 4897 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"
192.168.122.1 - - [10/Feb/2020:16:38:53 -0300] "GET /noindex/css/open-sans.css HTTP/1.1" 200 5081 "http://192.168.122.1/" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"
192.168.122.1 - - [10/Feb/2020:16:38:53 -0300] "GET /noindex/css/bootstrap.min.css HTTP/1.1" 200 19341 "http://192.168.122.1/" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"
192.168.122.1 - - [10/Feb/2020:16:38:53 -0300] "GET /images/apache_pb.gif HTTP/1.1" 200 2326 "http://192.168.122.1/" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"
192.168.122.1 - - [10/Feb/2020:16:38:53 -0300] "GET /images/poweredby.png HTTP/1.1" 200 3956 "http://192.168.122.1/" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"
192.168.122.1 - - [10/Feb/2020:16:38:53 -0300] "GET /favicon.ico HTTP/1.1" 404 209 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"
192.168.122.1 - - [10/Feb/2020:16:38:53 -0300] "GET /noindex/css/fonts/Light/OpenSans-Light.woff HTTP/1.1" 404 241 "http://192.168.122.1/noindex/css/open-sans.css" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"
192.168.122.1 - - [10/Feb/2020:16:38:53 -0300] "GET /noindex/css/fonts/Bold/OpenSans-Bold.woff HTTP/1.1" 404 239 "http://192.168.122.1/noindex/css/open-sans.css" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"
192.168.122.1 - - [10/Feb/2020:16:38:53 -0300] "GET /noindex/css/fonts/Bold/OpenSans-Bold.ttf HTTP/1.1" 404 238 "http://192.168.122.1/noindex/css/open-sans.css" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"
192.168.122.1 - - [10/Feb/2020:16:38:53 -0300] "GET /noindex/css/fonts/Light/OpenSans-Light.ttf HTTP/1.1" 404 240 "http://192.168.122.1/noindex/css/open-sans.css" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"
192.168.122.1 - - [10/Feb/2020:16:38:58 -0300] "GET /ocsreports HTTP/1.1" 301 240 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"
192.168.122.1 - - [10/Feb/2020:16:38:58 -0300] "GET /ocsreports/ HTTP/1.1" 200 2922 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"
192.168.122.1 - - [10/Feb/2020:16:38:59 -0300] "GET /ocsreports/libraries/bootstrap/css/bootstrap-theme.min.css HTTP/1.1" 200 23409 "http://192.168.122.1/ocsreports/" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"
192.168.122.1 - - [10/Feb/2020:16:38:59 -0300] "GET /ocsreports/libraries/bootstrap/css/bootstrap.min.css HTTP/1.1" 200 121200 "http://192.168.122.1/ocsreports/" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"
"/var/log/httpd/access_log" 1360L, 331382C

Conteudo do error_log
[Mon Feb 10 16:38:28.071306 2020] [suexec:notice] [pid 4931] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
Scalar value @args[$i] better written as $args[$i] at /usr/share/perl5/vendor_perl/Apache/Ocsinventory/Interface/AssetCategory.pm line 54.
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
[Mon Feb 10 16:38:28.600085 2020] [lbmethod_heartbeat:notice] [pid 4931] AH02282: No slotmem from mod_heartmonitor
[Mon Feb 10 16:38:29.469769 2020] [mpm_prefork:notice] [pid 4931] AH00163: Apache/2.4.6 (CentOS) PHP/7.3.14 mod_perl/2.0.11 Perl/v5.16.3 configured -- resuming normal operations
[Mon Feb 10 16:38:29.469809 2020] [core:notice] [pid 4931] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Mon Feb 10 16:38:53.274978 2020] [autoindex:error] [pid 4933] [client 192.168.122.1:55018] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Mon Feb 10 16:38:58.933725 2020] [php7:warn] [pid 4933] [client 192.168.122.1:55018] PHP Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, null given in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 67
[Mon Feb 10 16:38:58.933802 2020] [php7:warn] [pid 4933] [client 192.168.122.1:55018] PHP Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 104
[Mon Feb 10 16:38:58.933821 2020] [php7:warn] [pid 4933] [client 192.168.122.1:55018] PHP Warning: mysqli_fetch_object() expects parameter 1 to be mysqli_result, null given in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 38
[Mon Feb 10 16:39:25.211174 2020] [php7:warn] [pid 4934] [client 192.168.122.1:55060] PHP Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, null given in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 67, referer: http://192.168.122.1/ocsreports/
[Mon Feb 10 16:39:25.211226 2020] [php7:warn] [pid 4934] [client 192.168.122.1:55060] PHP Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 104, referer: http://192.168.122.1/ocsreports/
[Mon Feb 10 16:39:25.211244 2020] [php7:warn] [pid 4934] [client 192.168.122.1:55060] PHP Warning: mysqli_fetch_object() expects parameter 1 to be mysqli_result, null given in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 38, referer: http://192.168.122.1/ocsreports/
@
"/var/log/httpd/error_log" 93L, 16264C






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts