Ad Widget

Collapse

Generated graphics not displaying anymore

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jared
    Junior Member
    • Dec 2007
    • 4

    #1

    Generated graphics not displaying anymore

    I run FreeBSD/PostgreSQL and have upgraded Zabbix to latest 1.4.4 version.

    As far as I can see, it works and gathers data from agents and can poll SNMP devices.

    However, graphics don't work anymore on Zabbix. To make sure it isn't a webserver/PHP configuration problem on my end, I was able to create/run a test php script that uses GD to create a graphic.

    I compared the difference between the successful graphic generated by GD PHP test script and the one that was generated by Zabbix.

    I found the problem. There is an extra blank line that shows up in all content returned by Zabbix (Do a view page source on anything in Zabbix, including direct links to a generated chart graph). In the case of Zabbix graphics, there is an extra line before the PNG data is streamed. This causes the graphic error where the web browser cannot understand how to display the graphic.

    The problem causing the blank line is somewhere inside include/config.inc.php and I have not been able to track it down yet. Please reply with which line(s) need to be changed so I can get the graphics working again.

    Thank you.
  • jared
    Junior Member
    • Dec 2007
    • 4

    #2
    To clarify: The blank line is the very first one at the top when you do a View Page Source. This line shouldn't be there.

    Comment

    • jared
      Junior Member
      • Dec 2007
      • 4

      #3
      It was of my own doing. I put this blank line in the zabbix.conf.php which was included in each page/image that was generated by Zabbix.

      Comment

      Working...