Ad Widget

Collapse

Zabbix 1.8 import template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sersad
    Senior Member
    • May 2009
    • 518

    #1

    Zabbix 1.8 import template

    Don't work import temlate
    Fatal error: Call to undefined method CTemplate::add() in /home/zabbix/public_html/include/export.inc.php on line 585
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    https://support.zabbix.com/browse/ZBX-1459
    Zabbix 3.0 Network Monitoring book

    Comment

    • sersad
      Senior Member
      • May 2009
      • 518

      #3
      include/export.inc.php
      585 line
      $current_host = CTemplate::Add($host_db);

      function in class.ctemplate.php named create

      correct line
      $current_host = CTemplate::create($host_db);

      Comment

      • sersad
        Senior Member
        • May 2009
        • 518

        #4
        and this import eror
        Warning: Invalid argument supplied for foreach() in /home/zabbix/public_html17/include/triggers.inc.php on line 1907

        Comment

        • surlyjake
          Junior Member
          • Jul 2007
          • 28

          #5
          sersad, thanks. This resolved the issue for me

          Comment

          • jansonz
            Member
            • Dec 2006
            • 53

            #6
            Yes, this solved the problem for me too.

            Comment

            • Gerry.Vaz
              Junior Member
              • Nov 2007
              • 3

              #7
              Missing Add function

              The suggestion to change "add" to "create" at line 585 worked fine.

              Thanks a million.

              Comment

              • oneye
                Junior Member
                • May 2008
                • 27

                #8
                I still have this problem:
                Warning: Invalid argument supplied for foreach() in /var/www/zabbix-1.8/include/triggers.inc.php on line 1907

                Please help me out here...

                thnx

                Comment

                • sersad
                  Senior Member
                  • May 2009
                  • 518

                  #9
                  In last trunk import work fine

                  Comment

                  • williamsmith
                    Junior Member
                    • May 2010
                    • 1

                    #10
                    Its really Amazing...
                    The post is sounds good to me a lot.

                    Comment

                    Working...