Details

      Description

      i wanna update a trigger via API but i get the "cannot update tirgger" . i have checked all of access permission , all is ok but i am still getting cannot update by the error code 32602

      Login OK!
      Tue, 07 Dec 10 13:01:11 +0330
      CURL URL: http://81.91.129.14/zabbix/api_jsonrpc.php
      <br>CURL Options: Array
      (
      [19913] => 1
      [13] => 30
      [78] => 5
      [81] =>
      [64] =>
      [52] => 1
      [74] => 1
      [10023] => Array
      (
      [0] => Content-Type: application/json-rpc
      [1] => User-Agent: ZabbixAPI v1.0 - http://andrewfarley.com/zabbix_php_api
      )

      [10036] => POST
      [10015] => {"auth":"1ca202fe363ad0033abea702f5e8bd9a","method":"trigger.update","id":1,"params":

      {"status":0,"triggerid":"40601"}

      ,"jsonrpc":"2.0"}
      [10102] => gzip
      )
      Got response from API: ({"jsonrpc":"2.0","error":

      {"code":-32602,"message":"Invalid params.","data":"[ CTrigger::update ] Trigger [Port Status of 001 is now at UP mode ]: cannot update"}

      ,"id":1})
      Response decoded: (Array
      (
      [jsonrpc] => 2.0
      [error] => Array
      (
      [code] => -32602
      [message] => Invalid params.
      [data] => [ CTrigger::update ] Trigger [Port Status of 001 is now at UP mode ]: cannot update
      )

        Activity

        hamid sfandiari created issue -
        Hide
        Artem Suharev added a comment -

        Fixed trigger updating through API. But you still can't update trigger value, that is not something that should be updated by user.

        Show
        Artem Suharev added a comment - Fixed trigger updating through API. But you still can't update trigger value, that is not something that should be updated by user.
        Artem Suharev made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        hamid sfandiari added a comment -

        i didn't want to update trigger value. I wanna change trigger status like somthing which written in zabbix apu ducumetatio exampl of trigger.update

        Show
        hamid sfandiari added a comment - i didn't want to update trigger value. I wanna change trigger status like somthing which written in zabbix apu ducumetatio exampl of trigger.update
        richlv made changes -
        Fix Version/s 1.8.4 [ 10081 ]
        Hide
        richlv added a comment -

        the original issue is supposed to be fixed - if it's still reproducible in 1.8 svn head, please reopen

        Show
        richlv added a comment - the original issue is supposed to be fixed - if it's still reproducible in 1.8 svn head, please reopen
        richlv made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Alexei Vladishev made changes -
        Workflow Zabbix workflow [ 19623 ] Zabbix workflow - new [ 44428 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            hamid sfandiari
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: