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
When I have null groupid's, I get this error:
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
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
}
}
Code:
Application error.","data":"No permissions to referred object or it does not exist!"
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
Comment