Prevent notifications while migrating to new NagiosXI server
Posted: Fri Jan 25, 2019 6:13 am
Hi,
We are migrating our NagiosXI server from CentOS 6 to CentOS 7.
We followed the procedure from Nagios and creating a backup from to old environment restoring it on the new environment works fine.
The problem is, we still have to do some tweaking afterwards:
- the IP adres need to change of the server (to that of the old one), which is easier than changing all client configurations
- URL's of NagiosXI need to change
- passwords of mysql
- ...
But because the new Nagios server gets all the working settings from the old server and the Nagios service starts, it also starts sending out a huge amount of email notifications, due to the fact that not all nrpe agents / nsclients have been reconfigured to allow the new Nagios server ip etc.
Even with the notification disabled in the nagios.cfg file ('enable_notifications=0'), it still send emails when the nagios service is started.
We'd like to prevent that during the migration phase in order to be sure everything is working as expected before going in production.
What would be the best approach:
- disconnect from network: will allow the restore to finish and services to start but you can't connect to NagiosXI to do any administration and tests, but changing config files would be possible from the console.
- changing the mail settings is possible, but Nagios is faster than me changing it
- temporary blocking it on the smtp server? But I suppose mails are cached.
I've read on this thread https://support.nagios.com/forum/viewto ... ed#p183872 that the tables xi_events and xi_meta can be cleared. Would this help us as well?
Can you please advise what the best approach is for this situation?
Kind regards,
Peter
We are migrating our NagiosXI server from CentOS 6 to CentOS 7.
We followed the procedure from Nagios and creating a backup from to old environment restoring it on the new environment works fine.
The problem is, we still have to do some tweaking afterwards:
- the IP adres need to change of the server (to that of the old one), which is easier than changing all client configurations
- URL's of NagiosXI need to change
- passwords of mysql
- ...
But because the new Nagios server gets all the working settings from the old server and the Nagios service starts, it also starts sending out a huge amount of email notifications, due to the fact that not all nrpe agents / nsclients have been reconfigured to allow the new Nagios server ip etc.
Even with the notification disabled in the nagios.cfg file ('enable_notifications=0'), it still send emails when the nagios service is started.
We'd like to prevent that during the migration phase in order to be sure everything is working as expected before going in production.
What would be the best approach:
- disconnect from network: will allow the restore to finish and services to start but you can't connect to NagiosXI to do any administration and tests, but changing config files would be possible from the console.
- changing the mail settings is possible, but Nagios is faster than me changing it
- temporary blocking it on the smtp server? But I suppose mails are cached.
I've read on this thread https://support.nagios.com/forum/viewto ... ed#p183872 that the tables xi_events and xi_meta can be cleared. Would this help us as well?
Can you please advise what the best approach is for this situation?
Kind regards,
Peter