Ad Widget
Collapse
Zabbix 3.0 DB type "MYSQL" is not supported by current setup. Possible values .
Collapse
X
-
http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
https://kloczek.wordpress.com/
zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
My zabbix templates https://github.com/kloczek/zabbix-templates -
Hi kloczek,
Please read above /etc/httpd/logs/error_log
[Fri May 06 16:20:49 2016] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Fri May 06 16:20:52 2016] [error] [client 127.0.0.1] PHP Parse error: syntax error, unexpected '[' in /var/www/html/zabbix/index.php on line 29
[Fri May 06 16:20:53 2016] [error] [client 127.0.0.1] PHP Parse error: syntax error, unexpected '[' in /var/www/html/zabbix/index.php on line 29Comment
-
Comment
-
Hello!
Same problem, but with a little differences.
Trying to update Ubuntu 14.04.5 LTS to 16 LTS with Zabbix 3.4 installed. Made a lot of different attempts (on test machine - clone of production) and still no results.
So, same error: DB type "MYSQL" is not supported by current setup. Possible values .
Due to this topic trying to fix. Checked
nothing. Empty output. Made:Code:$ php -r "phpinfo();" 2>/dev/null | egrep -i ^mysql | grep Support
from https://www.zabbix.com/documentation.../debian_ubuntuCode:apt-get install --reinstall zabbix-frontend-php
installed missing packages.
Now:
Looks like ok. But not working.Code:# php -r "phpinfo();" 2>/dev/null | egrep -i ^mysql | grep Support MySQL Support => enabled MysqlI Support => enabled
Last attempt - downgrade PHP from 7 to 5.6: https://askubuntu.com/questions/7617...n-ubuntu-16-04
Downgraded and switched to 5.6.
cat /var/log/apache2/error.log
Total error.Code:[Sun Mar 04 06:38:31.150822 2018] [mpm_prefork:notice] [pid 1352] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.23 configured -- resuming normal operations [Sun Mar 04 06:38:31.150871 2018] [core:notice] [pid 1352] AH00094: Command line: '/usr/sbin/apache2' [Sun Mar 04 12:31:25.712986 2018] [mpm_prefork:notice] [pid 1352] AH00169: caught SIGTERM, shutting down [Sun Mar 25 19:56:41.306343 2018] [mpm_prefork:notice] [pid 1443] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.23 configured -- resuming normal operations [Sun Mar 25 19:56:41.362000 2018] [core:notice] [pid 1443] AH00094: Command line: '/usr/sbin/apache2' [Sun Mar 25 23:31:24.211937 2018] [mpm_prefork:notice] [pid 1443] AH00169: caught SIGTERM, shutting down [Sun Mar 25 23:40:31.105097 2018] [mpm_prefork:notice] [pid 19209] AH00163: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations [Sun Mar 25 23:40:31.105651 2018] [core:notice] [pid 19209] AH00094: Command line: '/usr/sbin/apache2' [Sun Mar 25 23:55:30.522139 2018] [mpm_prefork:notice] [pid 19209] AH00169: caught SIGTERM, shutting down [Sun Mar 25 23:55:31.936681 2018] [mpm_prefork:notice] [pid 31732] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations [Sun Mar 25 23:55:31.936910 2018] [core:notice] [pid 31732] AH00094: Command line: '/usr/sbin/apache2' [Mon Mar 26 00:19:07.504167 2018] [mpm_prefork:notice] [pid 949] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations [Mon Mar 26 00:19:07.531888 2018] [core:notice] [pid 949] AH00094: Command line: '/usr/sbin/apache2' [Mon Mar 26 00:33:44.520785 2018] [mpm_prefork:notice] [pid 949] AH00169: caught SIGTERM, shutting down [Mon Mar 26 00:34:52.721190 2018] [mpm_prefork:notice] [pid 944] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations [Mon Mar 26 00:34:52.735795 2018] [core:notice] [pid 944] AH00094: Command line: '/usr/sbin/apache2' [Mon Mar 26 00:44:27.741220 2018] [mpm_prefork:notice] [pid 944] AH00169: caught SIGTERM, shutting down [Mon Mar 26 00:44:29.186701 2018] [mpm_prefork:notice] [pid 23082] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations [Mon Mar 26 00:44:29.187268 2018] [core:notice] [pid 23082] AH00094: Command line: '/usr/sbin/apache2' [Mon Mar 26 00:44:40.349288 2018] [:error] [pid 23088] [client 10.100.30.211:51194] PHP Fatal error: Call to undefined function bccomp() in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 500 [Mon Mar 26 00:44:40.349345 2018] [:error] [pid 23088] [client 10.100.30.211:51194] PHP Stack trace: [Mon Mar 26 00:44:40.349370 2018] [:error] [pid 23088] [client 10.100.30.211:51194] PHP 1. {main}() /usr/share/zabbix/zabbix.php:0 [Mon Mar 26 00:44:40.349389 2018] [:error] [pid 23088] [client 10.100.30.211:51194] PHP 2. require_once() /usr/share/zabbix/zabbix.php:21 [Mon Mar 26 00:44:40.349408 2018] [:error] [pid 23088] [client 10.100.30.211:51194] PHP 3. ZBase->run() /usr/share/zabbix/include/config.inc.php:33 [Mon Mar 26 00:44:40.349426 2018] [:error] [pid 23088] [client 10.100.30.211:51194] PHP 4. ZBase->processRequest() /usr/share/zabbix/include/classes/core/ZBase.php:156 [Mon Mar 26 00:44:40.349445 2018] [:error] [pid 23088] [client 10.100.30.211:51194] PHP 5. CController->run() /usr/share/zabbix/include/classes/core/ZBase.php:381 [Mon Mar 26 00:44:40.349463 2018] [:error] [pid 23088] [client 10.100.30.211:51194] PHP 6. CControllerDashboardView->doAction() /usr/share/zabbix/include/classes/mvc/CController.php:299 [Mon Mar 26 00:44:40.349482 2018] [:error] [pid 23088] [client 10.100.30.211:51194] PHP 7. CControllerDashboardView->getDashboard() /usr/share/zabbix/app/controllers/CControllerDashboardView.php:85 [Mon Mar 26 00:44:40.349501 2018] [:error] [pid 23088] [client 10.100.30.211:51194] PHP 8. CFrontendApiWrapper->get() /usr/share/zabbix/app/controllers/CControllerDashboardView.php:232 [Mon Mar 26 00:44:40.349519 2018] [:error] [pid 23088] [client 10.100.30.211:51194] PHP 9. CApiWrapper->__call() /usr/share/zabbix/app/controllers/CControllerDashboardView.php:232 [Mon Mar 26 00:44:40.349538 2018] [:error] [pid 23088] [client 10.100.30.211:51194] PHP 10. CFrontendApiWrapper->callMethod() /usr/share/zabbix/include/classes/api/wrappers/CApiWrapper.php:82 [Mon Mar 26 00:44:40.349594 2018] [:error] [pid 23088] [client 10.100.30.211:51194] PHP 11. CApiWrapper->callMethod() /usr/share/zabbix/include/classes/api/wrappers/CFrontendApiWrapper.php:63 [Mon Mar 26 00:44:40.349614 2018] [:error] [pid 23088] [client 10.100.30.211:51194] PHP 12. CFrontendApiWrapper->callClientMethod() /usr/share/zabbix/include/classes/api/wrappers/CApiWrapper.php:94 [Mon Mar 26 00:44:40.349632 2018] [:error] [pid 23088] [client 10.100.30.211:51194] PHP 13. CLocalApiClient->callMethod() /usr/share/zabbix/include/classes/api/wrappers/CFrontendApiWrapper.php:97 [Mon Mar 26 00:44:40.349650 2018] [:error] [pid 23088] [client 10.100.30.211:51194] PHP 14. call_user_func_array:{/usr/share/zabbix/include/classes/api/clients/CLocalApiClient.php:123}() /usr/share/zabbix/include/classes/api/clients/CLocalApiClient.php:123 [Mon Mar 26 00:44:40.349668 2018] [:error] [pid 23088] [client 10.100.30.211:51194] PHP 15. CDashboard->get() /usr/share/zabbix/include/classes/api/clients/CLocalApiClient.php:123 [Mon Mar 26 00:44:40.349686 2018] [:error] [pid 23088] [client 10.100.30.211:51194] PHP 16. CApiInputValidator::validate() /usr/share/zabbix/include/classes/api/services/CDashboard.php:70 [Mon Mar 26 00:44:40.349704 2018] [:error] [pid 23088] [client 10.100.30.211:51194] PHP 17. CApiInputValidator::validateData() /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:40 [Mon Mar 26 00:44:40.349722 2018] [:error] [pid 23088] [client 10.100.30.211:51194] PHP 18. CApiInputValidator::validateObject() /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:101 [Mon Mar 26 00:44:40.349740 2018] [:error] [pid 23088] [client 10.100.30.211:51194] PHP 19. CApiInputValidator::validateData() /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:606 [Mon Mar 26 00:44:40.349758 2018] [:error] [pid 23088] [client 10.100.30.211:51194] PHP 20. CApiInputValidator::validateIds() /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:107 [Mon Mar 26 00:44:40.349776 2018] [:error] [pid 23088] [client 10.100.30.211:51194] PHP 21. CApiInputValidator::validateId() /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:682 [Mon Mar 26 00:45:09.852644 2018] [:error] [pid 23089] [client 10.100.30.211:51198] PHP Fatal error: Call to undefined function bccomp() in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 500 [Mon Mar 26 00:45:09.852802 2018] [:error] [pid 23089] [client 10.100.30.211:51198] PHP Stack trace: [Mon Mar 26 00:45:09.852823 2018] [:error] [pid 23089] [client 10.100.30.211:51198] PHP 1. {main}() /usr/share/zabbix/zabbix.php:0 [Mon Mar 26 00:45:09.852841 2018] [:error] [pid 23089] [client 10.100.30.211:51198] PHP 2. require_once() /usr/share/zabbix/zabbix.php:21 [Mon Mar 26 00:45:09.852859 2018] [:error] [pid 23089] [client 10.100.30.211:51198] PHP 3. ZBase->run() /usr/share/zabbix/include/config.inc.php:33 [Mon Mar 26 00:45:09.852878 2018] [:error] [pid 23089] [client 10.100.30.211:51198] PHP 4. ZBase->processRequest() /usr/share/zabbix/include/classes/core/ZBase.php:156 [Mon Mar 26 00:45:09.852897 2018] [:error] [pid 23089] [client 10.100.30.211:51198] PHP 5. CController->run() /usr/share/zabbix/include/classes/core/ZBase.php:381 [Mon Mar 26 00:45:09.852915 2018] [:error] [pid 23089] [client 10.100.30.211:51198] PHP 6. CControllerDashboardView->doAction() /usr/share/zabbix/include/classes/mvc/CController.php:299 [Mon Mar 26 00:45:09.852934 2018] [:error] [pid 23089] [client 10.100.30.211:51198] PHP 7. CControllerDashboardView->getDashboard() /usr/share/zabbix/app/controllers/CControllerDashboardView.php:85 [Mon Mar 26 00:45:09.852952 2018] [:error] [pid 23089] [client 10.100.30.211:51198] PHP 8. CFrontendApiWrapper->get() /usr/share/zabbix/app/controllers/CControllerDashboardView.php:232 [Mon Mar 26 00:45:09.852971 2018] [:error] [pid 23089] [client 10.100.30.211:51198] PHP 9. CApiWrapper->__call() /usr/share/zabbix/app/controllers/CControllerDashboardView.php:232 [Mon Mar 26 00:45:09.853000 2018] [:error] [pid 23089] [client 10.100.30.211:51198] PHP 10. CFrontendApiWrapper->callMethod() /usr/share/zabbix/include/classes/api/wrappers/CApiWrapper.php:82 [Mon Mar 26 00:45:09.853019 2018] [:error] [pid 23089] [client 10.100.30.211:51198] PHP 11. CApiWrapper->callMethod() /usr/share/zabbix/include/classes/api/wrappers/CFrontendApiWrapper.php:63 [Mon Mar 26 00:45:09.853037 2018] [:error] [pid 23089] [client 10.100.30.211:51198] PHP 12. CFrontendApiWrapper->callClientMethod() /usr/share/zabbix/include/classes/api/wrappers/CApiWrapper.php:94 [Mon Mar 26 00:45:09.853055 2018] [:error] [pid 23089] [client 10.100.30.211:51198] PHP 13. CLocalApiClient->callMethod() /usr/share/zabbix/include/classes/api/wrappers/CFrontendApiWrapper.php:97 [Mon Mar 26 00:45:09.853072 2018] [:error] [pid 23089] [client 10.100.30.211:51198] PHP 14. call_user_func_array:{/usr/share/zabbix/include/classes/api/clients/CLocalApiClient.php:123}() /usr/share/zabbix/include/classes/api/clients/CLocalApiClient.php:123 [Mon Mar 26 00:45:09.853091 2018] [:error] [pid 23089] [client 10.100.30.211:51198] PHP 15. CDashboard->get() /usr/share/zabbix/include/classes/api/clients/CLocalApiClient.php:123 [Mon Mar 26 00:45:09.853109 2018] [:error] [pid 23089] [client 10.100.30.211:51198] PHP 16. CApiInputValidator::validate() /usr/share/zabbix/include/classes/api/services/CDashboard.php:70 [Mon Mar 26 00:45:09.853126 2018] [:error] [pid 23089] [client 10.100.30.211:51198] PHP 17. CApiInputValidator::validateData() /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:40 [Mon Mar 26 00:45:09.853144 2018] [:error] [pid 23089] [client 10.100.30.211:51198] PHP 18. CApiInputValidator::validateObject() /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:101 [Mon Mar 26 00:45:09.853162 2018] [:error] [pid 23089] [client 10.100.30.211:51198] PHP 19. CApiInputValidator::validateData() /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:606 [Mon Mar 26 00:45:09.853179 2018] [:error] [pid 23089] [client 10.100.30.211:51198] PHP 20. CApiInputValidator::validateIds() /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:107 [Mon Mar 26 00:45:09.853197 2018] [:error] [pid 23089] [client 10.100.30.211:51198] PHP 21. CApiInputValidator::validateId() /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:682 [Mon Mar 26 00:45:15.138389 2018] [:error] [pid 23086] [client 10.100.30.211:51199] PHP Fatal error: Call to undefined function bccomp() in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 500 [Mon Mar 26 00:45:15.138507 2018] [:error] [pid 23086] [client 10.100.30.211:51199] PHP Stack trace: [Mon Mar 26 00:45:15.138528 2018] [:error] [pid 23086] [client 10.100.30.211:51199] PHP 1. {main}() /usr/share/zabbix/zabbix.php:0 [Mon Mar 26 00:45:15.138546 2018] [:error] [pid 23086] [client 10.100.30.211:51199] PHP 2. require_once() /usr/share/zabbix/zabbix.php:21 [Mon Mar 26 00:45:15.138564 2018] [:error] [pid 23086] [client 10.100.30.211:51199] PHP 3. ZBase->run() /usr/share/zabbix/include/config.inc.php:33 [Mon Mar 26 00:45:15.138581 2018] [:error] [pid 23086] [client 10.100.30.211:51199] PHP 4. ZBase->processRequest() /usr/share/zabbix/include/classes/core/ZBase.php:156 [Mon Mar 26 00:45:15.138599 2018] [:error] [pid 23086] [client 10.100.30.211:51199] PHP 5. CController->run() /usr/share/zabbix/include/classes/core/ZBase.php:381 [Mon Mar 26 00:45:15.138617 2018] [:error] [pid 23086] [client 10.100.30.211:51199] PHP 6. CControllerDashboardView->doAction() /usr/share/zabbix/include/classes/mvc/CController.php:299 [Mon Mar 26 00:45:15.138636 2018] [:error] [pid 23086] [client 10.100.30.211:51199] PHP 7. CControllerDashboardView->getDashboard() /usr/share/zabbix/app/controllers/CControllerDashboardView.php:85 [Mon Mar 26 00:45:15.138654 2018] [:error] [pid 23086] [client 10.100.30.211:51199] PHP 8. CFrontendApiWrapper->get() /usr/share/zabbix/app/controllers/CControllerDashboardView.php:232 [Mon Mar 26 00:45:15.138699 2018] [:error] [pid 23086] [client 10.100.30.211:51199] PHP 9. CApiWrapper->__call() /usr/share/zabbix/app/controllers/CControllerDashboardView.php:232 [Mon Mar 26 00:45:15.138718 2018] [:error] [pid 23086] [client 10.100.30.211:51199] PHP 10. CFrontendApiWrapper->callMethod() /usr/share/zabbix/include/classes/api/wrappers/CApiWrapper.php:82 [Mon Mar 26 00:45:15.138735 2018] [:error] [pid 23086] [client 10.100.30.211:51199] PHP 11. CApiWrapper->callMethod() /usr/share/zabbix/include/classes/api/wrappers/CFrontendApiWrapper.php:63 [Mon Mar 26 00:45:15.138753 2018] [:error] [pid 23086] [client 10.100.30.211:51199] PHP 12. CFrontendApiWrapper->callClientMethod() /usr/share/zabbix/include/classes/api/wrappers/CApiWrapper.php:94 [Mon Mar 26 00:45:15.138771 2018] [:error] [pid 23086] [client 10.100.30.211:51199] PHP 13. CLocalApiClient->callMethod() /usr/share/zabbix/include/classes/api/wrappers/CFrontendApiWrapper.php:97 [Mon Mar 26 00:45:15.138789 2018] [:error] [pid 23086] [client 10.100.30.211:51199] PHP 14. call_user_func_array:{/usr/share/zabbix/include/classes/api/clients/CLocalApiClient.php:123}() /usr/share/zabbix/include/classes/api/clients/CLocalApiClient.php:123 [Mon Mar 26 00:45:15.138807 2018] [:error] [pid 23086] [client 10.100.30.211:51199] PHP 15. CDashboard->get() /usr/share/zabbix/include/classes/api/clients/CLocalApiClient.php:123 [Mon Mar 26 00:45:15.138825 2018] [:error] [pid 23086] [client 10.100.30.211:51199] PHP 16. CApiInputValidator::validate() /usr/share/zabbix/include/classes/api/services/CDashboard.php:70 [Mon Mar 26 00:45:15.138843 2018] [:error] [pid 23086] [client 10.100.30.211:51199] PHP 17. CApiInputValidator::validateData() /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:40 [Mon Mar 26 00:45:15.138861 2018] [:error] [pid 23086] [client 10.100.30.211:51199] PHP 18. CApiInputValidator::validateObject() /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:101 [Mon Mar 26 00:45:15.138878 2018] [:error] [pid 23086] [client 10.100.30.211:51199] PHP 19. CApiInputValidator::validateData() /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:606 [Mon Mar 26 00:45:15.138896 2018] [:error] [pid 23086] [client 10.100.30.211:51199] PHP 20. CApiInputValidator::validateIds() /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:107 [Mon Mar 26 00:45:15.138914 2018] [:error] [pid 23086] [client 10.100.30.211:51199] PHP 21. CApiInputValidator::validateId() /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:682 [Mon Mar 26 00:45:18.985625 2018] [:error] [pid 23085] [client 10.100.30.211:51201] PHP Fatal error: Call to undefined function bccomp() in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 500 [Mon Mar 26 00:45:18.985736 2018] [:error] [pid 23085] [client 10.100.30.211:51201] PHP Stack trace: [Mon Mar 26 00:45:18.985757 2018] [:error] [pid 23085] [client 10.100.30.211:51201] PHP 1. {main}() /usr/share/zabbix/zabbix.php:0 [Mon Mar 26 00:45:18.985775 2018] [:error] [pid 23085] [client 10.100.30.211:51201] PHP 2. require_once() /usr/share/zabbix/zabbix.php:21 [Mon Mar 26 00:45:18.985793 2018] [:error] [pid 23085] [client 10.100.30.211:51201] PHP 3. ZBase->run() /usr/share/zabbix/include/config.inc.php:33 [Mon Mar 26 00:45:18.985811 2018] [:error] [pid 23085] [client 10.100.30.211:51201] PHP 4. ZBase->processRequest() /usr/share/zabbix/include/classes/core/ZBase.php:156 [Mon Mar 26 00:45:18.985830 2018] [:error] [pid 23085] [client 10.100.30.211:51201] PHP 5. CController->run() /usr/share/zabbix/include/classes/core/ZBase.php:381 [Mon Mar 26 00:45:18.985848 2018] [:error] [pid 23085] [client 10.100.30.211:51201] PHP 6. CControllerDashboardView->doAction() /usr/share/zabbix/include/classes/mvc/CController.php:299 [Mon Mar 26 00:45:18.985866 2018] [:error] [pid 23085] [client 10.100.30.211:51201] PHP 7. CControllerDashboardView->getDashboard() /usr/share/zabbix/app/controllers/CControllerDashboardView.php:85 [Mon Mar 26 00:45:18.985897 2018] [:error] [pid 23085] [client 10.100.30.211:51201] PHP 8. CFrontendApiWrapper->get() /usr/share/zabbix/app/controllers/CControllerDashboardView.php:232 [Mon Mar 26 00:45:18.985915 2018] [:error] [pid 23085] [client 10.100.30.211:51201] PHP 9. CApiWrapper->__call() /usr/share/zabbix/app/controllers/CControllerDashboardView.php:232 [Mon Mar 26 00:45:18.985933 2018] [:error] [pid 23085] [client 10.100.30.211:51201] PHP 10. CFrontendApiWrapper->callMethod() /usr/share/zabbix/include/classes/api/wrappers/CApiWrapper.php:82 [Mon Mar 26 00:45:18.985951 2018] [:error] [pid 23085] [client 10.100.30.211:51201] PHP 11. CApiWrapper->callMethod() /usr/share/zabbix/include/classes/api/wrappers/CFrontendApiWrapper.php:63 [Mon Mar 26 00:45:18.985969 2018] [:error] [pid 23085] [client 10.100.30.211:51201] PHP 12. CFrontendApiWrapper->callClientMethod() /usr/share/zabbix/include/classes/api/wrappers/CApiWrapper.php:94 [Mon Mar 26 00:45:18.985987 2018] [:error] [pid 23085] [client 10.100.30.211:51201] PHP 13. CLocalApiClient->callMethod() /usr/share/zabbix/include/classes/api/wrappers/CFrontendApiWrapper.php:97 [Mon Mar 26 00:45:18.986005 2018] [:error] [pid 23085] [client 10.100.30.211:51201] PHP 14. call_user_func_array:{/usr/share/zabbix/include/classes/api/clients/CLocalApiClient.php:123}() /usr/share/zabbix/include/classes/api/clients/CLocalApiClient.php:123 [Mon Mar 26 00:45:18.986023 2018] [:error] [pid 23085] [client 10.100.30.211:51201] PHP 15. CDashboard->get() /usr/share/zabbix/include/classes/api/clients/CLocalApiClient.php:123 [Mon Mar 26 00:45:18.986041 2018] [:error] [pid 23085] [client 10.100.30.211:51201] PHP 16. CApiInputValidator::validate() /usr/share/zabbix/include/classes/api/services/CDashboard.php:70 [Mon Mar 26 00:45:18.986059 2018] [:error] [pid 23085] [client 10.100.30.211:51201] PHP 17. CApiInputValidator::validateData() /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:40 [Mon Mar 26 00:45:18.986076 2018] [:error] [pid 23085] [client 10.100.30.211:51201] PHP 18. CApiInputValidator::validateObject() /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:101 [Mon Mar 26 00:45:18.986094 2018] [:error] [pid 23085] [client 10.100.30.211:51201] PHP 19. CApiInputValidator::validateData() /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:606 [Mon Mar 26 00:45:18.986112 2018] [:error] [pid 23085] [client 10.100.30.211:51201] PHP 20. CApiInputValidator::validateIds() /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:107 [Mon Mar 26 00:45:18.986130 2018] [:error] [pid 23085] [client 10.100.30.211:51201] PHP 21. CApiInputValidator::validateId() /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:682 [Mon Mar 26 00:45:26.392672 2018] [mpm_prefork:notice] [pid 23082] AH00169: caught SIGTERM, shutting down [Mon Mar 26 00:53:00.231282 2018] [mpm_prefork:notice] [pid 952] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations [Mon Mar 26 00:53:00.290886 2018] [core:notice] [pid 952] AH00094: Command line: '/usr/sbin/apache2' [Mon Mar 26 00:53:20.672784 2018] [:error] [pid 1019] [client 10.100.30.211:51351] PHP Fatal error: Call to undefined function bccomp() in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 500 [Mon Mar 26 00:53:20.673035 2018] [:error] [pid 1019] [client 10.100.30.211:51351] PHP Stack trace: [Mon Mar 26 00:53:20.673062 2018] [:error] [pid 1019] [client 10.100.30.211:51351] PHP 1. {main}() /usr/share/zabbix/zabbix.php:0 [Mon Mar 26 00:53:20.673081 2018] [:error] [pid 1019] [client 10.100.30.211:51351] PHP 2. require_once() /usr/share/zabbix/zabbix.php:21 [Mon Mar 26 00:53:20.673099 2018] [:error] [pid 1019] [client 10.100.30.211:51351] PHP 3. ZBase->run() /usr/share/zabbix/include/config.inc.php:33 [Mon Mar 26 00:53:20.673117 2018] [:error] [pid 1019] [client 10.100.30.211:51351] PHP 4. ZBase->processRequest() /usr/share/zabbix/include/classes/core/ZBase.php:156 [Mon Mar 26 00:53:20.673157 2018] [:error] [pid 1019] [client 10.100.30.211:51351] PHP 5. CController->run() /usr/share/zabbix/include/classes/core/ZBase.php:381 [Mon Mar 26 00:53:20.673176 2018] [:error] [pid 1019] [client 10.100.30.211:51351] PHP 6. CControllerDashboardView->doAction() /usr/share/zabbix/include/classes/mvc/CController.php:299 [Mon Mar 26 00:53:20.673194 2018] [:error] [pid 1019] [client 10.100.30.211:51351] PHP 7. CControllerDashboardView->getDashboard() /usr/share/zabbix/app/controllers/CControllerDashboardView.php:85 [Mon Mar 26 00:53:20.673212 2018] [:error] [pid 1019] [client 10.100.30.211:51351] PHP 8. CFrontendApiWrapper->get() /usr/share/zabbix/app/controllers/CControllerDashboardView.php:232 [Mon Mar 26 00:53:20.673230 2018] [:error] [pid 1019] [client 10.100.30.211:51351] PHP 9. CApiWrapper->__call() /usr/share/zabbix/app/controllers/CControllerDashboardView.php:232 [Mon Mar 26 00:53:20.673248 2018] [:error] [pid 1019] [client 10.100.30.211:51351] PHP 10. CFrontendApiWrapper->callMethod() /usr/share/zabbix/include/classes/api/wrappers/CApiWrapper.php:82 [Mon Mar 26 00:53:20.673266 2018] [:error] [pid 1019] [client 10.100.30.211:51351] PHP 11. CApiWrapper->callMethod() /usr/share/zabbix/include/classes/api/wrappers/CFrontendApiWrapper.php:63 [Mon Mar 26 00:53:20.673293 2018] [:error] [pid 1019] [client 10.100.30.211:51351] PHP 12. CFrontendApiWrapper->callClientMethod() /usr/share/zabbix/include/classes/api/wrappers/CApiWrapper.php:94 [Mon Mar 26 00:53:20.673347 2018] [:error] [pid 1019] [client 10.100.30.211:51351] PHP 13. CLocalApiClient->callMethod() /usr/share/zabbix/include/classes/api/wrappers/CFrontendApiWrapper.php:97 [Mon Mar 26 00:53:20.673365 2018] [:error] [pid 1019] [client 10.100.30.211:51351] PHP 14. call_user_func_array:{/usr/share/zabbix/include/classes/api/clients/CLocalApiClient.php:123}() /usr/share/zabbix/include/classes/api/clients/CLocalApiClient.php:123 [Mon Mar 26 00:53:20.673383 2018] [:error] [pid 1019] [client 10.100.30.211:51351] PHP 15. CDashboard->get() /usr/share/zabbix/include/classes/api/clients/CLocalApiClient.php:123 [Mon Mar 26 00:53:20.673401 2018] [:error] [pid 1019] [client 10.100.30.211:51351] PHP 16. CApiInputValidator::validate() /usr/share/zabbix/include/classes/api/services/CDashboard.php:70 [Mon Mar 26 00:53:20.673419 2018] [:error] [pid 1019] [client 10.100.30.211:51351] PHP 17. CApiInputValidator::validateData() /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:40 [Mon Mar 26 00:53:20.673436 2018] [:error] [pid 1019] [client 10.100.30.211:51351] PHP 18. CApiInputValidator::validateObject() /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:101 [Mon Mar 26 00:53:20.673454 2018] [:error] [pid 1019] [client 10.100.30.211:51351] PHP 19. CApiInputValidator::validateData() /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:606 [Mon Mar 26 00:53:20.673472 2018] [:error] [pid 1019] [client 10.100.30.211:51351] PHP 20. CApiInputValidator::validateIds() /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:107 [Mon Mar 26 00:53:20.673489 2018] [:error] [pid 1019] [client 10.100.30.211:51351] PHP 21. CApiInputValidator::validateId() /usr/share/zabbix/include/classes/validators/CApiInputValidator.php:682 [Mon Mar 26 00:54:05.515584 2018] [mpm_prefork:notice] [pid 952] AH00169: caught SIGTERM, shutting down [Mon Mar 26 00:57:33.808148 2018] [mpm_prefork:notice] [pid 943] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations [Mon Mar 26 00:57:33.839570 2018] [core:notice] [pid 943] AH00094: Command line: '/usr/sbin/apache2' [Mon Mar 26 00:58:38.553116 2018] [:error] [pid 1024] [client 10.106.0.19:53326] PHP Fatal error: Call to undefined function bcadd() in /usr/share/zabbix/include/classes/db/DB.php on line 110 [Mon Mar 26 00:58:38.553261 2018] [:error] [pid 1024] [client 10.106.0.19:53326] PHP Stack trace: [Mon Mar 26 00:58:38.553282 2018] [:error] [pid 1024] [client 10.106.0.19:53326] PHP 1. {main}() /usr/share/zabbix/zabbix.php:0 [Mon Mar 26 00:58:38.553300 2018] [:error] [pid 1024] [client 10.106.0.19:53326] PHP 2. require_once() /usr/share/zabbix/zabbix.php:21 [Mon Mar 26 00:58:38.553331 2018] [:error] [pid 1024] [client 10.106.0.19:53326] PHP 3. ZBase->run() /usr/share/zabbix/include/config.inc.php:33 [Mon Mar 26 00:58:38.553350 2018] [:error] [pid 1024] [client 10.106.0.19:53326] PHP 4. ZBase->authenticateUser() /usr/share/zabbix/include/classes/core/ZBase.php:129 [Mon Mar 26 00:58:38.553368 2018] [:error] [pid 1024] [client 10.106.0.19:53326] PHP 5. CWebUser::checkAuthentication() /usr/share/zabbix/include/classes/core/ZBase.php:357 [Mon Mar 26 00:58:38.553386 2018] [:error] [pid 1024] [client 10.106.0.19:53326] PHP 6. CFrontendApiWrapper->login() /usr/share/zabbix/include/classes/user/CWebUser.php:115 [Mon Mar 26 00:58:38.553405 2018] [:error] [pid 1024] [client 10.106.0.19:53326] PHP 7. CApiWrapper->__call() /usr/share/zabbix/include/classes/user/CWebUser.php:115 [Mon Mar 26 00:58:38.553423 2018] [:error] [pid 1024] [client 10.106.0.19:53326] PHP 8. CFrontendApiWrapper->callMethod() /usr/share/zabbix/include/classes/api/wrappers/CApiWrapper.php:82 [Mon Mar 26 00:58:38.553441 2018] [:error] [pid 1024] [client 10.106.0.19:53326] PHP 9. CApiWrapper->callMethod() /usr/share/zabbix/include/classes/api/wrappers/CFrontendApiWrapper.php:63 [Mon Mar 26 00:58:38.553459 2018] [:error] [pid 1024] [client 10.106.0.19:53326] PHP 10. CFrontendApiWrapper->callClientMethod() /usr/share/zabbix/include/classes/api/wrappers/CApiWrapper.php:94 [Mon Mar 26 00:58:38.553477 2018] [:error] [pid 1024] [client 10.106.0.19:53326] PHP 11. CLocalApiClient->callMethod() /usr/share/zabbix/include/classes/api/wrappers/CFrontendApiWrapper.php:97 [Mon Mar 26 00:58:38.553496 2018] [:error] [pid 1024] [client 10.106.0.19:53326] PHP 12. call_user_func_array:{/usr/share/zabbix/include/classes/api/clients/CLocalApiClient.php:123}() /usr/share/zabbix/include/classes/api/clients/CLocalApiClient.php:123 [Mon Mar 26 00:58:38.553514 2018] [:error] [pid 1024] [client 10.106.0.19:53326] PHP 13. CUser->login() /usr/share/zabbix/include/classes/api/clients/CLocalApiClient.php:123 [Mon Mar 26 00:58:38.553532 2018] [:error] [pid 1024] [client 10.106.0.19:53326] PHP 14. CApiService->addAuditDetails() /usr/share/zabbix/include/classes/api/services/CUser.php:1446 [Mon Mar 26 00:58:38.553550 2018] [:error] [pid 1024] [client 10.106.0.19:53326] PHP 15. CAudit::addDetails() /usr/share/zabbix/include/classes/api/CApiService.php:1100 [Mon Mar 26 00:58:38.553567 2018] [:error] [pid 1024] [client 10.106.0.19:53326] PHP 16. DB::insert() /usr/share/zabbix/include/classes/api/CAudit.php:41 [Mon Mar 26 00:58:38.553584 2018] [:error] [pid 1024] [client 10.106.0.19:53326] PHP 17. DB::reserveIds() /usr/share/zabbix/include/classes/db/DB.php:448
I have no more ideas what to do.
Can anybody help me, please?
Thanks!Last edited by MR_Andrew; 26-03-2018, 00:18.Comment
-
You are magician! Thank you very much!
Made:
And now it works! I got installation page: https://www.zabbix.com/documentation...lling_frontendCode:sudo apt-get purge apache2 sudo apt-get purge php* sudo apt autoremove reboot sudo apt-get install zabbix-frontend-php reboot
made all installations (on fact - only password to DB was inserted) and frondend start to work!
Checked main logs (zabbix_server, apache2, mysql) - no more errors found.
Hope everything will be fine!
Now:
Hope this is ok.Code:# php -r "phpinfo();" 2>/dev/null | egrep -i ^mysql | grep Support MysqlI Support => enabled
If test machine will works fine several days - will repeat all procedure from the beginning and start updating production server.Comment



Comment