Primary and Failover both are active

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Primary and Failover both are active

Post by rtsupport »

Current version : Nagios XI 2014R2.7
OS : Unix

Currently we are facing issue where our PRD and DR both server are in active state. however if PRD server is in active state then on DR server (Active server/Active services and Notification) should be in disable state. which are showing in active status now.

Due to this both PRD and DR servers are sending alerts and customer are receiving same alert twice.

NOTABLE : Earlier if DR was in active state then the URL in alert was mentioned for DR, (to ack or disable the alert) but now alert from DR server also mentioned same as PRD alert.

Steps done -
> Recently we have manually syncd DR with PRD- (using below steps)
________________________________________________________________________
1) Log into the primary Nagios XI system
2) cd /usr/local/nagiosxi/scripts
3) sudo ./backup_xi.sh
4) Copy the file the backup script created to /tmp (I'll refer to it as <BACKUP_SCRIPT> and it will have a name like 134544321.tgz)
5) scp the backup script to the Nagios XI Failover system to /tmp
6) Log into the Secondary Nagios XI system
7) cd /usr/local/nagiosxi/scripts
8) sudo ./restore_xi.sh /tmp/<BACKUP SCRIPT>
_______________________________________________________________________
>Full Nagios Restarted PRD/DR
>Repair DB
>reconfigure DR

Please advise what else we can check and do to resolve the issue.
Last edited by rtsupport on Tue Jan 23, 2018 5:39 am, edited 1 time in total.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Primary and Failover bot are active

Post by tgriep »

When you restore XI to the Backup server, it will overwrite the Program URL: and the External URL: from the Primary server so to fix this, after to restore to the backup server, login to the Admin > System Settings menu and update both or the URL's.

Then if the notifications do get enabled, is will show the correct server.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Primary and Failover bot are active

Post by cdienger »

What is in place to control failover? Did you following anything(https://assets.nagios.com/downloads/nag ... ios-XI.pdf or https://www.linbit.com/en/576-ha-nagios ... -on-rhel7/ for example) to setup failover or is this a new setup?

As an immediate fix you can disable the DR nagios server by running service nagios stop if you haven't already.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: Primary and Failover bot are active

Post by rtsupport »

Team,

thank you for your response, and just to let you know our issue has been resolved.

upon checking we found that when we restating full Nagios it is returning to previous state. so we disable the Active host, Active service, Notification and after that when we did full restart it back to state where these there services are in stop.

@ tgrip

As per your suggestion i checked "system setting " and found that URL has been replaced by PRD URL. and i am assuming that these is the reason for when DR is sending alert its having PRD URL in the end of the alert to respond to the user. we need to check this by replacing with DR URL if that fix this as well.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Primary and Failover bot are active

Post by lmiltchev »

@rtsupport Is it safe to close this topic and mark it as "resolved"?
Be sure to check out our Knowledgebase for helpful articles and solutions!
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: Primary and Failover bot are active

Post by rtsupport »

Yes, Please you may close the topic. Thank you!
Locked