Page 1 of 3

Upgrading NagiosXI

Posted: Tue Jan 29, 2019 7:46 am
by mohan23
Hi Team,

Current version of Nagios xi in our environment is 5.4.11. I want to upgrade NagiosXI to Latest version. Please let me know which latest version is better to upgrade so that that version don't have any issue or bugs . Our current version is behaving weirdly and not detecting Host down status when any host is really down .

Please let me know all the instructions and pre-procedures and things needs to be done before and after upgrade of NagiosXI.

Also let me know by Upgrading NagiosXI , will I get latest version of Nagvis? or Do I need to do any thing to get install Nagvis latest version.

Regards,
Mohan Gandhi

Re: Upgrading NagiosXI

Posted: Tue Jan 29, 2019 9:51 am
by lmiltchev
Current version of Nagios xi in our environment is 5.4.11. I want to upgrade NagiosXI to Latest version. Please let me know which latest version is better to upgrade so that that version don't have any issue or bugs.
Nagios XI 5.4.11 is quite old. I would recommend upgrading to the latest (5.5.9 at the moment). There have been a numerous bugs that were fixed since 5.4.11. You can view the changelog here:

https://www.nagios.com/downloads/nagios-xi/change-log/
Please let me know all the instructions and pre-procedures and things needs to be done before and after upgrade of NagiosXI.
Here's our official documentation on upgrading Nagios XI:

https://assets.nagios.com/downloads/nag ... ctions.pdf
Also let me know by Upgrading NagiosXI , will I get latest version of Nagvis? or Do I need to do any thing to get install Nagvis latest version.
Latest XI ships with NagVis 1.9.8.

Re: Upgrading NagiosXI

Posted: Tue Jan 29, 2019 10:04 am
by mohan23
What will happen to existing Performance data post upgrade? Will this existing performance data will be available after upgrade .

Also is there any mechanism to keep only last 1 or 2 or 3 months performance data and delete rest of the performance data.

Re: Upgrading NagiosXI

Posted: Tue Jan 29, 2019 10:51 am
by lmiltchev
What will happen to existing Performance data post upgrade? Will this existing performance data will be available after upgrade .
Yes, the performance data is backed up and restored. Keep in mind that you may run into some issues if you are changing the architecture, e.g. migrating from a 32-bit to a 64-bit system. See more on the issue here:

https://support.nagios.com/kb/article/n ... a-166.html

If you are not changing the architecture, there is nothing to worry about.
Also is there any mechanism to keep only last 1 or 2 or 3 months performance data and delete rest of the performance data.
There is no way of doing that as far as I know. The RRDs are already created and you can't change them. You will have to remove them and recreate them with a different settings. For example, if you wanted to keep only let's say 3 months of performance data, you could modify the /usr/local/nagios/etc/pnp/rra.cfg file by commenting out the "360 minute step" lines:

Code: Select all

#
# PNP default RRA config
#
# you will get 400kb of data per datasource
#
# 2880 entries with 1 minute step = 48 hours
#
RRA:AVERAGE:0.5:1:2880
#
# 2880 entries with 5 minute step = 10 days
#
RRA:AVERAGE:0.5:5:2880
#
# 4320 entries with 30 minute step = 90 days
#
RRA:AVERAGE:0.5:30:4320
#
# 5840 entries with 360 minute step = 4 years
#
#RRA:AVERAGE:0.5:360:5840

RRA:MAX:0.5:1:2880
RRA:MAX:0.5:5:2880
RRA:MAX:0.5:30:4320
#RRA:MAX:0.5:360:5840

RRA:MIN:0.5:1:2880
RRA:MIN:0.5:5:2880
RRA:MIN:0.5:30:4320
#RRA:MIN:0.5:360:5840
Then, you would need to delete all of the old RRDs, so that they would be recreated with the "new" settings:

Code: Select all

cd /usr/local/nagios/share/perfdata
rm -rf *
Important: You will lose ALL of the "old" perfdata! The new perfdata should be kept for 3 months.

Read more on performance data averaging here:

https://support.nagios.com/kb/article/n ... g-768.html

Re: Upgrading NagiosXI

Posted: Wed Jan 30, 2019 8:58 am
by mohan23
Thanks for providing above information . If I want to keep last 6 months data instead of 3 months after XI upgrade. what changes needs to be done in rra.cfg. Could you please let me know

Re: Upgrading NagiosXI

Posted: Wed Jan 30, 2019 9:55 am
by lmiltchev
You would need to modify the rra.cfg as such:
#
# PNP default RRA config
#
# you will get 400kb of data per datasource
#
# 2880 entries with 1 minute step = 48 hours
#
RRA:AVERAGE:0.5:1:2880
#
# 2880 entries with 5 minute step = 10 days
#
RRA:AVERAGE:0.5:5:2880
#
# 4320 entries with 30 minute step = 90 days
#
#RRA:AVERAGE:0.5:30:4320
# 8640 entries with 30 minute step = 180 days
RRA:AVERAGE:0.5:30:8640

#
# 5840 entries with 360 minute step = 4 years
#
#RRA:AVERAGE:0.5:360:5840

RRA:MAX:0.5:1:2880
RRA:MAX:0.5:5:2880
RRA:MAX:0.5:30:8640
#RRA:MAX:0.5:360:5840

RRA:MIN:0.5:1:2880
RRA:MIN:0.5:5:2880
RRA:MIN:0.5:30:8640
#RRA:MIN:0.5:360:5840
You would still need to delete all of the old RRDs, so that they would be recreated with the "new" settings. Hope this helps.

Re: Upgrading NagiosXI

Posted: Wed Jan 30, 2019 10:09 am
by mohan23
Thank you very much for sharing information. We will upgrade XI and come back to you in case of any issues.

But lets keep this thread open for a week or so.

Re: Upgrading NagiosXI

Posted: Wed Jan 30, 2019 10:25 am
by lmiltchev
I am not going to close the topic but keep in mind that topics do "auto-close" after some time. If this happens, you could just start a new thread, and reference this one, or you could PM me, and ask me to unlock the topic. Thank you!

Re: Upgrading NagiosXI

Posted: Tue Feb 05, 2019 6:44 am
by mohan23
I'm trying to upgrade to latest version and I see upgrade is getting break at below step

Package wkhtmltox-0.12.1.3.el7.x86_64.rpm is not signed
Uploading Enabled Repositories Report
Loaded plugins: product-id, rhnplugin, subscription-manager
This system is not registered with RHN Classic or Red Hat Satellite.
You can use rhn_register to register.
Red Hat Satellite or RHN Classic support will be disabled.

even we have tried upgrading manually , we are getting same issue and we have downloaded 5.5.9 tar files and tried to upgrade and we are getting same error

can you help me on how to get this fixed and upgrade xi successfully.

Re: Upgrading NagiosXI

Posted: Tue Feb 05, 2019 10:28 am
by lmiltchev
Is your system registered with RedHat? Let's try to rerun the upgrade. Run the following commands from the command line:

Code: Select all

cd /tmp
rm -rf nagiosxi xi*.tar.gz
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.5.9.tar.gz
tar xvf xi-5.5.9.tar.gz
cd nagiosxi
./upgrade
If the upgrade fails again, post the entire upgrade.log on the forum.