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!
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!