Page 2 of 2

Re: Had a drive issue seem to have lost all configurations.

Posted: Tue Jun 28, 2011 10:59 am
by mguthrie
Hmm, what are the permissions on the /etc/nagiosql/backup directory? They should read:

Code: Select all

drwsrwsr-x 4 apache nagios 45056 Jun 28 09:39 backup
I hate to be the bearer of bad news, but without the config data being either in the DB (which it doesn't appear to be) or in a snapshot somewhere, there isn't a whole lot that can be done. If you're able to locate a Configuration Snapshot tarball, or a set of backed up config files you could run an import, but from what you're describing, there doesn't appear to be a set of backup files in the /etc/nagiosql/backup directory. Is there a chance that your configs were being maintained manually (text-configuration) out of the /usr/local/nagios/etc/static directory?

Do you happen to have any tarballs located in the following directory?
/usr/local/nagiosxi/nom/checkpoints/nagioscore

Re: Had a drive issue seem to have lost all configurations.

Posted: Tue Jun 28, 2011 4:48 pm
by jladd
No basically What happened was I started to get drive errors and the server started to complain of orphaned files and it forced me to run a check and cleanup after that process everything was gone But What i tried to do for the backup is I took a copy of the script nagios uses for backups and modified it to save the data on a secondary drive but looking through that backup the only thing listed is local host? When I add hosts and services is the original backup script modified to include those and maybe because i was using a copy of the script in a different location it only backed up what was already in the script *localhost*? I think for the most part everything will be ok will just be another long weekend coming up.

Re: Had a drive issue seem to have lost all configurations.

Posted: Wed Jun 29, 2011 9:48 am
by mguthrie
Ok, sorry man. Let us know if there's anything else we can do.