Ad Widget

Collapse

2.4.2 Web Monitoring, Curl garbled output

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gleepwurp
    Senior Member
    • Mar 2014
    • 119

    #1

    2.4.2 Web Monitoring, Curl garbled output

    Hi Folks,


    I have a Web Scenario that was working pretty well until recently, when the web scenario stopped getting valid web pages.

    I'm able to use the string from the zabbix_server log to check my webpage through a web browser successfully, but when I enable debugging mode on the Zabbix http_poller, I see that the process is returning a small garbled number of characters ('^_<8b>^H') instead of the html output. Other web scenarios are working fine.

    Here is an example of the debug log with output (see end of second line for garbled output):

    Code:
    4478:20141216:101215.291 process_httptest() go to URL "http://webpage.com/?username=monitoring%40bla.com&pwd=password%40bla.com"
      4478:20141216:101215.446 process_httptest() page.data from http://webpage.com/?username=monitoring%40bla.com&pwd=password%40bla.com:'^_<8b>^H'
      4478:20141216:101215.446 In int_in_list() list:'200' value:200
      4478:20141216:101215.446 End of int_in_list():SUCCEED
    Has anyone ever encounter the same issue?

    Thanks!

    G.
    Last edited by gleepwurp; 16-12-2014, 17:42.
  • Parasin
    Member
    Zabbix Certified Specialist
    • Dec 2014
    • 53

    #2
    Could this be a translation error when reading parsing the HTML code into a character string?

    Comment

    • gleepwurp
      Senior Member
      • Mar 2014
      • 119

      #3
      Thanks for the reply Parasin!

      However, I debugged over the weekend, and it seems that the web page is now reporting the data as "Content-Encoding: gzip", which explains the garbled output.

      The current Zabbix Server (2.4.2 & 2.4.3) doesn't support the compressed web pages. A patch was issued here: https://support.zabbix.com/browse/ZBXNEXT-2475 by Maxim Odinintsev which actually fixes my issue.

      Hope this helps other people having the same problem... Thanks Maxim!

      G.

      Comment

      Working...