Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-17733

Zabbix agent2 web.page.get should skip certificate verification.

XMLWordPrintable

    • Sprint 64 (May 2020)
    • 0.125

      Steps to reproduce:
      Install zabbix agent2 from packages on some host where installed and monitored nginx
      Try to get the status page with web.page.get key

      Result:

      zabbix_get -s 127.0.0.1 -p 20050 -k web.page.get[https://127.0.0.1]
      ZBX_NOTSUPPORTED: Cannot get content of web page: Get https://127.0.0.1: x509: cannot validate certificate for 127.0.0.1 because it doesn't contain any IP SANs
      

      Expected:
      zabbix agent works fine.

      zabbix_get -s 127.0.0.1 -p 10050 -k web.page.get[https://127.0.0.1] | head
      HTTP/1.1 200 OK
      Server: nginx/1.16.1
      Date: Thu, 14 May 2020 05:26:04 GMT
      Content-Type: text/html
      Content-Length: 30070
      Last-Modified: Sat, 02 May 2020 06:56:17 GMT
      Connection: keep-alive
      ETag: "5ead1991-7576"
      Accept-Ranges: bytes
      

            vso Vladislavs Sokurenko
            neogan Andrei Gushchin (Inactive)
            Team A
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: