Blank page after restore of backup

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Blank page after restore of backup

Post by gormank »

Hi,
I created a test system to experiment with restoring, upgrading, etc. Its on RHEL 6.6 and runs XI 2014R2.6, just like the live systems.
It has the same hostname, but uses DHCP, so a different address.
The new system seemed fine, and I could log in.

I took the latest backup file from the live system and restored using:
/usr/local/nagiosxi/scripts/restore_xi.sh /mnt/hgfs/Nagios/nagiosxi.1454284801.tar.gz

Code: Select all

NPCD started.
Starting ndo2db: done.
/etc/sysconfig/nagios: line 8: /var/nagiosramdisk/spool/checkresults: is a directory
Starting nagios: done.

===============
RESTORE COMPLETE
===============
Now if I go to http://<address> I get a welcome page as expected. If I then click Access Nagios XI at http://<address>/nagiosxi, I get a blank page with no error. http://<address>/nagios gives me a login dialog.
I did a bit of searching and found a similar post: https://support.nagios.com/forum/viewto ... e&start=10

Nothing looks wrong until the following:

Code: Select all

tail -f /var/log/httpd/error_log
[Mon Feb 01 16:08:01 2016] [error] [client ::1] PHP Fatal error:  SourceGuardian Incompatible loader version. This protected script has been encoded with a newer version of SourceGuardian. Please download and install the <A HREF="http://www.sourceguardian.com/loaders/">latest loaders</A>. Error code [19] in /usr/local/nagiosxi/html/includes/components/csvimporter/csvimporter.inc.php on line 2
The csvimporter.inc.php file says its v10.1.1, which is the same as the one on my live machines.

I checked a 5.2.3 test box and don't see the csvimporter. Any hints on removing it? I tried moving the dir to /tmp but no change.
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Blank page after restore of backup

Post by gormank »

Moving the csvimporter dir seems to have helped, but I think I messed up somewhere setting up the ramdisk.
I now get a login prompt for XI, but the nagios service refuses to run.

Code: Select all

# service nagios status
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
nagios is not running
# service nagios stop
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Stopping nagios:/etc/init.d/nagios: line 141: kill: (20749) - No such process
 done.
# service nagios start
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Starting nagios: done.
I'll have a look at the init sccript...
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Blank page after restore of backup

Post by gormank »

I found I had an extra newline in mkdir line of /etc/sysconfig/nagios I pasted into for the ramdisk config, and it seems the gearman broker definition in nagios.cfg was causing nagios not to start.
I also found the custom home page defined under admin, manage components wasn't loading. I just reset it back to the default.

Not bad. It took about half a day to build the system, restore and get it to this point.
With a correct ramdisk setup, and the addition of setting up gearman, this would have gone almost flawlessly. I'll update my process and try it again.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Blank page after restore of backup

Post by tmcdonald »

Keep us posted!

Also please note that our internal "TODO" dashboard operates off of time since last post - in order to keep that number from resetting to 0, please edit your previous post if you have more to add. This will preserve your thread's place in our list. Thanks!
Former Nagios employee
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Blank page after restore of backup

Post by gormank »

I found that the csvimporter component from and installed by a vendor we had working on the system so that looks fine.
You can close this--I just need to add setting up the ramdisk and gearman to my process and retest.

Thanks
Locked