Apply Configuration Error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
KumarP
Posts: 3
Joined: Wed Dec 30, 2020 4:40 am

Apply Configuration Error

Post by KumarP »

Hello,

We've recently adding large amounts of servers and services to be monitored within NagiosXI, When we try to apply the configuration were presented with the following error message: 'An error occurred while attempting to apply your configuration to Nagios Core. Monitoring engine configuration files have been rolled back to their last known good checkpoint'. It shows that the configuration setting was written successfully however the states:

'Error: Service has no host and/or service_description (config file '/usr/local/nagios/etc/services/CWMPS03.cfg', starting on line 33).
NagiosXI Applying Configuration.PNG
I was looking at the following Knowledge base article on the Nagios support website : https://support.nagios.com/kb/article/n ... d-532.html When the command './reconfigure_nagios.sh' is executed it fails to import into the CCM which is different to what is shown from the website. I can confirm the Virtual Machine has been restarted however it shows a local account is editing a service.
NagiosXI error.PNG


Below is information taken from the 'system profile'

Nagios XI version: 5.6.7
XI installed from: ova
CentOS release 6.9 (Final) 64-bit
Gnome is not installed

Any assistance would be grateful.
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Apply Configuration Error

Post by ssax »

Please PM me the files you have in /usr/local/nagios/etc/import.

Then move those files out of /usr/local/nagios/etc/import:

Code: Select all

mv /usr/local/nagios/etc/import/* /var/tmp/
Then try to apply config.

If that fails, do this:

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
- Once they are done being written, try to apply configuration.

If it fails with the same error, go to Configure > Core Config Manager > Services:
- Search for CWMPS03
- Edit each of the services and make sure it has a host selected under Manage Hosts (or a hostgroup) AND that all of them have a service_description defined.
- Save
- Apply Configuration

If all that doesn't fix it, do this:

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
- Once they are done being written (don't do anything in between, don't apply config or anything), run this command and send me the resulting /tmp/NAGIOSBADFILES.zip file:

Code: Select all

zip -r /tmp/NAGIOSBADFILES.zip /usr/local/nagios/etc
Thank you!
KumarP
Posts: 3
Joined: Wed Dec 30, 2020 4:40 am

Re: Apply Configuration Error

Post by KumarP »

Hi ssax,

Many thanks for your reply.

Unfortunately i am not able to PM you the files i have in /usr/local/nagios/etc/import as when i select 'Private Message' i am presented with the following message:

'We are sorry, but you are not authorised to use this feature. You may have just registered here and may need to participate more to be able to use this feature.

I can confirm that i have moved the files which were in the location /usr/local/nagios/etc/import to /var/tmp/ and i have been able to successfully apply the configuration now.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Apply Configuration Error

Post by benjaminsmith »

Hi @KumarP,

Can you try sending this once more? It should work now. The system requires a post count of 2 or higher to be able to send a PM.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
KumarP
Posts: 3
Joined: Wed Dec 30, 2020 4:40 am

Re: Apply Configuration Error

Post by KumarP »

Hi benjaminsmith,

Thanks for letting me know, I have just send a Private message to both yourself and ssax which included the files in the following location

/usr/local/nagios/etc/import/
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Apply Configuration Error

Post by ssax »

Replied via PM, please check your private messages.
Locked