I installed agent on CentOS 7.3 server. It doesn't show any errors, but when cron job runs, I see following error in agent logs and also in GUI of CS server, the computer doesn't show up.
[Thu 28 Jun 2018 11:45:17 AM +04] Running ocsinventory-agent --wait 100 --lazy --nolocal --server=xxxxx.xxxx.com
[Thu Jun 28 11:45:17 2018][info] Going to sleep for 1 second(s)
[Thu Jun 28 11:45:19 2018][error] Cannot establish communication : 302 Found
[Thu Jun 28 11:45:19 2018][info] No previous PROLOG_FREQ found - using fallback delay(3600 seconds)
[Thu 28 Jun 2018 11:45:19 AM +04] End of cron job (/sbin:/bin:/usr/sbin:/usr/bin)
Commands I used to install agent is below:
# yum install ocsinventory-agent
# ocsinventory-agent --server=servername.domain.com
This is a new setup and this server I am trying to install is the first computer to be added. I have no other computers yet in OCS server. OCS server is also CentOS 7.3.