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)?