Ad Widget

Collapse

Action Api is not invoking

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Danish Iqbal
    Junior Member
    • Jun 2017
    • 1

    #1

    Action Api is not invoking

    I created action by api .It's not invoking when service goes down If I update that action manually then it's invoking fine.Can any one tell me what i can do to avoid manually update action.Plz help me.
    my action api is here:


    {
    "jsonrpc": "2.0",
    "method": "action.create",
    "params": {
    "name": "Test Rest 7",
    "eventsource": 0,
    "status": 0,
    "esc_period": 60,
    "maintenance_mode":0,
    "def_shortdata": "{TRIGGER.NAME}: {TRIGGER.STATUS}",
    "def_longdata": "{TRIGGER.NAME}: {TRIGGER.STATUS}\r\nLast value: {ITEM.LASTVALUE}\r\n\r\n{TRIGGER.URL}",
    "filter": {
    "evaltype": 0,
    "conditions": [
    {
    "conditiontype": 2,
    "operator": 0,
    "value": "13582"
    }
    ]
    },
    "operations": [
    {
    "operationtype": 1,
    "esc_step_from": 1,
    "esc_step_to": 1,
    "evaltype": 0,
    "objectid":1,"object":0,
    "optemplate": [
    {
    "templateid": "10094",
    "operationtype": 6,
    "esc_step_to": 1
    }
    ],



    "opconditions": [
    {
    "operator": 0,
    "value": "0"
    }
    ],
    "opcommand_hst": [
    {
    "hostid": "10105"
    }
    ],


    "opcommand": {
    "type": "0",
    "execute_on": "1",
    "scriptid": "0",
    "command": "/usr/lib/zabbix/alertscripts/alert.sh \"{TRIGGER.NAME}: {TRIGGER.STATUS}\",HostName:\"{HOST.NAME}\",HostIP :\"{HOST.IP}\",\"{TRIGGER.STATUS} {TRIGGER.STATE} {TRIGGER.STATUS}\""
    }


    }
    ]
    },
    "auth": "e3970bb4bb91c8a70e68ba9409891b4e",
    "id": 1
    }
Working...