Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-19515

Cannot access template with Discovery Rule, Apply template with Discovery Rule

    XMLWordPrintable

Details

    • Incident report
    • Status: Need info
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • Docker 5.2.6 Ubuntu
      Postgres 12 / Timescaledb 1.7

    Description

      Steps to reproduce:
      Opening a custom Template, then attempt to access discover rule - times out with error
      Exporting a custom Template - times out with error
      Accessing host with custom template applied, access discovery rule - times out with error

      I started out with version 5.0.3 environment. I then upgraded to 5.2.6. Since new base template versions are not part of the upgrade, I removed all base templates and reimported from https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates for 5.2.6

      I created custom templates based on couple of base templates. After applying to large number of hosts (3000+) I started to notice I could not export, and accessing updating some hosts began to take a long time. The problem has gotten worse of time to the point I can no longer access hosts discovery rules, template discovery rules, or export templates.

      When the timeout occurs I see the following error in the Apache error log:

      [Wed Jun 02 18:48:12.656061 2021] [php7:notice] [pid 1929] [client 10.0.2.2:59015] PHP Fatal error:  Maximum execution time of 300 seconds exceeded in /usr/share/zabbix/include/classes/api/services/CDiscoveryRule.php on line 2998, referer: http://localhost:2080/zabbix/hosts.php?form=update&hostid=16007
      [Wed Jun 02 18:48:12.656338 2021] [php7:notice] [pid 1929] [client 10.0.2.2:59015] PHP Stack trace:, referer: http://localhost:2080/zabbix/hosts.php?form=update&hostid=16007
      [Wed Jun 02 18:48:12.656612 2021] [php7:notice] [pid 1929] [client 10.0.2.2:59015] PHP   1. {main}() /usr/share/zabbix/hosts.php:0, referer: http://localhost:2080/zabbix/hosts.php?form=update&hostid=16007
      [Wed Jun 02 18:48:12.656721 2021] [php7:notice] [pid 1929] [client 10.0.2.2:59015] PHP   2. CFrontendApiWrapper->update() /usr/share/zabbix/hosts.php:846, referer: http://localhost:2080/zabbix/hosts.php?form=update&hostid=16007
      [Wed Jun 02 18:48:12.656935 2021] [php7:notice] [pid 1929] [client 10.0.2.2:59015] PHP   3. CFrontendApiWrapper->__call() /usr/share/zabbix/hosts.php:846, referer: http://localhost:2080/zabbix/hosts.php?form=update&hostid=16007
      [Wed Jun 02 18:48:12.657043 2021] [php7:notice] [pid 1929] [client 10.0.2.2:59015] PHP   4. CFrontendApiWrapper->callMethod() /usr/share/zabbix/include/classes/api/wrappers/CApiWrapper.php:82, referer: http://localhost:2080/zabbix/hosts.php?form=update&hostid=16007
      [Wed Jun 02 18:48:12.657166 2021] [php7:notice] [pid 1929] [client 10.0.2.2:59015] PHP   5. CFrontendApiWrapper->callMethod() /usr/share/zabbix/include/classes/api/wrappers/CFrontendApiWrapper.php:63, referer: http://localhost:2080/zabbix/hosts.php?form=update&hostid=16007
      [Wed Jun 02 18:48:12.657450 2021] [php7:notice] [pid 1929] [client 10.0.2.2:59015] PHP   6. CFrontendApiWrapper->callClientMethod() /usr/share/zabbix/include/classes/api/wrappers/CApiWrapper.php:94, referer: http://localhost:2080/zabbix/hosts.php?form=update&hostid=16007
      [Wed Jun 02 18:48:12.657694 2021] [php7:notice] [pid 1929] [client 10.0.2.2:59015] PHP   7. CLocalApiClient->callMethod() /usr/share/zabbix/include/classes/api/wrappers/CFrontendApiWrapper.php:97, referer: http://localhost:2080/zabbix/hosts.php?form=update&hostid=16007
      [Wed Jun 02 18:48:12.657809 2021] [php7:notice] [pid 1929] [client 10.0.2.2:59015] PHP   8. CHost->update() /usr/share/zabbix/include/classes/api/clients/CLocalApiClient.php:121, referer: http://localhost:2080/zabbix/hosts.php?form=update&hostid=16007
      [Wed Jun 02 18:48:12.657958 2021] [php7:notice] [pid 1929] [client 10.0.2.2:59015] PHP   9. CHost->massUpdate() /usr/share/zabbix/include/classes/api/services/CHost.php:909, referer: http://localhost:2080/zabbix/hosts.php?form=update&hostid=16007
      [Wed Jun 02 18:48:12.658129 2021] [php7:notice] [pid 1929] [client 10.0.2.2:59015] PHP  10. CHost->massAdd() /usr/share/zabbix/include/classes/api/services/CHost.php:1207, referer: http://localhost:2080/zabbix/hosts.php?form=update&hostid=16007
      [Wed Jun 02 18:48:12.658293 2021] [php7:notice] [pid 1929] [client 10.0.2.2:59015] PHP  11. CHost->massAdd() /usr/share/zabbix/include/classes/api/services/CHost.php:957, referer: http://localhost:2080/zabbix/hosts.php?form=update&hostid=16007
      [Wed Jun 02 18:48:12.658471 2021] [php7:notice] [pid 1929] [client 10.0.2.2:59015] PHP  12. CHost->link() /usr/share/zabbix/include/classes/api/services/CHostGeneral.php:108, referer: http://localhost:2080/zabbix/hosts.php?form=update&hostid=16007
      [Wed Jun 02 18:48:12.658622 2021] [php7:notice] [pid 1929] [client 10.0.2.2:59015] PHP  13. CDiscoveryRule->syncTemplates() /usr/share/zabbix/include/classes/api/services/CHostGeneral.php:217, referer: http://localhost:2080/zabbix/hosts.php?form=update&hostid=16007
      [Wed Jun 02 18:48:12.658758 2021] [php7:notice] [pid 1929] [client 10.0.2.2:59015] PHP  14. CDiscoveryRule->get() /usr/share/zabbix/include/classes/api/services/CDiscoveryRule.php:673, referer: http://localhost:2080/zabbix/hosts.php?form=update&hostid=16007
      [Wed Jun 02 18:48:12.659003 2021] [php7:notice] [pid 1929] [client 10.0.2.2:59015] PHP  15. CDiscoveryRule->addRelatedObjects() /usr/share/zabbix/include/classes/api/services/CDiscoveryRule.php:297, referer: http://localhost:2080/zabbix/hosts.php?form=update&hostid=16007
      
      

      Attachments

        Activity

          People

            dotneft Alexey Pustovalov
            sb195c@att.com sbindley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: