Upgrade failure NagiosXi 2011R2.4 to 2011R3.1

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

Upgrade failure NagiosXi 2011R2.4 to 2011R3.1

Post by ecarrasq »

System Info
Linux Distribution and version?

*Linux version 2.6.18-274.3.1.el5 ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-51)) #1 SMP Tue Sep 6 20:14:03 EDT 2011
CentOS release 5.7 (Final)

32 or 64bit?

32 bit

VMware Image or Manual Install of XI?

VMware Image

Are there specials configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL?

No.

ISSUE


I ran the upgrade from 2011R2.4 to 2011R3.1. Seemed to have gone ok, BUT when I go to the URL of my NagiosXi webpage, I get a blank page.

Please help!
Last edited by ecarrasq on Wed Jun 13, 2012 12:48 pm, edited 3 times in total.
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

Re: Upgrade failure NagiosXi 2011R2.4 to 2011R3.1

Post by ecarrasq »

Attached is the "httpd error log"
You do not have the required permissions to view the files attached to this post.
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

Re: Upgrade failure NagiosXi 2011R2.4 to 2011R3.1

Post by ecarrasq »

Fixed by reset Nagios permissions and ownerships:

# /usr/local/nagiosxi/scripts/fixperms.sh

# chown root.nagios /usr/local/nagiosxi/scripts/reset_config_perms
# chmod u+s /usr/local/nagiosxi/scripts/reset_config_perms
# chown root.nagios /usr/local/nagiosxi/scripts/reset_config_perms.sh
# chmod u+s /usr/local/nagiosxi/scripts/reset_config_perms.sh

And finally:

# service nagios restart
# service httpd restart
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

Re: Upgrade failure NagiosXi 2011R2.4 to 2011R3.1

Post by ecarrasq »

A couple of other issues emerged. (Please see the screenshot) The following appear as Stopped in NagiosXi:

Command Subsystem
Event Manager
Feed Processor
Report Engine
Cleaner
System Statistics
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Upgrade failure NagiosXi 2011R2.4 to 2011R3.1

Post by scottwilkerson »

Try

Code: Select all

service crond restart
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

Re: Upgrade failure NagiosXi 2011R2.4 to 2011R3.1

Post by ecarrasq »

It's still showing status of " ! ".
You do not have the required permissions to view the files attached to this post.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Upgrade failure NagiosXi 2011R2.4 to 2011R3.1

Post by mguthrie »

Access the /tmp/nagiosxi directory where you extracted the latest tarball, and then run:

Code: Select all

install -m 644 nagiosxi/nagiosxi.cron.d /etc/cron.d/nagiosxi
service crond restart
Lets also make sure the permissions are ok for the PHP web scripts.

Code: Select all

chmod -R +x /usr/local/nagiosxi/html
chown -R nagios.nagios /usr/local/nagiosxi/html
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

Re: Upgrade failure NagiosXi 2011R2.4 to 2011R3.1

Post by ecarrasq »

I tried those suggestions. I no longer have the problem with the main login page not showing, but I do have a problem with the "Xi Component Status" items, and "Applying Configuration" timing out. I do not have any "Unconfigured Objects".
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Upgrade failure NagiosXi 2011R2.4 to 2011R3.1

Post by mguthrie »

For some reason the subsystem cron jobs don't seem to be installing correctly. Can you show us the permissions of those cron scripts:

Code: Select all

ls -l /usr/local/nagiosxi/cron
and also see if any of them are running:

Code: Select all

ps aux | grep php
If we don't figure this out for you soon we'll get a remote session scheduled. Your system fairly hindered if those aren't running.
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

Re: Upgrade failure NagiosXi 2011R2.4 to 2011R3.1

Post by ecarrasq »

total 100
-rwxr-xr-x 1 nagios nagios 2058 Jun 12 12:16 cleaner.php
-rwxr-xr-x 1 nagios nagios 16649 Jun 12 12:16 cmdsubsys.php
-rwxr-xr-x 1 nagios nagios 216 Jun 12 12:16 cookie.txt
-rwxr-xr-x 1 nagios nagios 11151 Jun 12 12:16 dbmaint.php
-rwxr-xr-x 1 nagios nagios 4046 Jun 12 12:16 eventman.php
-rwxr-xr-x 1 nagios nagios 1875 Jun 12 12:16 feedproc.php
-rwxr-xr-x 1 nagios nagios 2072 Jun 12 12:16 nom.php
-rwxr-xr-x 1 nagios nagios 11177 Jun 12 12:16 perfdataproc.php
-rwxr-xr-x 1 nagios nagios 17692 Jun 12 12:16 recurringdowntime.pl
-rwxr-xr-x 1 nagios nagios 1523 Jun 12 12:16 reportengine.php
-rwxr-xr-x 1 nagios nagios 10296 Jun 12 12:16 sysstat.php

root 8336 0.0 0.0 4016 692 pts/0 S+ 13:12 0:00 grep php
Locked