Restore to default settings/config

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
oneida
Posts: 15
Joined: Tue Sep 25, 2012 1:11 pm
Location: New York

Restore to default settings/config

Post by oneida »

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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Restore to default settings/config

Post by scottwilkerson »

If you go to Admin -> Reset Security Credential and reset you password that should allow nagiosql to login correctly
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked