i have problem with veeam rest ap plugin (windows rest api is ok)
======> request send
GET https://192.168.0.53:8443/query/check_centreon_plugins?apps%3A%3Abackup%3A%3Aveeam%3A%3Alocal%3A%3Aplugin&licenses&%20--filter-to%3D%22%22%20--filter-type%3D%22%22%20--filter-status%3D%22%22%20--unit%3D%22%22%20--warning-status%3D%22%22%20--critical-status%3D%22%25%7Bstatus%7D%20%3D~%20%2Fexpired%7Cinvalid%2Fi%22%20--warning-expires%3D%22%22%20--critical-expires%3D%22%22%20--warning-license-instances-usage%3D%22%22%20--critical-license-instances-usage%3D%22%22%20--warning-license-instances-free%3D%22%22%20--critical-license-instances-free%3D%22%22%20--warning-license-instances-usage-prct%3D%22%22%20--critical-license-instances-usage-prct%3D%22%22%20--warning-total%3D%22%22%20--critical-total%3D%22%22%20--verbose
User-Agent: centreon::plugins::backend::http::useragent
Password: XXXXX
======> response done
500 read timeout
Content-Type: text/plain
Client-Date: Thu, 08 Sep 2022 14:04:25 GMT
Client-Warning: Internal response
read timeout at /usr/share/perl5/vendor_perl/Net/HTTP/Methods.pm line 268.
if i use windows nsclient plugin i obtain a result
>root@centreon-central plugins]# /usr/lib/centreon/plugins//centreon_nsclient_restapi.pl --plugin=apps::nsclient::restapi::plugin --mode=query --hostname='192.168.0.53' --port='8443' --proto='https' --legacy-password='XXXXX' --command=check_drivesize --arg="drive=*" --arg="perf-config=used(unit:B)used %(ignored:true)" --arg="filter=type = 'fixed' and name not regexp '.*yst.*'" --arg="warning=total_used>80%" --arg="critical=total_used>90%" --ssl-opt='SSL_verify_mode => SSL_VERIFY_NONE' WARNING : 438.688MB/523.996MB used | 'C:\ used'=50302001152.000B;68180085964.000;76702596710.000;0.000;85225107456.000 '\\?\Volume{4df404fe-2bce-40fa-a5e3-601128265c8f}\ used'=459997184.000B;439559782.000;494504755.000;0.000;549449728.000 '\\?\Volume{15311f3a-3859-484f-a314-32a6c56ef42d}\ used'=30106624.000B;80530636.000;90596966.000;0.000;100663296.000
;root@centreon-central plugins]#
i had to add --ssl-opt='SSL_verify_mode => SSL_VERIFY_NONE' on both cases,
root@centreon-central plugins]# /usr/lib/centreon/plugins//centreon_nsclient_restapi.pl --plugin=apps::nsclient::restapi::plugin --mode=query --hostname='192.168.0.53' --port='8443' --proto='https' --legacy-password='XXXXX' --command=check_drivesize --arg="drive=*" --arg="perf-config=used(unit:B)used %(ignored:true)" --arg="filter=type = 'fixed' and name not regexp '.*yst.*'" --arg="warning=total_used>80%" --arg="critical=total_used>90%"
UNKNOWN: 500 Can't connect to 192.168.0.53:8443 (certificate verify failed)
why?