Had a drive issue seem to have lost all configurations.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

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

Post 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
jladd
Posts: 70
Joined: Fri Jan 22, 2010 11:30 am

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

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

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

Post by mguthrie »

Ok, sorry man. Let us know if there's anything else we can do.
Locked