grafana / grafana-zabbix

Zabbix plugin for Grafana dashboard
http://play.grafana-zabbix.org
Apache License 2.0
2.08k stars 461 forks source link

Can't execute scripts #1749

Open andrevader opened 1 year ago

andrevader commented 1 year ago

Describe the bug When I try to execute any scripts Zabbix, I received this error:

request failed, status: 500 Internal Server Error

When I see the log (apache2/error.log)

PHP Fatal error: Uncaught TypeError: Argument 2 passed to CZabbixServer::executeScript() must be of the type string, null given, called in /usr/share/zabbix/include/classes/api/services/CScript.php on line 941 and defined in /usr/share/zabbix/include/classes/server/CZabbixServer.php:153\nStack trace:\n#0 /usr/share/zabbix/include/classes/api/services/CScript.php(941): CZabbixServer->executeScript()\n#1 /usr/share/zabbix/include/classes/api/clients/CLocalApiClient.php(121): CScript->execute()\n#2 /usr/share/zabbix/include/classes/core/CJsonRpc.php(75): CLocalApiClient->callMethod()\n#3 /usr/share/zabbix/api_jsonrpc.php(63): CJsonRpc->execute()\n#4 {main}\n thrown in /usr/share/zabbix/include/classes/server/CZabbixServer.php on line 153

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image

Software versions

Grafana Zabbix Grafana-Zabbix Plugin
10.1.5 6.0.16 4.4.3
reacher666 commented 1 year ago

Hi, I had the same issue, but when calling Zabbix API with curl. I had Zabbix version 6.4.1 and after upgrading to 6.4.8 the problem was fixed. So maybe try upgrading Zabbix server?