Ad Widget

Collapse

Zabbix 4.0.19 API method task.create doesn't work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • v.jekimov
    Junior Member
    • May 2018
    • 3

    #1

    Zabbix 4.0.19 API method task.create doesn't work

    Hi. When I send request like

    {
    "jsonrpc": "2.0",
    "method": "task.create",
    "params": {
    "type": "6",
    "itemids": "28798"
    },
    "auth": "f12140b2fca7b3621d8ec4cb87bb1d21",
    "id": 1
    }

    I received back answer with message "Your browser sent a request that this server could not understand."

    What I did wrong? Request have mistakes? Or it's another zabbix bug?
    Any suggestions?
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    What is itemid 28798? What type of item is it?

    Comment

    • v.jekimov
      Junior Member
      • May 2018
      • 3

      #3
      Originally posted by tim.mooney
      What is itemid 28798? What type of item is it?
      Type is Zabbix agent. But I also tried different type, the result was the same.

      Comment

      • v.jekimov
        Junior Member
        • May 2018
        • 3

        #4
        It was not my day. My curl request had a stupid mistake. Everything works. Thanks.

        Comment

        • tim.mooney
          Senior Member
          • Dec 2012
          • 1427

          #5
          Just for my reference and for the possible help of others that might run into a similar issue, can you give a little information on what you were doing wrong with curl?

          Comment

          Working...