Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-5265

Limit the number of fetched Actions per problem in problem view

    Details

    • Type: Change Request
    • Status: Need info
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.2.1, 4.2.2
    • Fix Version/s: None
    • Component/s: Frontend (F)
    • Labels:
    • Environment:
      PHP 7.3

      Description

      Conditions:**

      We configured Zabbix to send all events to a custom php script dealing with all notifications. Thus there are a lots' of action linked to our problems.

      Steps to reproduce:

      1. configure your account to display ~150 rows on the same page
      2. Navigate to problem.view

      Result:

      White page/error 500/out of memory

      Analyze:
      see memory profile.png - it seems CAlert::get is leading to very large memory consumption.

       

      Workaround/solution:

      within include/actions.inc.php, function getEventsAction, when calling API::Alert()->get(), I added a new options: 'time_from' => time()-86400 .

       

      This limit the number of Action it fetch and make everyting working again.

       

      The best solution would probably be to fetch max n actions of each event where n would be configurable somewhere.

       

      Bottom line:

      Thanks for all your great work!

       

       

       
       

        Attachments

          Activity

            People

            • Assignee:
              zabbix.dev Zabbix Development Team
              Reporter:
              aligot Arnaud Ligot
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: