Page 2 of 2

Re: NagiosXI upgrade

Posted: Fri Feb 05, 2021 7:43 am
by mejokj
Hello kindly provide the steps for offload database we are using offloaded data base

Re: NagiosXI upgrade

Posted: Fri Feb 05, 2021 10:54 am
by benjaminsmith
Hi,

No problem, here are the steps with an offloaded database.

DOWNGRADE NDO WITH OFFLOADED DB

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
Offloaded DB Changes
(If you have an offloaded DB you'll need to do these things:)
1. Edit /tmp/nagiosxi/xi-sys.cfg and update 'mysqlpass' value.
2. Edit /tmp/nagiosxi/subcomponents/ndoutils/mods/cfg/ndo2db.cfg and update 'db_host', 'db_user', and 'db_pass' values.
3. Edit /tmp/nagiosxi/subcomponents/ndoutils/install and /tmp/nagiosxi/subcomponents/ndoutils/post-install to update all calls to mysql to include -h <db_ip>

Then compile and install the ndo2db service.

Code: Select all

cd /tmp/nagiosxi/subcomponents/ndoutils
./install
chkconfig ndo2db on
service ndo2db start
Let us know if you need any assistance.
Benjamin