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 http://wiki.ocsinventory-ng.org. Read it before asking your question.

OCSInventory-Agent-Windows10 HTTP Status Code #404

Hi everyone,

I recently install OCS Inventory Server 2.5 in Server Ubuntu 18.04 TLS using XAMP 7.2.11-0 for the LAMP part.

modules /usr/sbin/apache2ctl -t -D DUMP_MODULES:

Scalar value @part_query[...] better written as $part_query[...] at /usr/local/share/perl/5.26.1/Apache/Ocsinventory/Interface/AssetCategory.pm line 53.
Scalar value @args[...] better written as $args[...] at /usr/local/share/perl/5.26.1/Apache/Ocsinventory/Interface/AssetCategory.pm line 53.

Loaded Modules:
 core_module (static)
 so_module (static)
 watchdog_module (static)
 http_module (static)
 log_config_module (static)
 logio_module (static)
 version_module (static)
 unixd_module (static)
 access_compat_module (shared)
 alias_module (shared)
 auth_basic_module (shared)
 authn_core_module (shared)
 authn_file_module (shared)
 authz_core_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 cgid_module (shared)
 deflate_module (shared)
 dir_module (shared)
 env_module (shared)
 filter_module (shared)
 http2_module (shared)
 mime_module (shared)
 mpm_event_module (shared)
 negotiation_module (shared)
 perl_module (shared)
 reqtimeout_module (shared)
 setenvif_module (shared)
 socache_shmcb_module (shared)
 ssl_module (shared)
 status_module (shared)

For install i follow this link manual: http://ocsinventory-server.blogspot.com/

The problema is that when i try to conect the ocsinventory-agent in Windows 10 i get this error at the OCSInventory.log file:

Starting OCS Inventory NG Agent on Tuesday, December 11, 2018 08:35:34.
AGENT => Running OCS Inventory NG Agent Version 2.4.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.4.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.4.0.0>
AGENT => Sending Prolog
 DID_CHECK => Read DeviceID <Z-PC-2018-12-09-15-42-57> and MACs <00:FF:84:11:AF:> 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://192.168.2.10:80/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:00.

OCSInventory.ini file:

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

I appreciate the help!

in OCS Inventory NG agent for Windows by (240 points)
edited by

6 Answers

0 votes
Hi,

Have you activate perl module in apache? Post apache error.log file content.

Regards

Frank
by (88.9k points)
0 votes
Hi,

I made a2enmod perl with result: Module perl already enabled
by (240 points)
0 votes
You have installed XAMP. Does xamp provide perl module?

Regards

Frank
by (88.9k points)
0 votes

Hi,

I look phpinfo() and i can see:

  • Apache VersiĆ³n: Apache/2.4.35 (Unix) OpenSSL/1.0.2p PHP/7.2.11 mod_perl/2.0.8-dev Perl/v5.16.
  • Load Modules: core mod_so http_core prefork mod_authn_file mod_authn_dbm mod_authn_anon mod_authn_dbd mod_authn_socache mod_authn_core mod_authz_host mod_authz_groupfile mod_authz_user mod_authz_dbm mod_authz_owner mod_authz_dbd mod_authz_core mod_authnz_ldap mod_access_compat mod_auth_basic mod_auth_form mod_auth_digest mod_allowmethods mod_file_cache mod_cache mod_cache_disk mod_socache_shmcb mod_socache_dbm mod_socache_memcache mod_dbd mod_bucketeer mod_dumpio mod_echo mod_case_filter mod_case_filter_in mod_buffer mod_ratelimit mod_reqtimeout mod_ext_filter mod_request mod_include mod_filter mod_substitute mod_sed mod_charset_lite mod_deflate mod_mime util_ldap mod_log_config mod_log_debug mod_logio mod_env mod_mime_magic mod_cern_meta mod_expires mod_headers mod_usertrack mod_unique_id mod_setenvif mod_version mod_remoteip mod_proxy mod_proxy_connect mod_proxy_ftp mod_proxy_http mod_proxy_fcgi mod_proxy_scgi mod_proxy_ajp mod_proxy_balancer mod_proxy_express mod_session mod_session_cookie mod_session_dbd mod_slotmem_shm mod_ssl mod_lbmethod_byrequests mod_lbmethod_bytraffic mod_lbmethod_bybusyness mod_lbmethod_heartbeat mod_unixd mod_dav mod_status mod_autoindex mod_info mod_suexec mod_cgi mod_cgid mod_dav_fs mod_vhost_alias mod_negotiation mod_dir mod_actions mod_speling mod_userdir mod_alias mod_rewrite mod_php7 mod_perl

Just curious because i see that too:

  • Hostname:Port:  localhost:0

But i have: $_SERVER['SERVER_PORT']: 80

Is that normal?

Thank you for your fast answes

by (240 points)
0 votes
Apache has been restarted after installation ? Could you access http://192.168.2.10/ocsinventory directly from a browser ? If not verify that no firewall is started on your server.

Regards

Frank
by (88.9k points)
0 votes

Yes i restarted everytime i enablet z-ocsinventory-server.conf to /etc/apache2/sites-enabled with a2enconf. Or when i make a change in the conf.

Firewall is disabled:

$ sudo ufw status
Status: inactive

If i try to acces to http://192.168.2.10/ocsinventory i get a time out page. So i guess i can't acces :(.

Could be related to:

Scalar value @part_query[...] better written as $part_query[...] at /usr/local/share/perl/5.26.1/Apache/Ocsinventory/Interface/AssetCategory.pm line 53.
Scalar value @args[...] better written as $args[...] at /usr/local/share/perl/5.26.1/Apache/Ocsinventory/Interface/AssetCategory.pm line 53.

by (240 points)
 
Powered by Question2Answer
...