Page 1 of 1

NagiosXi replication and Alerting

Posted: Tue Sep 18, 2018 4:08 pm
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,

Re: NagiosXi replication and Alerting

Posted: Tue Sep 18, 2018 4:57 pm
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.