NagiosXI 5 upgrade issue (partial failed)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

NagiosXI 5 upgrade issue (partial failed)

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NagiosXI 5 upgrade issue (partial failed)

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Re: NagiosXI 5 upgrade issue (partial failed)

Post 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!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NagiosXI 5 upgrade issue (partial failed)

Post 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?
Former Nagios Employee
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Re: NagiosXI 5 upgrade issue (partial failed)

Post 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: NagiosXI 5 upgrade issue (partial failed)

Post 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?
Former Nagios Employee.
me.
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Re: NagiosXI 5 upgrade issue (partial failed)

Post 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.
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Re: NagiosXI 5 upgrade issue (partial failed)

Post 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?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: NagiosXI 5 upgrade issue (partial failed)

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Re: NagiosXI 5 upgrade issue (partial failed)

Post 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.
Locked