Hallo,
ich habe meine Zabbix installation von 2.2 auf 2.4 geupdated.
Aktuelle Versionen sind unter Ubuntu 14.04:
Mein Api aufruf sieht z.b wie folgt aus:
Response:
Wenn ich Zeile 681 in der Caction.php auskommentiere:
funktioniert das Update.
Ist dies ein Bug oder muss ich den Updateaufruf für die neue Version anpassen.
Wenn ja wie ?
ich habe meine Zabbix installation von 2.2 auf 2.4 geupdated.
Aktuelle Versionen sind unter Ubuntu 14.04:
ii zabbix-frontend-php 1:2.4.6-1+trusty all network monitoring solution - PHP front-end
ii zabbix-release 2.4-1+trusty all Zabbix official repository configuration
ii zabbix-server-pgsql 1:2.4.6-1+trusty amd64 network monitoring solution - server (using PostgreSQL)
ii zabbix-release 2.4-1+trusty all Zabbix official repository configuration
ii zabbix-server-pgsql 1:2.4.6-1+trusty amd64 network monitoring solution - server (using PostgreSQL)
Mein Api aufruf sieht z.b wie folgt aus:
Code:
{
"jsonrpc":"2.0",
"method":"action.update",
"params":{
"actionid":"16",
"operations":[
{
"operationtype":0,
"esc_period":0,
"esc_step_from":1,
"esc_step_to":1,
"evaltype":0,
"opmessage":{
"default_msg":1,
"mediatypeid":"1"
},
"opmessage_usr":[
{
"userid":"3"
}
]
}
]
},
"auth":"3d1c4e795e3ee2291f95000ea34ebbcc",
"id":"14425551847274"
}
Code:
{
"jsonrpc":"2.0",
"error":{
"code":-32500,
"message":"Application error.",
"data":"Cannot perform update
statement on table \"actions\" without values."
},
"id":"14425551847274"
}
Code:
if ($actionsUpdateData) {
//DB::update('actions', $actionsUpdateData);
}
Ist dies ein Bug oder muss ich den Updateaufruf für die neue Version anpassen.
Wenn ja wie ?
Comment