Ad Widget

Collapse

How to break the distributed architecture model safely?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gaurav
    Junior Member
    • Mar 2010
    • 13

    #1

    How to break the distributed architecture model safely?

    Hi

    I have setup zabbix 1.6.8 in distributed monitoring in 7 nodes. Now I want to change the architecture and make them all standalone only.
    How to do this safely to ensure that no data/configuration is lost or gets corrupted?
    Please help asap.

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

    #2
    you could just remove master nodes from the configuration, but that would still leave them all in "distributed" mode. there is no supported way to go from distributed to standalone setup.
    Zabbix 3.0 Network Monitoring book

    Comment

    • Gaurav
      Junior Member
      • Mar 2010
      • 13

      #3
      So as per my understanding I have to do the following steps:

      1. Stop zabbix process on Master and Child zabbix nodes.

      2. At Master Node: Under "Authentication" -> "Nodes" -> Delete the child nodes that I dont want in distributed model.

      3. At Master Node: In zabbix_server.conf, "#" the "Node ID" entry.

      4. At Child Node: Under "Authentication" -> "Nodes" -> Delete the Master node.

      5. At Child Node: In zabbix_server.conf, "#" the "Node ID" entry.

      Is this procedure right? If not then please update the correct procedure.

      Comment

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

        #4
        pretty much yes, but do not modify node id in server configuration file - you have to leave it as is.

        note that zabbix will operate in a semi-distributed mode - it will still act as in one, even though no other nodes are attached to it. also, any child node data will remain in the master node database.
        Zabbix 3.0 Network Monitoring book

        Comment

        • Gaurav
          Junior Member
          • Mar 2010
          • 13

          #5
          Thanks a lot Sir... Good Day

          Comment

          • welkin
            Senior Member
            • Mar 2007
            • 132

            #6
            I tried similar steps as mentioned above:

            - removed the child node from the master configuration
            - removed the master node from the child configuration


            but in addition to that i also did : zabbix_server -n 0 on the child node.
            Now this is, where it gone horrible wrong i think. I`m not able to logon to the child node anymore. The only error message i can see is : "Unable to select configuration". This message appears twice.

            Can i somehow debug whats going on?

            I should have consulted the forum before trying it myself..... but at least is`s "just" a child node which wasn`t that important.

            any help is appreciated

            regards
            welkin

            Comment

            • sarathyme
              Member
              • Mar 2009
              • 58

              #7
              zabbix_server -n nodeid

              we should run the above command only once, first time we setup the nodes.

              There is a warning message about this in manual,
              http://www.zabbix.com/documentation/.../configuration


              I think this command converts the ids (like hostid, itemid etc) to a format matching the node number like (e.g. 100100001)

              Regards
              Vijay

              Comment

              • welkin
                Senior Member
                • Mar 2007
                • 132

                #8
                there`s no way of really reverting back to single node setup? I`ve deleted the master from the slave configuration and the slaves from the master configuration, but i can still see that a slave i trying to send data to a master.

                regards
                welkin

                Comment

                Working...