Page 2 of 2

Re: System Hung

Posted: Tue Nov 17, 2020 1:31 pm
by FCC_Nagios_Support
watch ipcs -q empty

Re: System Hung

Posted: Tue Nov 17, 2020 1:39 pm
by FCC_Nagios_Support
proccesss state red and no engine monitoring

Re: System Hung

Posted: Tue Nov 17, 2020 2:01 pm
by FCC_Nagios_Support
we copied from other system
is the ndo belongs to old version according to the new one
KR

Re: System Hung

Posted: Tue Nov 17, 2020 2:41 pm
by ssax
NDO2DB doesn't exist in XI 5.7+ by default, it is replaced by the new NDO3 (that is not a service and doesn't use the ipcs queue).

To re-setup NDO2DB on XI 5.7 you would need to run these commands as root:

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.:

Code: Select all

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

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:

Code: Select all

systemctl start nagios

Re: System Hung

Posted: Wed Nov 18, 2020 2:48 am
by FCC_Nagios_Support
We copied ndo: .o, bin and cfg and service unit from other system adn running
I do not understand the cause of ndo2db dissapear

Thsk

Re: System Hung

Posted: Wed Nov 18, 2020 10:18 am
by ssax
When you upgraded to XI 5.7 NDO2DB (the service) was removed intentionally to move towards the new serviceless NDO3. If you have issues with the new NDO3 you can downgrade (meaning re-install NDO2DB and enabling NDO2DB/disabling NDO3 like the instructions I sent do).

If you PM me a copy of your profile I can take a look to see if I see any issues.

Re: System Hung

Posted: Thu Nov 19, 2020 9:04 am
by FCC_Nagios_Support
I am very afraid that we are using the old broker

Re: System Hung

Posted: Thu Nov 19, 2020 6:34 pm
by ssax
The old broker NDO2DB is more stable than the new NDO3 on some systems.

There's no reason to be afraid, they are interchangeable at this point in time and development is aware that we've had customers do this.

If this was my system, I'd be running the old NDO2DB as well at this point in time.