Ad Widget

Collapse

Futher problems with distributed monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #16
    Originally posted by vasiliy
    Hi, whats the status ? I see 1.4.2 released, hwoever, I am not able to get things working!!! Extremely frustrating.

    I see history and events being passed around... however, no configuration changes!

    same problem I saw with 1.4.1...
    The release has been carefully tested, especially everything related to distributed monitoring. I do not believe the configuration exchange does not work...
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • vasiliy
      Member
      • Jul 2007
      • 47

      #17
      Originally posted by Alexei
      The release has been carefully tested, especially everything related to distributed monitoring. I do not believe the configuration exchange does not work...
      Alexej, what am I missing?

      You still want us to do the following:

      These are the steps I followed:

      On CentralNode.
      1.) drop the database, recreate a new db, and reimport your initial database files (is this sufficient for reinstall? should i do anything else?)
      2.) vi /etc/zabbix/zabbix_server.conf... The node_id is already set to 1.
      3.) ./zabbix_server -n 1 -c /etc/zabbix/zabbix_server.conf
      this script reported that tables have been converted.
      4.) navigate to http://zabbix1/zabbix/, login as admin, now i see a nodes tab.
      5.) click on the current node that i see, change its name to CentralNode, and change its IP from 127.0.0.1 to 10.0.0.0.4
      6.) click add new node, remote, call it Child.1, put in the ip address... done.

      What I see at the end:
      1 /CentralNode Local GMT-04:00 10.0.0.4:10051
      2 /CentralNode/Child.1 Remote GMT-04:00 10.0.0.5:10051

      7.) havent started the service yet.

      On Child.1.
      1.) drop the db, recreate, yada yada
      2.) make sure /etc/zabbix/zabbix_server.conf's Node_id is =2
      3.) ./zabbix_server -n 1 -c /etc/zabbix/zabbix_server.conf
      4.) navigate to http://zabbix2/zabbix/, login as admin, click Nodes.
      5.) Here I change the name of the current node I see from localnode to Child.1, change ip from 127.0.0.1 to 10.0.0.5.... Add a master node....
      After doing this.... I see this as 1 line...
      2 /CentralNode/Child.1 Local GMT-04:00 10.0.0.5:10051

      should I see anything else?

      now, i fire up the services on both machines....

      When I make configuration changes, or add hosts vi the web interface on CentralNode, the child does not receive them.

      THANKS

      Comment

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

        #18
        Originally posted by vasiliy
        5.) Here I change the name of the current node I see from localnode to Child.1, change ip from 127.0.0.1 to 10.0.0.5.... Add a master node....
        After doing this.... I see this as 1 line...
        2 /CentralNode/Child.1 Local GMT-04:00 10.0.0.5:10051

        should I see anything else?
        Each node must contain information about itself and all child and master node. You should have at least two nodes defined there.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • vasiliy
          Member
          • Jul 2007
          • 47

          #19
          Originally posted by Alexei
          Each node must contain information about itself and all child and master node. You should have at least two nodes defined there.
          I did that....

          Its certainly not letting me create master...

          I will restart for the 100th time

          Comment

          • vasiliy
            Member
            • Jul 2007
            • 47

            #20
            Alexej, I was correct...

            Here are my screen shots:

            On central Node:



            On child node:

            Comment

            • vasiliy
              Member
              • Jul 2007
              • 47

              #21
              As you can see, after adding a master node to the child... it only displays node 2(itself) underneath the master.

              Is this correct? Am I following things properly?

              Comment

              • knarfling
                Member
                • Sep 2006
                • 47

                #22
                Forgive me if I am wrong, because I have not set up DM myself.

                I am in the process of setting it up now that 1.4.2 is officially released. However, I noticed a difference between your procedure and the manual.

                On your Central Node you start up with
                Code:
                3.) ./zabbix_server -n 1 -c /etc/zabbix/zabbix_server.conf
                On the Child Node you start up using the same node number as the Central Node.
                Code:
                3.) ./zabbix_server -n 1 -c /etc/zabbix/zabbix_server.conf
                The manual says it should be started with
                Code:
                 ./zabbix_server -n 2 -c /etc/zabbix/zabbix_server.conf
                Is that just a typo on the forum, or is the manual incorrect?

                What confuses me is that in section 12.3.2 of the manual the child should be started with a -n <node_id>, but in section 12.5 it says a child can be started with a simple ./zabbix_server with no node id specified.

                Alexei can you tell us if the -n <node_id> is required when starting a child node? or is it only required the first time a child node is started but can be left off at any other time?

                Thanx.

                Comment

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

                  #23
                  The -n option is not for server startup! It has to be executed only once (!) after the database is created and default data (data.sql and images) is loaded.
                  Alexei Vladishev
                  Creator of Zabbix, Product manager
                  New York | Tokyo | Riga
                  My Twitter

                  Comment

                  • vasiliy
                    Member
                    • Jul 2007
                    • 47

                    #24
                    Originally posted by Alexei
                    The -n option is not for server startup! It has to be executed only once (!) after the database is created and default data (data.sql and images) is loaded.
                    that is correct, it was a typo on the forum.

                    so whats the suggestion? am I missing something?

                    Comment

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

                      #25
                      Originally posted by vasiliy
                      that is correct, it was a typo on the forum.

                      so whats the suggestion? am I missing something?
                      Yes, the master node details must present in configuration of the child node. I am not quite sure why you cannot add it...
                      Alexei Vladishev
                      Creator of Zabbix, Product manager
                      New York | Tokyo | Riga
                      My Twitter

                      Comment

                      • vasiliy
                        Member
                        • Jul 2007
                        • 47

                        #26
                        Originally posted by Alexei
                        Yes, the master node details must present in configuration of the child node. I am not quite sure why you cannot add it...
                        Alexej, i have added it. When I try adding it again, it says that master node exists.

                        please help!

                        I follow your directions to the T.

                        when I add a new master node to the child, it replaces the local node layout... like so:

                        LocalNode gets replaced with Masternode/Localnode

                        what am i missing!

                        Comment

                        • Wido
                          Junior Member
                          • Mar 2006
                          • 23

                          #27
                          Hi,

                          I just upgraded to 1.4.2 and DM is still not working.

                          Even when i do a tcpdump on my slave, i don't see any connections coming from the master.

                          Is there a howto online for DM? I got all my information from this forum, but maybe i am making a mistake?

                          Comment

                          • vasiliy
                            Member
                            • Jul 2007
                            • 47

                            #28
                            Wido, I am having the same issue...

                            I really do not know what we are doing wrong!

                            Comment

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

                              #29
                              Originally posted by vasiliy
                              Alexej, I was correct...

                              Here are my screen shots:

                              On central Node:



                              On child node:

                              In your case, the child node must have exaclty the same configuration as the master node. Two nodes were successfully created for Node 1, so you may repeat exactly the same steps to create the two nodes for Node 2.

                              I have a test system which is configured in exactly the same way and its nodes operate absolutely fine.
                              Alexei Vladishev
                              Creator of Zabbix, Product manager
                              New York | Tokyo | Riga
                              My Twitter

                              Comment

                              • NOB
                                Senior Member
                                Zabbix Certified Specialist
                                • Mar 2007
                                • 469

                                #30
                                Originally posted by Alexei
                                The -n option is not for server startup! It has to be executed only once (!) after the database is created and default data (data.sql and images) is loaded.
                                I did a mistake by importing data first into the DB (zabbix_server was not running) and then configuring the node id.

                                The zabbix_server tries to converts the data, but it doesn't do it
                                completely.

                                Code:
                                 41653:20070823:163058 No function for functionid:[1000000000011999]
                                 41653:20070823:163058 Expression   {500000000011999}>0&{1000000000011999}=0] cannot be evaluated [Unable to get value for functionid [1000000000011999]]
                                So the statement of Alexei quoted above is completely valid.
                                Everything else is "walking on thin ice".
                                It might work, e.g., depending on your triggers defined.

                                I leave the decision to Alexei whether this need to be fixed or not.

                                I did learn from this experience and it was easy to fix, anyway.

                                Details:
                                Export was done on 1.3.8, import on 1.4.2
                                I did change the nodeid on the 1.3.8 server from 0 to 1 - and because
                                of a bug in the Postgresql schema - back to 0.
                                So this problem might be fixed in the current release or even introduced
                                by the 1.3.8 beta. I don't know.

                                Regards,

                                Norbert.
                                Last edited by NOB; 24-08-2007, 09:26. Reason: Added more details on versions / actions done

                                Comment

                                Working...