Neverending Apply Configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Neverending Apply Configuration

Post by emartine »

I used the bulk renaming tool to change several hosts names from uppercase to lower case without applying the configuration until I had fixed all 3 entries. I then attempted to apply the configuration and it never completes.

I do eventually get

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.


Error: Service description, host name, or check command is NULL
Error: Could not register service (config file '/usr/local/nagios/etc/services/UCMCOPPH-1-2.cfg', starting on line 16)

I am unable to find a service for UCMCOPPH-1-2 however.

I do see a server but no services. Any ideas?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Neverending Apply Configuration

Post by lmiltchev »

What is the version of Nagios XI that you are currently using?

Do you see any config errors if you go to CCM > Tools > Config File Management, and click on the following buttons (in exact same order): Delete Files, Write Configs, Verify Files?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Neverending Apply Configuration

Post by emartine »

Error: Service description, host name, or check command is NULL

Error: Could not register service (config file '/usr/local/nagios/etc/services/UCMCOPPH-1-2.cfg', starting on line 16)


There is no file called UCMCOPPH-1-2.cfg
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Neverending Apply Configuration

Post by emartine »

Checking the config file management verify files I get:


Error: Could not find any host matching 'OBIXSQLDR01DAR' (config file '/usr/local/nagios/etc/hostgroups.cfg', starting on line 865)
Error: Could not expand members specified in hostgroup (config file '/usr/local/nagios/etc/hostgroups.cfg', starting on line 865)
Error: Service 'CLSV34533' on host 'Uptime' has an escalation but is not defined anywhere!
Error: Could not register service escalation (config file '/usr/local/nagios/etc/serviceescalations.cfg', starting on line 639)



A co-worker told me that they had used the bulk rename tool for obixsqldr01dar. I checked the configuration file /usr/local/nagios/etc/hostgroups.cfg and sure enough this old name is still part of this group.

I have deactivated service escalations on CLSV34533 bu still these errors come up.
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Neverending Apply Configuration

Post by emartine »

Nagios XI 5.4.4 is the latest version of Nagios. This was upgraded from an older version
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Neverending Apply Configuration

Post by avandemore »

From XI > Configure > CCM > Configuration Snapshots

Please attach the most recent Config Error snapshot as well as the text from the View Command Output link in the same row.
Previous Nagios employee
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Neverending Apply Configuration

Post by emartine »

avandemore wrote:From XI > Configure > CCM > Configuration Snapshots

Please attach the most recent Config Error snapshot as well as the text from the View Command Output link in the same row.

I will PM them to you
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Neverending Apply Configuration

Post by avandemore »

I received your information. There is some strange output in the address field for that host. Is there some encoding issues in involved? Can you input just a plain IP address there?
Previous Nagios employee
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Neverending Apply Configuration

Post by emartine »

I created another host object and that seems to have fixed the issue. I am not sure why there is an encoding issue.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Neverending Apply Configuration

Post by avandemore »

Thanks for using Nagios! If you have further issues, please open a new thread or ticket.
Previous Nagios employee
Locked