Good afternoon! Sorry for my English
- PHP Version : 7.3.27
- Web Server : Apache/2.4.38 (Debian)
- Database Server : Debian 10 version 10.3.27-MariaDB-0+deb10u1
- Version OCSReports: 2.8
A self-signed certificate is configured:
https://weblst.ru/article/nastroyka-https-na-apache-ubuntu/
Pulled the certificate from the server with the command:
openssl s_client -showcerts -connect seal:443 </dev/null 2>/dev/null | openssl x509 -outform PEM >/etc/ocsinventory-agent/cacert.pem
ocsinventory-agent:
server=https://seal/ocsinventory
ssl=1
basevardir=/var/lib/ocsinventory-agent
logfile=/var/log/ocs_agent.log
ca=/etc/ocsinventory-agent/cacert.pem
debug=
snmpretry=2
snmp=1
snmptimeout=3
tag=Server
I get an error on the log:
[Mon Mar 22 13:45:29 2021][error] Cannot establish communication : 500 Can't connect to seal:443 (hostname verification failed)
[Mon Mar 22 13:46:50 2021][error] Cannot establish communication : 500 Can't connect to 192.168.4.70:443 (hostname verification failed)
[Mon Mar 22 13:49:35 2021][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.8.1
[Mon Mar 22 13:49:35 2021][debug] Log system initialised (File)
[Mon Mar 22 13:49:35 2021][debug] --scan-homedirs missing. Don't scan user directories
[Mon Mar 22 13:49:35 2021][debug] Accountinfo file: /var/lib/ocsinventory-agent/https:__192.168.4.70_ocsinventory/ocsinv.adm
[Mon Mar 22 13:49:35 2021][debug] OCS Agent initialised
[Mon Mar 22 13:49:35 2021][debug] Turns hooks on for /etc/ocsinventory-agent/modules.conf
[Mon Mar 22 13:49:35 2021][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.8.1
[Mon Mar 22 13:49:35 2021][debug] Log system initialised (File)
[Mon Mar 22 13:49:35 2021][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.8.1
[Mon Mar 22 13:49:35 2021][debug] Log system initialised (File)
[Mon Mar 22 13:49:35 2021][debug] Calling handlers : `start_handler'
[Mon Mar 22 13:49:35 2021][debug] [download] Calling download_start_handler
[Mon Mar 22 13:49:35 2021][debug] - LWP loaded
[Mon Mar 22 13:49:35 2021][debug] - LWP::Protocol::https loaded
[Mon Mar 22 13:49:35 2021][debug] [snmpscan] Calling snmp_start_handler
[Mon Mar 22 13:49:35 2021][debug] - Net::SNMP loaded
[Mon Mar 22 13:49:35 2021][debug] Compress::Zlib is available.
[Mon Mar 22 13:49:35 2021][debug] Calling handlers : `prolog_writer'
[Mon Mar 22 13:49:35 2021][debug] sending XML
[Mon Mar 22 13:49:35 2021][debug] sending: <?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
<DEVICEID>ocs-2021-03-22-11-52-34</DEVICEID>
<QUERY>PROLOG</QUERY>
</REQUEST>
[Mon Mar 22 13:49:35 2021][error] Cannot establish communication : 500 Can't connect to 192.168.4.70:443 (hostname verification failed)
[Mon Mar 22 15:03:39 2021][error] Cannot establish communication : 500 Can't connect to 192.168.4.70:443 (hostname verification failed)
[Mon Mar 22 15:05:25 2021][error] Cannot establish communication : 500 Can't connect to seal:443 (hostname verification failed)
[Mon Mar 22 15:14:53 2021][error] Cannot establish communication : 500 Can't connect to seal:443 (hostname verification failed)
[Mon Mar 22 15:17:02 2021][error] Cannot establish communication : 500 Can't connect to seal:443 (hostname verification failed)
[Mon Mar 22 15:19:41 2021][error] Cannot establish communication : 500 Can't connect to seal:443 (hostname verification failed)
The data is sent to the server via http. I'm trying to configure SNMP. Help me figure it out.