Ad Widget

Collapse

missing graph images after update from 4.2 to 4.4

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • croc
    Junior Member
    • Nov 2019
    • 4

    #1

    missing graph images after update from 4.2 to 4.4

    My zabbix installation evolved from debian lenny -> debian stretch and from zabbix 3.x -> zabbix 4.0 -> zabbix 4.2 -> zabbix 4.4
    Installation is always done via debian and zabbix repos. There's now manual littering.

    Today's installation leaved with a running zabbix: new data is aquirred the frontend shows new values but there are now graph. I only get a missing image icon.

    Seems like I accidentally removed a necessary package?



    For the records:

    /var/log/apache2/error.log
    [Wed Nov 20 23:47:55.518055 2019] [:error] [pid 11205] [client 10.8.0.150:50050] PHP Fatal error: Uncaught Error: Call to undefined function imagecreate() in /usr/share/zabbix/include/classes/graphdraw/CLineGraphDraw.php:2563\nStack trace:\n#0 /usr/share/zabbix/chart2.php(168): CLineGraphDraw->draw()\n#1 {main}\n thrown in /usr/share/zabbix/include/classes/graphdraw/CLineGraphDraw.php on line 2563, referer: http://192.168.222.41/zabbix/charts.php?graphid=549

    Indeed there was missing php7.0-gd. Obviously it wasn't installed during updates.
    Last edited by croc; 21-11-2019, 10:14.
  • Aslmafarook
    Junior Member
    • Feb 2019
    • 5

    #2
    Try to edit the php.ini file (in my case /etc/php/7.0/apache2/php.ini), search for the line ";extension=php_gd2.dll" comment out the line like "extension=php_gd2.dll".

    and restart the apache service.

    Hope this will help

    Comment

    Working...