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

500 Internal Server Error (RestClient::InternalServerError)

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0.10rc1
    • 2.0.4rc1
    • API (A)
    • Ubuntu 12 - Apache 2.2.22 - PHP - 5.3.10 - Mysql 5.5.24

      I am using the API to create hosts on my test zabbix server. I can successfully add eight hosts without any problems, that is until I try to add a templateid tag. With the templateId in place I am getting the following error:

      500 Internal Server Error (RestClient::InternalServerError)

      When I look at my apache web server logs I see the following:

      [Wed Oct 24 17:35:21 2012] [error] [client 192.168.69.38] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 77 bytes) in /var/www/zabbix2/include/classes/debug/CProfiler.php on line 232

      I have tried to increase the memory_limit alloted to PHP and only a slight change in the logs:

      [Mon Oct 22 11:49:40 2012] [error] [client 192.168.69.38] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32 bytes) in /var/www/zabbix2/include/classes/debug/CProfiler.php on line 232

      If I remove the templateid tag everything works as expected.

            iivs Ivo Kurzemnieks
            jorosco Jesus Orosco
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: