Restore to default settings/config
Posted: Wed Sep 26, 2012 7:47 am
I've run into a situation where even after restoring from a snapshot, I'm still having issues where the wizards don't seem to be creating the host/services. I have Nagios XI running on Centos 6.3 in a VM. Although we could just recreate the VM, I'd like to be able to restore to the default config and settings within the existing virtual machine.
Is this possible? I ran across some documentation at http://support.nagios.com/wiki/index.ph ... figuration and followed the recommendation:
download restore_defaults.sh and nagiosql_defaults.sql to a directory and execute restore_defaults.sh. As a result, the current configuration data was deleted, but I also received an error within the script "NAGIOSQL LOGIN FAILED!"
At this point to get Nagios XI back going (after the error), I end up having to "touch" the various config files that were deleted and then recursively change file ownership in /usr/local/nagios/etc/ to start up the nagios service again. Once it is back up and running again, I'm back to square one with the wizards not creating host/services.
Any suggestions? Just wanting to go back to a plain default config with no hosts -- the original state from a freshly created VM.
Is this possible? I ran across some documentation at http://support.nagios.com/wiki/index.ph ... figuration and followed the recommendation:
download restore_defaults.sh and nagiosql_defaults.sql to a directory and execute restore_defaults.sh. As a result, the current configuration data was deleted, but I also received an error within the script "NAGIOSQL LOGIN FAILED!"
At this point to get Nagios XI back going (after the error), I end up having to "touch" the various config files that were deleted and then recursively change file ownership in /usr/local/nagios/etc/ to start up the nagios service again. Once it is back up and running again, I'm back to square one with the wizards not creating host/services.
Any suggestions? Just wanting to go back to a plain default config with no hosts -- the original state from a freshly created VM.