Ad Widget

Collapse

problem with upload size walpaper

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ELIOT
    Junior Member
    • Feb 2018
    • 2

    #1

    problem with upload size walpaper

    hi everyone
    i have problem with upload image with 4MB size to zabbix for my background image
    first i got this error
    <<File is too big, max upload size is 2097152 bytes.>>
    so i search internet and got to this post


    i edit this lines in my /etc/httpd/conf.d/zabbix.conf

    php_value memory_limit 256M
    php_value post_max_size 64M
    php_value upload_max_filesize 64M

    but its not work and error change to
    Image size must be less than 1MB.

    after search in fourm and zabbix documentation i got to need edit php.ini file
    i increase size of post
    upload_max_filesize = 16M


    but noting happend
    so i got this link that said to increase mysql max_allowed_packet



    and i increase that but noting happend
    i realy do any thing and increase any size i see in files

    i use zabbix 3.4 on centos7

    i waiting for your helps and guidance

    thanks
  • kaspars.mednis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2017
    • 349

    #2
    Error may be coming from Zabbix frontend.....

    look at /usr/share/zabbix/include/defines.inc.php

    Code:
    define('ZBX_MAX_IMAGE_SIZE', 1048576); // 1024 * 1024
    change it at your own risk !

    Maybe you can just compress image to 1MB ? i think it will affect Zabbix frontend performance.

    Regards,
    Kaspars

    Comment

    • ELIOT
      Junior Member
      • Feb 2018
      • 2

      #3
      thank you for replaying
      but 1 Mb size for background image is not good in my opinion,because background image use for map that i want to see it on tv screen and it need to have good resolution .


      i change this value and its work right . i can upload my image
      thanks alot

      but why its effect on zabbix performance ??

      Comment

      • manshakti
        Junior Member
        • Aug 2020
        • 1

        #4
        Hi all may be this config work on old version but I have the same issue with Zabbix 5.0.1.

        Comment

        Working...