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 send information but nothing appears in the Web Console

Hi!

I'm using Ubuntu Server 16.04 LTS. Followed every step of the installation and everything is working fine.

I installed the agent in this PC that I'm typing, that uses Windows 10 Pro 64 bits, looking the log file everything seems fine sending to the server. Firewall is disabled, so is the antivirus.

In the server in the access.log of apache there is this:

[20/Feb/2017:13:16:23 -0300] "POST /ocsinventory HTTP/1.1" 404 445 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"

So I assume it is working fine.

My ini file on this computer is:

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

So, can anybody help me find this out?
in OCS Inventory NG server for Unix by (400 points)

11 Answers

0 votes
Hi,

After install have you restarted Apache?

All required modules are installed? Important module is mod_perl for apache.

Verify. Re-test.

Regards

Frank
by (90.2k points)
0 votes
Hi!

Yes. I restarted Apache, the server aswell.

I remember installing mod_perl, but how can I check this out?
by (400 points)
0 votes
Hi,

Have you disable selinux on your server? To verify use this command => getenforce. If the result is enforcing edit /etc/selinux/config file. Change enforced with disabled. Restart your system.

Then to test if mod_perl is enabled access the url http://@ip/ocsinventory with your browser. You must have error 400 with "your browser has sent a request that this server could not understand".

Regards

Frank
by (90.2k points)
0 votes
Hi!

As result of getenforce I got: The program getenforce is not installed......

And as a result from http://ip_of_my_server/ocsinventory I got "The requested URL /ocsinventory was not found on this server."
by (400 points)
0 votes

Hi,

Did you run these commands?  

  1. a2dissite 000-default.conf
  2. a2enconf ocsinventory-reports
  3. a2enconf z-ocsinventory-server
  4. service apache2 restart
Regards
Frank
by (90.2k points)
0 votes

Hi!

  1. a2dissite 000-default.conf <- Done now
  2. a2enconf ocsinventory-reports <- Already did
  3. a2enconf z-ocsinventory-server <- Done now
  4. service apache2 restart

Still nothing.

by (400 points)
0 votes

Btw, now when I try to open http:/myserver/ocsinventory I get a new error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

by (400 points)
0 votes
Hi,

Now this is error 500. Verify the mysql ocs password you set in z-ocsinventory-server.conf. By default this is ocs/ocs. Change to your need and restart apache after modification.

Regards

Frank
by (90.2k points)
0 votes
Already did when installed.

Just checked to be sure and it's right.

Just used that in phpmyadmin to verify. Working as it should.
by (400 points)
0 votes
My apache error.log now

[Tue Feb 21 11:14:41.603597 2017] [mpm_prefork:notice] [pid 2245] AH00169: caught SIGTERM, shutting down
ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable
ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable
[Tue Feb 21 11:22:46.396763 2017] [mpm_prefork:notice] [pid 1321] AH00163: Apache/2.4.18 (Ubuntu) mod_perl/2.0.9 Perl/v5.22.1 configured -- resuming normal operations
[Tue Feb 21 11:22:46.396843 2017] [core:notice] [pid 1321] AH00094: Command line: '/usr/sbin/apache2'
DBI connect('database=ocsweb;host=y;port=y','seiti',...) failed: Unknown MySQL server host 'y' (0) at /usr/local/share/perl/5.22.1/Apache/Ocsinventory/Server/System.pm line 187.
[Tue Feb 21 11:27:20.042823 2017] [perl:error] [pid 1422] [client 10.1.3.5:50203] Can't call method "do" on an undefined value at /usr/local/share/perl/5.22.1/Apache/Ocsinventory/Server/System.pm line 189.\n

Lol... found my error... during installation I thought typing Y it would set the default options!

My mistake. I'm gonna check everything else before continue this topic.
by (400 points)
 
Powered by Question2Answer
...