Ad Widget

Collapse

Host Create Application Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jrichard
    Junior Member
    • Mar 2012
    • 3

    #1

    Host Create Application Error

    I am creating hosts from an external API script:

    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 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
    Last edited by jrichard; 13-04-2012, 17:46.
Working...