Ad Widget

Collapse

Creating events via API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Alex Ryabov
    Junior Member
    • Jul 2011
    • 1

    #1

    Creating events via API

    I'm trying to create new event posting this JSON to zabbix API:

    Code:
    { "jsonrpc":"2.0",
      "method":"event.create",
      "params":[{
    	  "source":0,
    	  "object":10065,
    	  "objectid":13626
      }],
      "auth":"###",
      "id":2
    }
    Response is:

    Code:
    {"jsonrpc":"2.0","error":{"code":-32602,"message":"Invalid params.","data":"[ CTrigger::update ] Trigger [Low free disk space on {HOSTNAME} volume \/var ]: cannot update"},"id":2}
    What am I doing wrong?
  • zalex_ua
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2009
    • 1286

    #2
    This method is not described. It seems it not available.

    Comment

    • Jarne St
      Member
      • Sep 2019
      • 63

      #3
      This method does not exist.

      But you can update a trigger with the method trigger.update: https://www.zabbix.com/documentation...trigger/updateand. To set a trigger in the Problem state, and than that creates an event.

      Comment

      Working...