Page 2 of 2

Re: Questions regarding updating Nagios XI to version 5.7.4

Posted: Thu Nov 05, 2020 4:46 pm
by ssax
If everything looks good you likely did the proper procedure.

The reason we want the profiles is to tailor the commands to your system. For the most part they are similar but here's a more universal explanation of what those instructions entail:

Take an XI backup first just in case:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

For EL6/sysv OSes:

Code: Select all

service nagios stop
cd /tmp
rm -rf /tmp/nagiosxi
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.6.14.tar.gz
tar zxf xi-5.6.14.tar.gz
cd /tmp/nagiosxi
./init.sh
cd /tmp/nagiosxi/subcomponents/ndoutils
./install
chkconfig ndo2db on
For EL7+/systemd OSes:

Code: Select all

systemctl stop nagios
cd /tmp
rm -rf /tmp/nagiosxi
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.6.14.tar.gz
tar zxf xi-5.6.14.tar.gz
cd /tmp/nagiosxi
./init.sh
cd /tmp/nagiosxi/subcomponents/ndoutils
./install
systemctl enable ndo2db
If you have an offloaded database you will need to edit your /usr/local/nagios/etc/ndo2db.cfg file and update these before running the next command to start it up:
- You can get the info from your /usr/local/nagios/etc/ndo.cfg or from /usr/local/nagiosxi/html/config.inc.php

db_host
db_port
db_user
db_pass

Then run this command to start it up:

For EL6/sysv OSes:

Code: Select all

service ndo2db start
For EL7+/systemd OSes:

Code: Select all

systemctl start ndo2db
Then edit your /usr/local/nagios/etc/nagios.cfg and make sure this line is uncommented/add it if needed:

Code: Select all

broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg
Make sure all occurrences of this line are commented:

Code: Select all

#broker_module=/usr/local/nagios/bin/ndo.so /usr/local/nagios/etc/ndo.cfg
Then start the nagios service:

For EL6/sysv OSes:

Code: Select all

service nagios start
For EL7+/systemd OSes:

Code: Select all

systemctl start nagios

Re: Questions regarding updating Nagios XI to version 5.7.4

Posted: Mon Nov 09, 2020 5:48 am
by tony
Many thanks for these instructions

Re: Questions regarding updating Nagios XI to version 5.7.4

Posted: Mon Nov 09, 2020 6:20 pm
by ssax
Glad to help, let us know if you have any related questions or if we're okay to lock this up and mark it as resolved.

Re: Questions regarding updating Nagios XI to version 5.7.4

Posted: Tue Nov 10, 2020 2:35 am
by tony
Yes close this post we will upgrade our DEV environment first before the live systems

Re: Questions regarding updating Nagios XI to version 5.7.4

Posted: Tue Nov 10, 2020 7:16 am
by scottwilkerson
tony wrote:Yes close this post we will upgrade our DEV environment first before the live systems
Locking thread