Ad Widget

Collapse

Zabbix update using API error "Incorrect trigger expression"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hiad
    Junior Member
    • Aug 2016
    • 22

    #1

    Zabbix update using API error "Incorrect trigger expression"

    Hello Team!
    Im working in an update trigger prototype, i'm not able to update using API zabbix

    Initial Expression:
    {14342}>0 and ({14343})>({14342})*0.8

    I'm only changing the number in the end of the expression but Zabbix response me:

    error :

    code:-32602
    data:"Incorrect trigger expression. Check expression part starting from "{14401}>0 and ({14402})>({14401})*0.33"."
    message:"Invalid params."
  • DmitryL
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2016
    • 278

    #2
    Hello hiad,

    Please show us your API call code.

    Comment

    • hiad
      Junior Member
      • Aug 2016
      • 22

      #3
      Hello Guys,

      It's angular :

      updatePrototype: function (id, expression, description) {
      return $http.post(GlobalVars.api_url(), {
      jsonrpc: "2.0",
      id: $rootScope.auth_id,
      auth: $rootScope.auth,
      method: 'triggerprototype.update',
      params: {
      triggerid: id,
      expression: expression,
      description: description
      }

      });
      }



      Error:

      Incorrect item key "if.speed["-d","ip","-c","reallinx","-s","{#SNMPINDEX}"]" provided for trigger expression on "host".


      About this error , i want to add that if i didn't change the expression. It always will show me the error. The description is updating correctly.

      Comment

      Working...