Ad Widget

Collapse

Zabbix API host.create (groupid) issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tillz1505
    Junior Member
    • Oct 2013
    • 2

    #1

    Zabbix API host.create (groupid) issue

    Hi guys, I am having a small problem with the Zabbix API, I have looked around but I can't find a direct answer to my exact problem

    When trying to create a host (with host.create), it appears I cannot have 'null' groupid's but I can have 'null' templateid's

    e.g

    Code:
         
     "groups":{
             "1":{
                "groupid":"10"
             },
             "2":{
                "groupid":null
             },
             "3":{
                "groupid":"20"
             }
          },
          "templates":{
             "1":{
                "templateid":"1044"
             },
             "2":{
                "templateid":null
             },
             "3":{
                "templateid":null
             }
          }
    When I have null groupid's, I get this error:

    Code:
    Application error.","data":"No permissions to referred object or it does not exist!"
    Does all this happen because groups are required when creating a host?
    Is there anyway around this or any other alternative?

    P.S I don't know if this is a bug or not

    Any help would be greatly appreciated.

    Thanks
  • tillz1505
    Junior Member
    • Oct 2013
    • 2

    #2
    anyone at all?

    Comment

    Working...