Re: Questions regarding updating Nagios XI to version 5.7.4
Posted: Thu Nov 05, 2020 4:46 pm
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:
For EL7+/systemd OSes:
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:
For EL7+/systemd OSes:
Then edit your /usr/local/nagios/etc/nagios.cfg and make sure this line is uncommented/add it if needed:
Make sure all occurrences of this line are commented:
Then start the nagios service:
For EL6/sysv OSes:
For EL7+/systemd OSes:
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
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
- 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
Code: Select all
systemctl start ndo2db
Code: Select all
broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg
Code: Select all
#broker_module=/usr/local/nagios/bin/ndo.so /usr/local/nagios/etc/ndo.cfg
For EL6/sysv OSes:
Code: Select all
service nagios start
Code: Select all
systemctl start nagios