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
Ad Widget
Collapse
import of templates fails with too large a file on appliance
Collapse
X
-
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
-
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()
Comment
-
What OS and PHP version are you using? And, Please check the original thread regarding template compatibility.
Comment
Comment