Page 1 of 1

Empty status screens on a cloned instance

Posted: Wed Jan 30, 2013 10:15 am
by cellact
Hi,
I've cloned our Nagios VM machine to a backup site and have started it up only to find the status screens showing 0 in all aspects.
The DB seems in tact as I can see all of the hosts and services in the Configuration Manager.
I can also see the monitoring engine is working from the Event Log.

What can be the issue and how can I get back everything to show?

Thanks.

Re: Empty status screens on a cloned instance

Posted: Wed Jan 30, 2013 10:33 am
by slansing
Make sure that you have done the following:


If you still have the /tmp/nagiosxi install directory do the following:

Code: Select all

cd /tmp/nagiosxi
rm -f installed.subcomponents
./A-subcomponents
./build-perms-bin
If you have already deleted the /tmp/nagiosxi install directory do the following:

Code: Select all

cd /tmp
wget http://assets.nagios.com/downloads/nagiosxi/xi-2011-latest.tar.gz
tar xzf xi-2011-latest.tar.gz
cd /tmp/nagiosxi
touch installed.mrtg
./A-subcomponents
./build-perms-bin
And then lets run the reset permissions script to be sure:

http://assets.nagios.com/downloads/nagi ... ssions.pdf

Re: Empty status screens on a cloned instance

Posted: Thu Jan 31, 2013 2:05 am
by cellact
Hi,
I followed the steps but it didn't help.

I think I'll just try to take another snapshot of the machine.

Re: Empty status screens on a cloned instance

Posted: Thu Jan 31, 2013 9:11 am
by scottwilkerson
This is actually likely DB corruption, run

Code: Select all

/usr/local/nagiosxi/scripts/repairmysql.sh nagios
service ndo2bd restart

Re: Empty status screens on a cloned instance

Posted: Sun Feb 03, 2013 11:12 am
by cellact
Nice, that worked! (with service ndo2db restart)

Cheers