I am creating hosts from an external API script:
This will work in all scenarios except for a given hostgroup. When trying to create a host with host group "*TXR" I get an error: "-32500: Application error.: [ CHost::create ] No permissions !"
This same logic works for 100s of other hosts on multiple other host groups. If I manually add the device on the zabbix side, it will run an update to that device through the api call. My issue is specifically creating a host.
What are the possible reasons I would see this error? Then from there I can troubleshoot the various scenarios.
Thanks for your help in advance!
Josh
Code:
ZabbixAPI::fetch('host','create',
array('host'=><[I]hostname[/I]>,
'useip'=>1,
'status'=>0,
'templates' => array('templateid' => <[I]templateid[/I]>),
'ip'=><[I]ipaddress[/I]>,
'groups'=><[I]groupid array[/I]>,
'proxy_hostid'=><[I]proxy[/I]>,
'port' => <[I]port[/I]>));
This same logic works for 100s of other hosts on multiple other host groups. If I manually add the device on the zabbix side, it will run an update to that device through the api call. My issue is specifically creating a host.
What are the possible reasons I would see this error? Then from there I can troubleshoot the various scenarios.
Thanks for your help in advance!
Josh