Apply configuration error - attributes rolling back

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
junkertf
Posts: 119
Joined: Tue Aug 08, 2017 1:52 am

Apply configuration error - attributes rolling back

Post by junkertf »

Hello Support,

We had a successfully update our PROD NagiosXI version 5.8.2 and found, that we experinecing the issue described here:

https://support.nagios.com/forum/viewto ... 16&t=30807

Also our UAT environment producing these signs, same operating system same version, much less service count.

5.8.3 version changelog not showing these type of correction.

Tried to use
/usr/local/nagiosxi/scripts/reset_config_perms.sh
but not sure it is help or not, but on UAT environment it is worked well.

I could make profile, but its size is arround 500MB on our PROD environment.
Please help find the RCA and resolve the issue.

Thank you, best regards,

Ferenc
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Apply configuration error - attributes rolling back

Post by ssax »

Before following the steps below, please do this and see if it resolves the issue:

Please go to Configure > Core Config Manager > Tools > Config File Management:
- Click the Delete Files button (don't worry, it's safe, they will be rewritten)
- Then click the Write Configs button
- After they are done being written, apply configuration and validate.

If that doesn't resolve the issue you're likely hitting a bug in the new NDO3 (we would need a copy of your profile to validate what is occurring). I would upgrade to XI 5.8.3 where it has the latest NDO3 fixes, then apply configuration to see if that resolves your issue.

If you still have the issue on XI 5.8.3, then you'll need to downgrade NDO3 back to NDO2DB to resolve the issue:

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

Code: Select all

systemctl start nagios
Then apply configuration.
junkertf
Posts: 119
Joined: Tue Aug 08, 2017 1:52 am

Re: Apply configuration error - attributes rolling back

Post by junkertf »

Hello Support,

After a few days detailed testing it is clear, that the reset config file permisisons script and the Config file management procedure persistent solved out issue!

The can be closed now.

Thank you, best regards,

Ferenc
junkertf
Posts: 119
Joined: Tue Aug 08, 2017 1:52 am

Re: Apply configuration error - attributes rolling back

Post by junkertf »

Hello Support,

After a few days detailed testing it is clear, that the reset config file permisisons script and the Config file management procedure persistent solved out issue!

The can be closed now.

Thank you, best regards,

Ferenc
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Apply configuration error - attributes rolling back

Post by scottwilkerson »

junkertf wrote:Hello Support,

After a few days detailed testing it is clear, that the reset config file permisisons script and the Config file management procedure persistent solved out issue!

The can be closed now.

Thank you, best regards,

Ferenc
Locking thread
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked