Page 1 of 1

Delete all configs and start auto discovery

Posted: Mon Aug 16, 2021 5:25 am
by Tilburg
Hi,

I want to clone my production Nagios xi server to our O environment and delete all the configs defined. After that i want to start the auto discovery. This is because our O not 100% the same as P and i just want to start from scratch.

Is there an easy way to do this?

If this seems to be a dumb way of going about this, then please let me know what alternatives I can use.

thanks a lot,

Rob

Re: Delete all configs and start auto discovery

Posted: Mon Aug 16, 2021 1:26 pm
by ssax
You can backup P and restore to O, then follow the After the Restore section completely from the backup/restore guide:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Then to restore to the default configs:

If you run this script it will restore the configs on the system to the defaults:
- I ran this on my system and it left all the XI specific settings/users

Code: Select all

/usr/local/nagiosxi/scripts/restore_defaults.sh