NagiosXi replication and Alerting

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Johnsmit
Posts: 95
Joined: Thu Apr 19, 2018 2:03 pm

NagiosXi replication and Alerting

Post by Johnsmit »

Hi,
i have 2 questions.
1. I have NagiosXI running in 2 RHEL 7.3 servers. i have setup replication between both the servers. when a host/service goes down, i am getting alerted from both the servers. so is there any way or solution to stop getting alerted from 2 servers and receive alerts from only one server based on our priority server.

2. when the servers are in replication, the 2nd server host name is replaced by the 1st server host name in the admin tab in Nagios GUI and not able to recognize its alerting from 1st server or 2nd server. Is there any way to work this around?

Thanks,
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: NagiosXi replication and Alerting

Post by npolovenko »

Hello, @Johnsmit. You can disable notifications globally on the second server by executing this script:
disable_notifications.sh
#!/bin/sh
# This is a sample shell script showing how you can submit the DISABLE_NOTIFICATIONS command
# to Nagios.  Adjust variables to fit your environment as necessary.

now=`date +%s`
commandfile='/usr/local/nagios/var/rw/nagios.cmd'

/usr/bin/printf "[%lu] DISABLE_NOTIFICATIONS\n" $now > $commandfile
As far as your second question, are you talking about the External URL field in the admin settings? The backup-restore script copies all settings, I don't think there is a workaround for that.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked