Ad Widget

Collapse

zabbix action create error: Invalid params., Field "eventsource" is mandatory.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dheerajr
    Junior Member
    • Jan 2021
    • 3

    #1

    zabbix action create error: Invalid params., Field "eventsource" is mandatory.

    I am trying to create action in python from zabbixAPI
    action = zapi.action.create({
    'name': 'ssh down trigger',
    'eventsource': 0,
    'esc_period': '60s',
    'operations' : {
    'operationtype': 1,
    'opconditions': [{
    'conditiontype': 2,
    'operator': 0,
    'value': 17107
    }],
    "opcommand_grp": [
    {"groupid": "2"}
    ],
    'opcommand': {
    'type':0,
    'execute_on': 2,
    'command': 'pwd'
    }
    }
    })
    but it throws eventsource field is required. but it's already specified as parameter.
    Ref: https://://www.zabbix.com/documentat...ression_filter

    Help!
Working...