Ad Widget

Collapse

I want to create an action with zabbix api in java , but I got an error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • java_noob
    Junior Member
    • Jul 2019
    • 2

    #1

    I want to create an action with zabbix api in java , but I got an error

    like this "{"code":-32602,"data":"Incorrect parameter for action \\"actionName\\".","message":"Invalid params."}"
    I have checked my params many times but I can't find where the wrong is...there are my params
    {
    "def_longdata ": "{TRIGGER.NAME}: {TRIGGER.STATUS}\r\nLast value: {ITEM.LASTVALUE}\r\n\r\n{TRIGGER.URL}",
    "def_shortdata ": "{TRIGGER.NAME}: {TRIGGER.STATUS}",
    "esc_period ": 0,
    "eventsource ": 0,
    "filter": {
    "conditions": [{
    "conditiontype": 1,
    "operator": 0,
    "value": "10434"
    }],
    "evaltype": 0
    },
    "name": "actionName",
    "operations": [{
    "esc_period": 120,
    "esc_step_from": 1,
    "esc_step_to": 1,
    "evaltype": 0,
    "operationtype": 0,
    "opmessage": {
    "default_msg": 1,
    "mediatypeid": "1"
    },
    "opmessage_grp": [{
    "usrgrpid ": "7"
    }]
    }],
    "status ": 0
    }
    There is a great need for help. Thanks in advance!
Working...