Nagios XI - Configuration Applies, No Changes Take Place
Nagios XI - Configuration Applies, No Changes Take Place
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!!
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.
I2MP Team.
Re: Nagios XI - Configuration Applies, No Changes Take Place
First, please run these commands and post the output:
Then run these commands and see if it resolves your issue:
Let us know the results.
Code: Select all
ps aux | grep nagios.cfg
ipcs -q
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
Re: Nagios XI - Configuration Applies, No Changes Take Place
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).
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.
I2MP Team.
-
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Nagios XI - Configuration Applies, No Changes Take Place
@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.
Re: Nagios XI - Configuration Applies, No Changes Take Place
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)?
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.
I2MP Team.
-
- 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
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
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
[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.
I2MP Team.
-
- 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
Ok, that looks good. Do you have an offloaded database?
Re: Nagios XI - Configuration Applies, No Changes Take Place
Hello,
I am checking with the DBA team for the same, will get back to you.
I am checking with the DBA team for the same, will get back to you.
Thanks & Regards,
I2MP Team.
I2MP Team.
-
- 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
Sounds goodRIDS_I2MP wrote:Hello,
I am checking with the DBA team for the same, will get back to you.