Hi
I have the following problem. I have installed the agent on some Ubuntu machines that I need to register on the OCS Server. I have followed the instructions on how to install the agent in version 2.8.1 on an Ubuntu machine. I have followed the steps indicated to configure the agent when you execute "make install", but in the log file I see the following output:
[Tue Apr 27 10:58:34 2021][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.8.1
[Tue Apr 27 10:58:34 2021][debug] Log system initialised (File)
[Tue Apr 27 10:58:34 2021][debug] --scan-homedirs missing. Don't scan user directories
[Tue Apr 27 10:58:34 2021][debug] accountconfig file: `/var/lib/ocsinventory-agent/http:__ocsinventariocauce.medusa.gobiernodecanarias.net/ocsinv.conf doesn't exist. I create an empty one
[Tue Apr 27 10:58:34 2021][debug] ocsinv.conf updated successfully
[Tue Apr 27 10:58:34 2021][debug] ocsinv.conf updated successfully
[Tue Apr 27 10:58:34 2021][debug] Accountinfo file: /var/lib/ocsinventory-agent/http:__ocsinventariocauce.medusa.gobiernodecanarias.net/ocsinv.adm
[Tue Apr 27 10:58:34 2021][info] Accountinfo file doesn't exist. I create an empty one.
[Tue Apr 27 10:58:34 2021][debug] Invalid parameter while writing accountinfo file
[Tue Apr 27 10:58:34 2021][debug] Account info updated successfully
[Tue Apr 27 10:58:34 2021][debug] OCS Agent initialised
[Tue Apr 27 10:58:34 2021][debug] Turns hooks on for /etc/ocsinventory/modules.conf
[Tue Apr 27 10:58:34 2021][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.8.1
[Tue Apr 27 10:58:34 2021][debug] Log system initialised (File)
[Tue Apr 27 10:58:34 2021][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.8.1
[Tue Apr 27 10:58:34 2021][debug] Log system initialised (File)
[Tue Apr 27 10:58:34 2021][debug] Calling handlers : `start_handler'
[Tue Apr 27 10:58:34 2021][debug] [download] Calling download_start_handler
[Tue Apr 27 10:58:34 2021][debug] - LWP loaded
[Tue Apr 27 10:58:34 2021][debug] - LWP::Protocol::https loaded
[Tue Apr 27 10:58:34 2021][debug] [snmpscan] Calling snmp_start_handler
[Tue Apr 27 10:58:34 2021][debug] - Net::SNMP loaded
[Tue Apr 27 10:58:34 2021][debug] Compress::Zlib is available.
[Tue Apr 27 10:58:34 2021][debug] Calling handlers : `prolog_writer'
[Tue Apr 27 10:58:34 2021][debug] sending XML
[Tue Apr 27 10:58:34 2021][debug] sending: <?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
<DEVICEID>tfvs0727-2021-04-27-10-58-34</DEVICEID>
<QUERY>PROLOG</QUERY>
</REQUEST>
[Tue Apr 27 11:01:34 2021][error] Cannot establish communication : 500 read timeout
The configuration file has the following values:
logfile = / var / log / ocs-inventory-agent.log
snmpretry = 2
tag = _Ubuntu_servers
server = http: //ocsinventario.mydomain.com
snmptimeout = 3
basevardir = / var / lib / ocsinventory-agent
debug = 1
snmp = 1
I have tried to change the value of the "server", even putting the path where I have the OCS Server installation which would be in the path http://ocsinventario.mydomain.com/ocsreports, but any change gives me the error that you see above :
[Tue Apr 27 11:01:34 2021] [error] Cannot establish communication: 500 read timeout
From Ubuntu machines I can reach the OCS server, by pinging and by telnet to port 80.
What could be failing to not contact Ubuntu machines in OCS Server version 2.8? Best regards.