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

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.2.1, 4.2.2
    • Frontend (F)
    • PHP 7.3

      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!

       

       

       
       

            zabbix.dev Zabbix Development Team
            aligot Arnaud Ligot
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: