Nagios XI - Configuration Applies, No Changes Take Place

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Nagios XI - Configuration Applies, No Changes Take Place

Post by RIDS_I2MP »

Hello Team,

We are using 2014R2.7 version of Nagios XI.
From past few days, we are facing issue with the configuration. I am explaining with an example here.
We removed monitoring on a server and applied configuration which completed successfully, but when we checked that server, it is still visible in Nagios GUI and the services are still being monitored. I am attaching the screen shots for that server here.
In short, the changes are getting completed but are not getting reflected.

After searching about the issue, I got below link from Nagios support knowledgebase:
https://support.nagios.com/kb/article/n ... ce-39.html

Before performing the steps mentioned in above link, I just wanted your suggestion for the same, as all the production servers are being monitored in this Nagios environment, so we cannot afford any kind of mistakes.

I would like to add one more thing, we are continuously getting message as "A new Nagios XI update is available." which is 5.5.3 version.
So if we upgrade the Nagios XI to the latest version, will it resolve the problem?

Please suggest on the same and let me know if you need any other information.

Thanks in advance!!
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios XI - Configuration Applies, No Changes Take Place

Post by ssax »

First, please run these commands and post the output:

Code: Select all

ps aux | grep nagios.cfg
ipcs -q
Then run these commands and see if it resolves your issue:

Code: Select all

service nagios stop
service ndo2db stop
pkill -9 nagios
killall -9 nagios
for i in `ipcs -q | grep nagios |awk '{print $2}'`; do ipcrm -q $i; done
service ndo2db start
service nagios start
Let us know the results.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Nagios XI - Configuration Applies, No Changes Take Place

Post by RIDS_I2MP »

Hello,

Thank you for the reply!!
I need some approvals for performing the provided steps, will update you on the same.
In the meanwhile, can you please suggest if there is any alternate solution for this issue where we do not have to stop nagios, as there are more than 500 production servers which are being monitored in this Nagios XI environment. If we perform steps provided here, monitoring on all those servers will get impacted(probably they will recover after we start nagios).
Thanks & Regards,
I2MP Team.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Nagios XI - Configuration Applies, No Changes Take Place

Post by npolovenko »

@RIDS_I2MP, While you are restarting the Nagios process no service checks are being executed. But running through these commands shouldn't take longer than a minute. Is the retain_state_information option enabled in your /usr/local/nagios/etc/nagios.cfg file?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Nagios XI - Configuration Applies, No Changes Take Place

Post by RIDS_I2MP »

Hello,

Yes, the retain_state_information option is enabled in our /usr/local/nagios/etc/nagios.cfg file.

[nagios@eu1papu003 etc]$ grep -i retain_state_information nagios.cfg
retain_state_information=1
[nagios@eu1papu003 etc]$ pwd
/usr/local/nagios/etc

Please let me know what is the importance of this particular parameter (retain_state_information)?
Thanks & Regards,
I2MP Team.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI - Configuration Applies, No Changes Take Place

Post by scottwilkerson »

At least lets see if there are multiple nagios parent process running, this will not stop anything

Code: Select all

ps -ef| grep nagios.cfg
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Nagios XI - Configuration Applies, No Changes Take Place

Post by RIDS_I2MP »

Hello,

[nagios@eu1papu003 ~]$ ps -ef| grep nagios.cfg
nagios 1888 1 0 04:38 ? 00:00:26 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 1947 1888 0 04:38 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 5423 3979 0 05:27 pts/0 00:00:00 grep nagios.cfg
[nagios@eu1papu003 ~]$ date
Fri Sep 21 05:27:40 BST 2018
Thanks & Regards,
I2MP Team.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI - Configuration Applies, No Changes Take Place

Post by scottwilkerson »

Ok, that looks good. Do you have an offloaded database?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Nagios XI - Configuration Applies, No Changes Take Place

Post by RIDS_I2MP »

Hello,

I am checking with the DBA team for the same, will get back to you.
Thanks & Regards,
I2MP Team.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI - Configuration Applies, No Changes Take Place

Post by scottwilkerson »

RIDS_I2MP wrote:Hello,

I am checking with the DBA team for the same, will get back to you.
Sounds good
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked