Ad Widget

Collapse

beta8 - Bulkloader still broken

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • krusty
    Senior Member
    • Oct 2005
    • 222

    #1

    beta8 - Bulkloader still broken

    Hi,

    i have upgraded the zabbix version from beta7 to beta8. I found out, that the bulkloader still broken. Maybe this bug was not fixed in beta8?

    For your information i got the following error message:

    Code:
    Warning: Invalid argument supplied for foreach() in /srv/www/htdocs/include/hosts.inc.php on line 85
    
    Fatal error: Call to undefined function: add_template_linkage() in /srv/www/htdocs/bulkloader.php on line 114
    I think that this is the same problem i have posted on this thread:
    ZABBIX Link
  • krusty
    Senior Member
    • Oct 2005
    • 222

    #2
    Hi Alexei,

    i have changed in host.inc.php config file the function update_host_groups to this:
    Code:
            function        update_host_groups($hostid,$groups)
            {
                    DBexecute("delete from hosts_groups where hostid=$hostid");
                    add_host_to_group($hostid, $groups);
            }
    Your function looks like this:
    Code:
            function        update_host_groups($hostid,$groups=array())
            {
                    DBexecute("delete from hosts_groups where hostid=$hostid");
    
                    foreach($groups as $groupid)
                    {
                            add_host_to_group($hostid, $groupid);
                    }
            }
    I think the problem with the bulkloader is located at the point of the Array in the function update_host_groups. I will check why the array wasn't created in this funciton. Maybe you can fix the problem faster than me.

    Comment

    • krusty
      Senior Member
      • Oct 2005
      • 222

      #3
      have anyone the same problem with bulkloader?

      @developers, could you please make note from this problem. Thanks.

      Comment

      • krusty
        Senior Member
        • Oct 2005
        • 222

        #4
        Same problem in version 1.1beat9

        Hi,

        i have tested this function in 1.1beta9 and i have still the same problem . I got the following message

        Warning: Invalid argument supplied for foreach() in /srv/www/htdocs/include/hosts.inc.php on line 85

        Please can somebody tell me how to fix this problem. I need this really urgently!

        Thanks

        Comment

        • Alexei
          Founder, CEO
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Sep 2004
          • 5654

          #5
          Please post extract of input file which causes this problem. We did additional internal testing of 1.1beta9 and everything seems to be working fine.
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          • krusty
            Senior Member
            • Oct 2005
            • 222

            #6
            Hi Alexei,

            the input file looks like this

            HOST,<Hostname>,<Host IP>,161,Monitored,Host.Router.ADSL,,Router

            The host will be created but there is no mapping to the group Router. This group still exists. Perhaps this error becomes because i have upgrade the zabbix server from 1.1beta6 to 1.1beta9??? I use the new (1.1beta9) php scripts.

            Any idea?

            By the way, which function is used to create a new host. I have searched the php scripts and found only the function add_host. If i create one own php script with these function i also get this problem.

            Comment

            • krusty
              Senior Member
              • Oct 2005
              • 222

              #7
              Hi Alexei,

              i have still fix my problem. The bulkloader seems to work fine.

              Comment

              • Alexei
                Founder, CEO
                Zabbix Certified Trainer
                Zabbix Certified SpecialistZabbix Certified Professional
                • Sep 2004
                • 5654

                #8
                Good news!
                Alexei Vladishev
                Creator of Zabbix, Product manager
                New York | Tokyo | Riga
                My Twitter

                Comment

                Working...