Ad Widget

Collapse

Replacing Failed Server Nodes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chubz
    Junior Member
    • Jul 2012
    • 11

    #1

    Replacing Failed Server Nodes

    Hello,

    I was wondering how I could replace a failed server node (a MongoDB node specifically) while maintaining the host inventory(template and macros). For example, I have a MongoDB replica set(a set of server nodes that have replicated data for back ups where there is a primary node and a few secondary nodes), and I am monitoring its primary node. And if the primary node goes down, one of the secondary nodes will automatically become the primary node. Each of these nodes are on different ports. And I have zabbix set on monitoring the primary node (port 27020). But when that primary goes down and another primary is selected, zabbix is still monitoring port 27020. But the new primary is using the port 27021. Is there a way I can make zabbix alter the host configuration to change the port to 27021? Or is there a script or action I can use that will automatically add the new host with the port 27021 and link a template and add macros to the host?

    Thanks,
    Andrew
Working...