Ad Widget

Collapse

Zabbix dashboard.vew

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • slamsal
    Junior Member
    • Jul 2021
    • 2

    #1

    Zabbix dashboard.vew

    Hi,
    I tried to search for an answer but was not able to find what I am looking for.
    My zabbix setup was working fine. Then for a different reason, had to restart the server. After the restart I started getting 500 error when opening zabbix UI.

    zabbix_server -V
    zabbix_server (Zabbix) 5.0.6
    Revision 93895db26b 30 November 2020, compilation time: Nov 30 2020 11:50:24

    Copyright (C) 2020 Zabbix SIA
    License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>.
    This is free software: you are free to change and redistribute it according to
    the license. There is NO WARRANTY, to the extent permitted by law.

    This product includes software developed by the OpenSSL Project
    for use in the OpenSSL Toolkit (http://www.openssl.org/).

    Compiled with OpenSSL 1.0.2k-fips 26 Jan 2017
    Running with OpenSSL 1.0.2k-fips 26 Jan 2017

    The error I got was "PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 805961728 bytes) in /usr/share/zabbix/include/classes/user/CWebUser.php on line 169\n'"

    Then in zabbix.conf I tried to up the memory to 1G, since the allocation was for more than 768M. But when I did that, I started getting 503 error instead of 500, and this time the issue was kernel panic

    Jul 9 01:02:00 loadtool kernel: php-fpm[10520]: segfault at 7fc976c16000 ip 00007fc973fd4354 sp 00007ffe408b74e8 error 4 in libc-2.17.so[7fc973e7e000+1c3000]

    After that I started tweaking the memory_limit. I am able to go up to 768M and kernel panic does not happen. But then I get memory exhausted issue.
    cat /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf
    [zabbix]
    user = apache
    group = apache

    listen = /var/opt/rh/rh-php72/run/php-fpm/zabbix.sock
    listen.acl_users = apache
    listen.allowed_clients = 127.0.0.1

    pm = ondemand
    pm.max_children = 10
    pm.start_servers = 2
    pm.min_spare_servers = 2
    pm.max_spare_servers = 10

    php_value[session.save_handler] = files
    php_value[session.save_path] = /var/opt/rh/rh-php72/lib/php/session/

    php_value[max_execution_time] = 300
    php_value[memory_limit] = 768M
    php_value[post_max_size] = 16M
    php_value[upload_max_filesize] = 2M
    php_value[max_input_time] = 300
    php_value[max_input_vars] = 10000
    php_value[date.timezone] = UTC

    How can I get around this issue? I am very new to zabbix and little afraid to upgrade right away as I am still trying to understand it. In time I can set up dev environment and test the upgrade and can go to 5.2. But for now I am just trying to get it up and running.

    TIA
    - Lamsal
  • slamsal
    Junior Member
    • Jul 2021
    • 2

    #2
    Anyone has any suggestions about this? Please

    Comment

    Working...