Ad Widget

Collapse

import of templates fails with too large a file on appliance

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pmurtey
    Member
    • Mar 2020
    • 91

    #1

    import of templates fails with too large a file on appliance

    Hi All, We wanted to do some testing prior to possible future upgrade, so we downloaded the appliance .ova file and installed this 6.2 zabbix appliance. After it was up and running we tried to import the template backup file which was the exported file from our regular server. The template export file from the old system was 6mb, but when we went to import it into the appliance it gave us an error saying that the " file was too big and exceeded 2mb". Are we only getting this error because we were trying to import it into an appliance? TIA
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Try changing PHP's upload_max_filesize to allow larger uploads. I don't have an appliance environment, so I don't know the exact path, but in my environment, it is set in /etc/php-fpm.d/zabbix.conf.

    Code:
    php_value[upload_max_filesize] = 2M​

    Comment


    • svilches
      svilches commented
      Editing a comment
      It solved my problem, thanks!
  • pmurtey
    Member
    • Mar 2020
    • 91

    #3
    Hi Atsushi, I made the changes you recommended to the zabbix.conf file and restarted the php. However this time it allowed the import but I got a slew of errors (below) Details Import failed
    • Undefined offset: 1 [zabbix.php:22 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerPopupImportCompare->doAction() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CConfiguration->importcompare() → C54ImportConverter->convert() → C54ImportConverter::convertTemplates() → C54ImportConverter::convertItems() → C54ImportConverter::convertPreprocessingSteps() in include/classes/import/converters/C54ImportConverter.php:154]
    • Undefined offset: 1 [zabbix.php:22 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerPopupImportCompare->doAction() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CConfiguration->importcompare() → C54ImportConverter->convert() → C54ImportConverter::convertTemplates() → C54ImportConverter::convertItems() → C54ImportConverter::convertPreprocessingSteps() in include/classes/import/converters/C54ImportConverter.php:154]
    • Undefined offset: 1 [zabbix.php:22 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerPopupImportCompare->doAction()
    Are we to assume that 5.2 templates will not import in to 6.2 zabbix servers?

    Comment

    • Atsushi
      Senior Member
      • Aug 2013
      • 2028

      #4
      What OS and PHP version are you using? And, Please check the original thread regarding template compatibility.

      Comment

      Working...