Ad Widget

Collapse

Zabbix 1.8.1 Host creation error !!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pierre-hoffmann
    Senior Member
    • Jan 2008
    • 133

    #1

    Zabbix 1.8.1 Host creation error !!!

    Hi,

    I've a big probleme:

    i've make upgrade to 1.8.1; it work fine;

    but when i want to add some host; template won't apply and i've this error:

    Code:
    [COLOR="red"][B]* Undefined variable: db_dephost[/srv/www/htdocs/zabbix/api/classes/class.ctemplate.php:1325]
    * Trigger in template [ 10136 ] has dependency with trigger in template [ ][/B][/COLOR]
    Regards,
    Last edited by pierre-hoffmann; 28-01-2010, 17:04.
    P.Hoffmann
    System & Network Admin.
    __________________________
    Zabbix version 1.8.1
    Hosts monitored 1300
    OS Novell SLES 10 SP2
    __________________________
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    please report this on the tracker. also add detailed description of template, trigger and trigger dependency conditions
    Zabbix 3.0 Network Monitoring book

    Comment

    • pierre-hoffmann
      Senior Member
      • Jan 2008
      • 133

      #3
      Hi,

      i've find this bug on svn.zabbix.com:



      i think it's the same; what can i do ?

      (my template for each host type (aix,linux, windows) depend from another contain simple ping)

      Do you think a patch is possible before 1.8.2; or i should return in 1.8.0 (if it's possible) ??

      Regards,
      P.Hoffmann
      System & Network Admin.
      __________________________
      Zabbix version 1.8.1
      Hosts monitored 1300
      OS Novell SLES 10 SP2
      __________________________

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        that's only about dependency reference, not about any errors
        Zabbix 3.0 Network Monitoring book

        Comment

        • ewnort
          Junior Member
          • Jan 2010
          • 6

          #5
          Dependency Errors

          I've got the same error when trying to link a pre-configured template. I've seen this problem reported earlier in the forum. It appears to have started with 1.8 (as far as I can tell).

          Any thoughts on a workaround/fix?

          Comment

          • pierre-hoffmann
            Senior Member
            • Jan 2008
            • 133

            #6
            Hi,

            Originally posted by richlv
            that's only about dependency reference, not about any errors
            Ok i've create it; it hope i've make no mistake.



            (i think it's a problem with php Zabbix API )

            Thanks,

            Regards,
            P.Hoffmann
            System & Network Admin.
            __________________________
            Zabbix version 1.8.1
            Hosts monitored 1300
            OS Novell SLES 10 SP2
            __________________________

            Comment

            • pierre-hoffmann
              Senior Member
              • Jan 2008
              • 133

              #7
              Hi,

              I've seen "ZBX-1853 : Status Resolved [ 5 ]"
              do you think it's possible to make a little patch for 1.8.1; for waiting 1.8.2 ?

              Regards,
              P.Hoffmann
              System & Network Admin.
              __________________________
              Zabbix version 1.8.1
              Hosts monitored 1300
              OS Novell SLES 10 SP2
              __________________________

              Comment

              • richlv
                Senior Member
                Zabbix Certified Trainer
                Zabbix Certified SpecialistZabbix Certified Professional
                • Oct 2005
                • 3112

                #8
                i don't see such a status change on that specific issue...
                Zabbix 3.0 Network Monitoring book

                Comment

                • billjam
                  Junior Member
                  • Jan 2009
                  • 27

                  #9
                  patch available?

                  any news on if a patch is going to be available before 1.8.2 or
                  can you post a hack we can do so we can add hosts again?
                  Unfortunately we built a number of our templates by cloning so we can't add hosts anymore. :-(

                  Comment

                  • richlv
                    Senior Member
                    Zabbix Certified Trainer
                    Zabbix Certified SpecialistZabbix Certified Professional
                    • Oct 2005
                    • 3112

                    #10
                    you can create a patch from svn diff, or use svn head of the frontend
                    Zabbix 3.0 Network Monitoring book

                    Comment

                    • arli
                      Member
                      • Jan 2008
                      • 71

                      #11
                      richlv, I saw you said in svn, that everything seems fine in dev branch rev 9880.
                      I tried to update host using rev 9987 gui and only difference to stable 1.8.1 is, that I get a pretty error message now.
                      Still can't link template with dependencies though. Did the linking worked for you, or does it mean, that such linking is deprecated from now on?

                      Comment

                      • richlv
                        Senior Member
                        Zabbix Certified Trainer
                        Zabbix Certified SpecialistZabbix Certified Professional
                        • Oct 2005
                        • 3112

                        #12
                        what is the exact dependency and what are you trying to link ?
                        if a templated trigger depends on another templated trigger from a different template, both templates must be linked, otherwise you get the error message
                        Zabbix 3.0 Network Monitoring book

                        Comment

                        • arli
                          Member
                          • Jan 2008
                          • 71

                          #13
                          Ok, I see what you mean now and this don't look good.

                          I have a template Server_With_Agent with icmpping trigger and template Check_port_5555 with tcp,5555 trigger and so on.
                          And port 5555 trigger depends on Server_With_Agent:icmpping trigger.

                          I have a lot of templates and most of the triggers in them depend on one templated trigger that is cheking if host is alive. So until today I just linked the Server_With_Agent template and only the templates nessesary for specific server.
                          This is because I have too many different servers to apply some general templates to them.

                          Comment

                          • richlv
                            Senior Member
                            Zabbix Certified Trainer
                            Zabbix Certified SpecialistZabbix Certified Professional
                            • Oct 2005
                            • 3112

                            #14
                            as long as you link the template that contains triggers all other depend on, it should work fine (in trunk)
                            Zabbix 3.0 Network Monitoring book

                            Comment

                            • arli
                              Member
                              • Jan 2008
                              • 71

                              #15
                              I'm afraid not - at the moment, if I want to use template that contains triggers all others depend on, I have to link all the templates that contain dependent triggers, whitch really doesn't make sense.

                              Let's say I have templates A, B and C each with only one trigger and triggers of B and C depend on trigger of A.
                              So if I want to link only template A, it cannot be done, cause gui says:
                              Trigger in template [ A ] has dependency with trigger in template [ B ]
                              Trigger in template [ A ] has dependency with trigger in template [ C ]

                              But trigger in template A doesn't depend on triggers in templates B and C.

                              Comment

                              Working...