Page 1 of 1

Can I flush all hosts and services (start over) ?

Posted: Wed Sep 27, 2017 2:17 pm
by Daithi
I had a V2 nagios server that crashed and have installed nagiosxi but have run into problems importing my old configuration files - i.e. I have four copies of some services in each host, etc. I'd like to just roll back to empty and go with the static method. Is there a way to clean out everything ?

Thanks,
Dave

Re: Can I flush all hosts and services (start over) ?

Posted: Wed Sep 27, 2017 2:24 pm
by kyang
Running the script below will allow you to restore XI back to a clean install state.

Code: Select all

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

Re: Can I flush all hosts and services (start over) ?

Posted: Wed Sep 27, 2017 3:00 pm
by Daithi
Thanks! I have a trial system that I'll run that on and see if can do better the second time around.

Re: Can I flush all hosts and services (start over) ?

Posted: Wed Sep 27, 2017 3:05 pm
by kyang
Sounds good!

I'll be closing this thread, if you have any more questions feel free to create another one.
Thanks for using the Nagios Support Forums!