web.page.get returns HTTP headers

XMLWordPrintable

    • Type: Incident report
    • Resolution: Won't fix
    • Priority: Major
    • None
    • Affects Version/s: 3.0.8
    • Component/s: Agent (G)
    • None

      Documentation says that the return value of web.page.get is "Web page source as text". However, the HTTP headers are prepended to the content.

      What I get :

      $ zabbix_agentd -t web.page.get[api.ipify.org]
      web.page.get[api.ipify.org]                   [t|HTTP/1.1 200 OK
      Server: Cowboy
      Connection: close
      Content-Type: text/plain
      Date: Tue, 25 Apr 2017 16:07:47 GMT
      Content-Length: 14
      Via: 1.1 vegur
      
      163.172.38.141]
      

      What I expected :

      $ zabbix_agentd -t web.page.get[api.ipify.org]
      web.page.get[api.ipify.org]                   [t|163.172.38.141]
      

            Assignee:
            Unassigned
            Reporter:
            Sébastien Maccagnoni
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: