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.6 available

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

Windows Agent returns http 404 error

I have a machine with Ubuntu 14.04.2 LTS, with apache 2.2.22 installed, and i'm trying to use OCS inventory 2.1.2.
The installation seems to be ok, and I already have access the page http://<ip>/ocsreports normally.
When I installed OCS agent 2.1.1.3 for windows in another machine I realized that the info of this computer wasn't sent to server, even with the configuration page http://<ip>/ocsinvetory at agent configs.
I find out that the agent's log return HTTP 404 error, and Apache's log at server returns ("File does not exist: /var/www/html/ocsinventory").
What should I do? Follows my conf's data:

/etc/apache2/conf.d/z-ocsinventory-server.conf:
<IfModule mod_perl.c>
PerlSetEnv OCS_MODPERL_VERSION 2
PerlSetEnv OCS_DB_HOST localhost
PerlSetEnv OCS_DB_PORT 3306
PerlSetEnv OCS_DB_NAME ocsweb
PerlSetEnv OCS_DB_LOCAL ocsweb
PerlSetEnv OCS_DB_USER ocs
PerlSetVar OCS_DB_PWD ******* (not "ocs")
PerlSetEnv OCS_OPT_LOGPATH "/var/log/ocsinventory-server"
PerlSetEnv OCS_OPT_DBI_PRINT_ERROR 1
PerlSetEnv OCS_OPT_UNICODE_SUPPORT 1
PerlAddVar OCS_OPT_TRUSTED_IP 127.0.0.1
PerlSetEnv OCS_OPT_WEB_SERVICE_ENABLED 0
PerlSetEnv OCS_OPT_WEB_SERVICE_RESULTS_LIMIT 100
PerlSetEnv OCS_OPT_OPTIONS_NOT_OVERLOADED 0
PerlSetEnv OCS_OPT_COMPRESS_TRY_OTHERS 1
PerlSetEnv OCS_OPT_LOGLEVEL 2
PerlSetEnv OCS_OPT_PROLOG_FREQ 12
PerlSetEnv OCS_OPT_AUTO_DUPLICATE_LVL 15
PerlSetEnv OCS_OPT_SECURITY_LEVEL 0
PerlSetEnv OCS_OPT_LOCK_REUSE_TIME 600
PerlSetEnv OCS_OPT_TRACE_DELETED 0
PerlSetEnv OCS_OPT_FREQUENCY 0
PerlSetEnv OCS_OPT_INVENTORY_DIFF 1
PerlSetEnv OCS_OPT_INVENTORY_TRANSACTION 1
PerlSetEnv OCS_OPT_INVENTORY_WRITE_DIFF 1
PerlSetEnv OCS_OPT_INVENTORY_CACHE_ENABLED 1
PerlSetEnv OCS_OPT_INVENTORY_CACHE_REVALIDATE 7
PerlSetEnv OCS_OPT_INVENTORY_CACHE_KEEP 1
PerlSetEnv OCS_OPT_DOWNLOAD 0
PerlSetEnv OCS_OPT_DOWNLOAD_PERIOD_LENGTH 10
PerlSetEnv OCS_OPT_DOWNLOAD_CYCLE_LATENCY 60
PerlSetEnv OCS_OPT_DOWNLOAD_FRAG_LATENCY 60
PerlSetEnv OCS_OPT_DOWNLOAD_GROUPS_TRACE_EVENTS 1
PerlSetEnv OCS_OPT_DOWNLOAD_PERIOD_LATENCY 60
PerlSetEnv OCS_OPT_DOWNLOAD_TIMEOUT 7
PerlSetEnv OCS_OPT_DOWNLOAD_EXECUTION_TIMEOUT 120
PerlSetEnv OCS_OPT_DEPLOY 0
PerlSetEnv OCS_OPT_ENABLE_GROUPS 1
PerlSetEnv OCS_OPT_GROUPS_CACHE_OFFSET 43200
PerlSetEnv OCS_OPT_GROUPS_CACHE_REVALIDATE 43200
PerlSetEnv OCS_OPT_IPDISCOVER 2
PerlSetEnv OCS_OPT_IPDISCOVER_BETTER_THRESHOLD 1
PerlSetEnv OCS_OPT_IPDISCOVER_LATENCY 100
PerlSetEnv OCS_OPT_IPDISCOVER_MAX_ALIVE 14
PerlSetEnv OCS_OPT_IPDISCOVER_NO_POSTPONE 0
PerlSetEnv OCS_OPT_IPDISCOVER_USE_GROUPS 1
PerlSetEnv OCS_OPT_GENERATE_OCS_FILES 0
PerlSetEnv OCS_OPT_OCS_FILES_FORMAT OCS
PerlSetEnv OCS_OPT_OCS_FILES_OVERWRITE 0
PerlSetEnv OCS_OPT_OCS_FILES_PATH /tmp
PerlSetEnv OCS_OPT_PROLOG_FILTER_ON 0
PerlSetEnv OCS_OPT_INVENTORY_FILTER_ENABLED 0
PerlSetEnv OCS_OPT_INVENTORY_FILTER_FLOOD_IP 0
PerlSetEnv OCS_OPT_INVENTORY_FILTER_FLOOD_IP_CACHE_TIME 300
PerlSetEnv OCS_OPT_INVENTORY_FILTER_ON 0
PerlSetEnv OCS_OPT_DATA_FILTER 0
PerlSetEnv OCS_OPT_REGISTRY 1
PerlSetEnv OCS_OPT_SNMP 0
PerlSetEnv OCS_OPT_SNMP_INVENTORY_DIFF 1
PerlSetEnv OCS_OPT_SESSION_VALIDITY_TIME 600
PerlSetEnv OCS_OPT_SESSION_CLEAN_TIME 86400
PerlSetEnv OCS_OPT_INVENTORY_SESSION_ONLY 0
PerlSetEnv OCS_OPT_ACCEPT_TAG_UPDATE_FROM_CLIENT 0
PerlSetEnv OCS_PLUGINS_PERL_DIR "/etc/ocsinventory-server/perl"
PerlSetEnv OCS_PLUGINS_CONF_DIR "/etc/ocsinventory-server/plugins"
PerlSetEnv OCS_OPT_PROXY_REVALIDATE_DELAY 3600
PerlSetEnv OCS_OPT_UPDATE 0
PerlModule Apache::DBI
PerlModule Compress::Zlib
PerlModule XML::Simple
PerlModule Apache::Ocsinventory::Plugins
PerlModule Apache::Ocsinventory
PerlModule Apache::Ocsinventory::Server::Constants
PerlModule Apache::Ocsinventory::Server::System
PerlModule Apache::Ocsinventory::Server::Communication
PerlModule Apache::Ocsinventory::Server::Inventory
PerlModule Apache::Ocsinventory::Server::Duplicate
PerlModule Apache::Ocsinventory::Server::Capacities::Registry
PerlModule Apache::Ocsinventory::Server::Capacities::Update
PerlModule Apache::Ocsinventory::Server::Capacities::Ipdiscover
PerlModule Apache::Ocsinventory::Server::Capacities::Download
PerlModule Apache::Ocsinventory::Server::Capacities::Notify
PerlModule Apache::Ocsinventory::Server::Capacities::Snmp
<Location /ocsinventory>
order deny,allow
allow from all
SetHandler perl-script
PerlHandler Apache::Ocsinventory
</Location>
PerlModule Apache::Ocsinventory::SOAP

<location /ocsinterface>
SetHandler perl-script
PerlHandler "Apache::Ocsinventory::SOAP"
Order deny,allow
Allow from all
AuthType Basic
AuthName "OCS Inventory SOAP Area"
AuthUserFile "APACHE_AUTH_USER_FILE"
require "SOAP_USER"
</location>
</IfModule>


/etc/apache2/conf.d/ocsinventory-reports.conf
Alias /ocsreports /usr/share/ocsinventory-reports/ocsreports

<Directory /usr/share/ocsinventory-reports/ocsreports>
Order deny,allow
Allow from all
Options Indexes FollowSymLinks
DirectoryIndex index.php
AllowOverride Options

AddType application/x-httpd-php .php
php_flag file_uploads on
php_value post_max_size 101m
php_value upload_max_filesize 100m

php_flag magic_quotes_gpc off


</Directory>

Alias /download /var/lib/ocsinventory-reports/download

Alias /snmp /var/lib/ocsinventory-reports/snmp

Thank you all very much!

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

2 Answers

0 votes
Hi,

What do you have when you go to this url ? : http://yourserver/ocsinventory

You should have a 400 Bad Request

If not, mod_perl might not be properly installed or activated on your server.

Regards,

Gilles Dubois.
by (3k points)
I had Installed mod_perl sucessfull, but how can I see if it is activated? When I try to access http://yourserver/ocsinventory it retrieves 404 error.

Thank you.
–1 vote
server using the apt- get install , nothing worked. And then I install using the package by downloading the site ./setup.sh . Also could not get the client communicate with the server

A question by chance someone knows how to do a test to see if the ports are listening to see if everything is correct in the installation ? This is very sad not to have this support or do not inform us :( , as good a program is it should .

Também fiz a instalação no ubuntu server usando o apt-get install, nada funcionou. E depois fiz instalação usando o pacote baixando pelo site ./setup.sh. Também não consegui fazer o cliente comunicar com o servidor

Uma pergunta por acaso alguém sabe fazer um teste para ver se as portas estão escutando para ver se está tudo correto na instalação? Isso é muito triste o suporte nao ter isso ou não nos informar :(, um programa tão bom fica devendo isso.

by (200 points)
 
Powered by Question2Answer
...