Page 1 of 2

Nagios XI - Configuration Applies, No Changes Take Place

Posted: Tue Sep 18, 2018 4:11 am
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!!

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

Posted: Tue Sep 18, 2018 1:19 pm
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.

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

Posted: Wed Sep 19, 2018 6:03 am
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).

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

Posted: Wed Sep 19, 2018 4:14 pm
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?

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

Posted: Wed Sep 19, 2018 11:38 pm
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)?

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

Posted: Thu Sep 20, 2018 1:12 pm
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

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

Posted: Thu Sep 20, 2018 11:30 pm
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

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

Posted: Fri Sep 21, 2018 7:04 am
by scottwilkerson
Ok, that looks good. Do you have an offloaded database?

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

Posted: Tue Sep 25, 2018 1:47 am
by RIDS_I2MP
Hello,

I am checking with the DBA team for the same, will get back to you.

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

Posted: Tue Sep 25, 2018 7:26 am
by scottwilkerson
RIDS_I2MP wrote:Hello,

I am checking with the DBA team for the same, will get back to you.
Sounds good