Ad Widget

Collapse

Keine action.update für user operation möglich, nach Zabbix update

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • newan
    Junior Member
    • Sep 2015
    • 7

    #1

    Keine action.update für user operation möglich, nach Zabbix update

    Hallo,

    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)

    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"
    }
    Response:
    Code:
    {
       "jsonrpc":"2.0",
       "error":{
          "code":-32500,
          "message":"Application error.",
          "data":"Cannot perform update
     statement on table \"actions\" without values."
       },
       "id":"14425551847274"
    }
    Wenn ich Zeile 681 in der Caction.php auskommentiere:
    Code:
    		if ($actionsUpdateData) {
    			//DB::update('actions', $actionsUpdateData);
    		}
    funktioniert das Update.

    Ist dies ein Bug oder muss ich den Updateaufruf für die neue Version anpassen.
    Wenn ja wie ?
  • newan
    Junior Member
    • Sep 2015
    • 7

    #2


    Fehlt im Aufruf, danach gehts

    Comment

    Working...