Ad Widget

Collapse

bulkloader broken in beta7

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • haxor
    Junior Member
    • Jul 2005
    • 11

    #1

    bulkloader broken in beta7

    When I try to use the bulkloader in beta 7 I get a warning, then it adds my first host, then I get an error and it stops. No more hosts are added.

    Here is the warning:
    Warning: Invalid argument supplied for foreach() in /var/www/localhost/htdocs/zabbix/include/hosts.inc.php on line 85

    Here is the error:
    Fatal Error: Call to undefined function: add_template_linkage() in /var/www/localhost/htdocs/zabbix/bulkloader.php on line 114

    I grepped in the php and there is no function add_template_linkage(). Did someone forget to write it or include it with the distribution?
  • crs9
    Member
    • Feb 2006
    • 35

    #2
    I had the same problem with bulkloader in beta7, but I dont recall getting that error. Bulkloader would just load my first host.

    Comment

    • krusty
      Senior Member
      • Oct 2005
      • 222

      #3
      me too.

      The first host will be added and then the scripts die with the error


      Fatal error: Call to undefined function: add_template_linkage() in /srv/www/htdocs/zabbix/bulkloader.php on line 114



      I think i know why the error on line 114 calls. If i do fgrep over the frontend directory (fgrep -R add_template_linkage) i only get the line
      bulkloader.php: add_template_linkage($tmpHostID,$hostTemplate,7,7, 7,7,7);.
      The function add_template_linkage isn“t implemeted in zabbix version 1.1beta7.

      Isn't it?

      Okay, I found it. Into the config file /include/config.inc.php is the mistake, i think. Because, if i checked the the config file from version beta6 and there i found the entry about add_template_linkage. So i think the developer have lost this entry. Only suppositon.

      It looks like the developer have change some files and copy for example the function sync_host_with_template from the config.inc.php file to the host.inc.php file. Unfortunately they have lost the add_template_linkage.
      Last edited by krusty; 17-03-2006, 11:48.

      Comment

      • ghislain
        Senior Member
        • Jun 2005
        • 160

        #4
        i encounter the very same issue, bulkloader only load the first item and fails without errors. I was not able to debug the issue. The foreach seems to simply stop after the first host.

        regards,
        Ghislain.
        Regards,
        Ghislain.

        Comment

        Working...