Page 1 of 4

NagiosXI 5 upgrade issue (partial failed)

Posted: Tue Nov 10, 2015 6:50 pm
by absarcompass
Hi,
I recently tried upgrading to NagiosXI 5 via web and manual procedure but both of the time i didn't get the finish upgrade status
via web I got "The update did not complete successfully. Please try updating manually." (screenshot attached)
upgrade result web.png
Where as while upgrading from command line got this result
Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Running configuration check...
Stopping nagios:. done.
Starting nagios: done.
Fixing php-mcrypt bug...
Starting httpd:
PHP Notice: Undefined index: nagiosxi in /usr/local/nagiosxi/html/includes/db.inc.php on line 483
==================
UPGRADE COMPLETED!
==================


You can access the Nagios XI web interface by visiting:
http://192.168.x.x/nagiosxi/
The entire web interface is changed and I can see all the new features working so far and the version is updated at the bottom of webpage as well
So far didn't fine any service discrepancy but I can see the cpu load has an increase after upgrade and mysqld process taking time while applying configurations.

Can any one guide me if there is an issue and please help me about this error :? :oops:
PHP Notice: Undefined index: nagiosxi in /usr/local/nagiosxi/html/includes/db.inc.php on line 483
Cheers!!
Absar

Re: NagiosXI 5 upgrade issue (partial failed)

Posted: Wed Nov 11, 2015 12:55 pm
by lmiltchev
Do you the "The update did not complete successfully. Please try updating manually." message now, when you go to Admin->Check For Updates?

The "PHP Notice: Undefined index: nagiosxi in /usr/local/nagiosxi/html/includes/db.inc.php on line 483" message is just a "notice". You don't need to be concerned about it. Can you run the following command and show the output?

Code: Select all

grep "display_errors =" /etc/php.ini

Re: NagiosXI 5 upgrade issue (partial failed)

Posted: Wed Nov 11, 2015 3:39 pm
by absarcompass
Hi,
Nops! i don't get that message now if i check for updates but i didn't try running manual update again.

That's the output for the command
nagiosxi ~]$ grep "display_errors =" /etc/php.ini
display_errors = Off
Cheers!

Re: NagiosXI 5 upgrade issue (partial failed)

Posted: Thu Nov 12, 2015 1:52 pm
by rkennedy
When you're using Nagios XI now that you've updated manually, do you notice any php errors on any pages or is everything working without error?

Re: NagiosXI 5 upgrade issue (partial failed)

Posted: Thu Nov 12, 2015 3:34 pm
by absarcompass
Everything looks fine, no pages crashed so far but the pages are slow to respond as compared to the older version and takes a bit long to appear. same is the case when applying configurations though no prominent error so far.

Re: NagiosXI 5 upgrade issue (partial failed)

Posted: Thu Nov 12, 2015 3:40 pm
by hsmith
Have you tried upgrading to 5.2.2 yet? It was just released a couple hours ago.

As far as performance, what do the following commands look like?

Code: Select all

free -m
top | head -n5
How many hosts/services are you monitoring?

Re: NagiosXI 5 upgrade issue (partial failed)

Posted: Thu Nov 12, 2015 4:16 pm
by absarcompass
Nops! I have not and don't want to upgrade this often
I have sufficient resources on my server
for the mentioned commands here is the output
top - 10:10:21 up 2 days, 19:43, 1 user, load average: 7.60, 8.10, 7.76
Tasks: 228 total, 6 running, 222 sleeping, 0 stopped, 0 zombie
Cpu(s): 64.4%us, 10.4%sy, 0.0%ni, 23.7%id, 0.5%wa, 0.1%hi, 0.8%si, 0.0%st
Mem: 5985396k total, 3046628k used, 2938768k free, 228464k buffers
Swap: 2064376k total, 21796k used, 2042580k free, 1710140k cached
total used free shared buffers cached
Mem: 5845 2991 2853 0 223 1670
-/+ buffers/cache: 1098 4747
Swap: 2015 21 1994
I am monitoring almost 700 host and 5k services. but nothing has been added or removed after the upgrade so, I assume it should not get slow over an upgradation.

Re: NagiosXI 5 upgrade issue (partial failed)

Posted: Thu Nov 12, 2015 6:29 pm
by absarcompass
Now here comes the first problem to be noted.
I am using bulk host modification and applying a host template to number of hosts. Changes get saved successfully and there are no error when I verify config, no errors on applying configuration but there are no changes applied to the HOSTs, they still are unchanged :o
What am I missing here? :roll:
any idea guys?

Re: NagiosXI 5 upgrade issue (partial failed)

Posted: Thu Nov 12, 2015 7:57 pm
by Box293
absarcompass wrote: Changes get saved successfully and there are no error when I verify config, no errors on applying configuration but there are no changes applied to the HOSTs, they still are unchanged
This was identified as a bug and fixed in 5.2.2.

After upgrading (or as a work-around) you may need to:

Go into CCM
Tools > Write Config Files
Click the Delete button
It will say "Successfully deleted all Host / Service Config Files"
Click the Write Button
It will show an output of all the files it creates
Quick Tools > Apply Configuration
Click the Apply Configuration button

Re: NagiosXI 5 upgrade issue (partial failed)

Posted: Thu Nov 12, 2015 9:09 pm
by absarcompass
Hi Troy @Box293
Good to see you :)
The solution reads danger of deletions.
I just upgraded the nagiosxi 5 and still not sure if it was a successful attempt or not :?
Can you please ascertain the outcome of up-gradation to 5.2.2 for bulk modification tool and other service performances.