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

web.page.get returns HTTP headers

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Major Major
    • None
    • 3.0.8
    • 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]
      

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

              Created:
              Updated:
              Resolved: