Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

Agent can't comunicate with server (404)

I'm using SuSE Linux 13.1 (VirtualBox) with Apache/2.4.6 and PHP 5.4.20 and OCS 2.1.2 with Agent 2.1.1.1 on Windows 7. OCS Frontend its ok, but Agents cant send data to server. I tryed access http://192.168.1.118/ocsinventory by browser but return the same error 404 (is it normal when i access by browser?).

AGENT LOG: ==============================================================================
Starting OCS Inventory NG Agent on Thursday, November 20, 2014 18:41:18.
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:\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.1.1.1>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <NSPDTI001-2014-11-19-21-39-42> and MACs <A4:17:31:FF:3F:09C6:17:31:FF:3F:09A4:17:31:FF:3F:0A5C:F9:DD:55:F6:2808:00:27:00:44:73> 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.1.118/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:02

Apache log is:

192.168.1.112 - - [20/Nov/2014:18:59:34 -0200] "POST /ocsinventory HTTP/1.1" 404 1004 "-" "OCS-NG_WINDOWS_AGENT_v2.1.1.1"

Apache error log:

[Thu Nov 20 18:54:03.806216 2014] [mpm_prefork:notice] [pid 1447] AH00170: caught SIGWINCH, shutting down gracefully
AH00557: httpd2-prefork: apr_sockaddr_info_get() failed for linux-qvvt
AH00558: httpd2-prefork: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
[Thu Nov 20 18:54:04.212877 2014] [ssl:warn] [pid 7562] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Nov 20 18:54:04.220969 2014] [mpm_prefork:notice] [pid 7562] AH00163: Apache/2.4.6 (Linux/SUSE) OpenSSL/1.0.1i configured -- resuming normal operations
[Thu Nov 20 18:54:04.221005 2014] [core:notice] [pid 7562] AH00094: Command line: '/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D ZABBIX -D SYSTEMD -D FOREGROUND'

z-ocsinventory-server.conf (/etc/apache2/conf.d/) its OK and the connection with mysql its OK too.

  # Master Database settings
  # Replace localhost by hostname or ip of MySQL server for WRITE
  PerlSetEnv OCS_DB_HOST localhost (OK)
  # Replace 3306 by port where running MySQL server, generally 3306
  PerlSetEnv OCS_DB_PORT 3306 (OK)
  # Name of database
  PerlSetEnv OCS_DB_NAME ocsweb (OK)
  PerlSetEnv OCS_DB_LOCAL ocsweb (OK)
  # User allowed to connect to database
  PerlSetEnv OCS_DB_USER ocs (OK)
  # Password for user
  PerlSetVar OCS_DB_PWD ocs123sgo456 (OK)

I tried download OCS-NG-Server-2.0.5-Ubuntu-11.04-64 VM and use with that Agent (2.1.1.1) and has the same error. OCS log path is empty and mysql too.

How can i debug the conection or check if the instalation is correct (if all perl modules are OK)?

 

 

in OCS Inventory NG server for Unix by (120 points)

2 Answers

0 votes
It look like your server is not loaded by apache. Look if mod_perl is correctly installed.
by (22k points)

Thanks for your reply! It's weird, because I am running Webmin on this server (Webmin use perl). Is there some way to check if mod_perl is loaded by OCS Server or any shell command?

Hi,

To see if mod_perl module is loaded, with your browser go to http://@ip_server_ocs/ocsinventory/. Then an 400 error appears. If not, mod_perl is not loaded nor active.

regards

please haw i can know if mod_perl loaded if you can help me with this problem in ocs agent ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #404> please please contact me raniaadouni@gmail.com 

please 

0 votes

hi i have the same problem like you with ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #404>

so if you solve your problem can you help me 

!!!!!

by (200 points)
Hi,

I tried use OCS and Zabbix in the same machine (VMWare Suse downloaded from Zabbix website). To solve, I downloaded OCS-NG-Server-2.0.5-Debian-6.0.4-64bits.tar and created a new VM to host OCS.

what is zabbix and where i installed i have ocs ng server-2.1.2 sous ubuntu 14.04 and ocs agent 2.1.1 sous windows 7 so i don't know what to do or where is the problem every seems work fine but this problem make me crazy !!!! :(

 

 
Powered by Question2Answer
...