Page 1 of 3

"Apply Configuration" not more possible

Posted: Wed Feb 13, 2019 8:49 am
by scharft
today i found out that any changes to a standard check "MOUNT_Var" or "MOUNT_Data" result in config error:

Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/_std-linux_mount.cfg', starting on line 102)
Error: Host escalation host name is NULL
Error: Could not register host escalation (config file '/usr/local/nagios/etc/hostescalations.cfg', starting on line 16)

i tried to fix it with the config file management, no chance.
Making changes to other services are successful.

any idea?

Re: "Apply Configuration" not more possible

Posted: Wed Feb 13, 2019 12:16 pm
by benjaminsmith
Hi @scharft,

It looks like your missing the name description for your host escalation, please try to correct this, go to Configure > CCM >Alerting > Host Escalations.

When that's done, go to Configure >CCM >Tools > Config File Management and follow these steps:

1. Delete Files
2. Write Configs
3. Verify ( Are there any errors? If so correct them and repeat steps 1 and 2)
4. Restart Nagios Core

Let me know if you get it resolved.

Re: "Apply Configuration" not more possible

Posted: Fri Feb 15, 2019 5:15 am
by scharft
no, i'm in a config error loop, everytime i fix the "host matching" and do the needful in the CCM, i got the same error message with a new host.
How to fix the hostgroup, host escalation.cfg i don't know, please provide steps.


Error: Could not find any host matching '369AV1001' (config file '/usr/local/nagios/etc/hostgroups.cfg', starting on line 1647)
Error: Could not expand members specified in hostgroup (config file '/usr/local/nagios/etc/hostgroups.cfg', starting on line 1647)
Error: Host escalation host name is NULL
Error: Could not register host escalation (config file '/usr/local/nagios/etc/hostescalations.cfg', starting on line 16)

Nagios Core 4.4.3
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2019-01-15
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Could not find any host matching '369AV1001' (config file '/usr/local/nagios/etc/hostgroups.cfg', starting on line 1647)
Error: Could not expand members specified in hostgroup (config file '/usr/local/nagios/etc/hostgroups.cfg', starting on line 1647)
Error: Host escalation host name is NULL
Error: Could not register host escalation (config file '/usr/local/nagios/etc/hostescalations.cfg', starting on line 16)
Error processing object config files!


***> One or more problems was encountered while processing the config files...

Check your configuration file(s) to ensure that they contain valid
directives and data definitions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config file

Re: "Apply Configuration" not more possible

Posted: Fri Feb 15, 2019 11:43 am
by benjaminsmith
Hi @scharft,

Can you send us your system profile so we can review your configurations.

To Send Your System Profile:
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and upload it to a cloud storage of your choice and share the link or send me the profile in a private message.

After you upload the profile please post something in this thread to bring it up in the support queue.

Re: "Apply Configuration" not more possible

Posted: Mon Feb 18, 2019 6:50 am
by scharft
the profile is attached

Re: "Apply Configuration" not more possible

Posted: Mon Feb 18, 2019 3:09 pm
by benjaminsmith
Hello @sharft,

After reviewing your configuration files, I have a few suggestions:

1. I'm not able locate 369AV1001 anywhere in your configurations files. Can you go to the Configure > CCM > Monitoring > Hosts and search for this hosts from the text box in the upper right-hand side, and remove this host and Apply Configuration. If you get any errors, please post the output.

2. It looks like you have or are importing configuration files from another system, did you have any issues with that process? If so, there is a specific order to importing configurations.

Re: "Apply Configuration" not more possible

Posted: Tue Feb 19, 2019 5:17 am
by scharft
Hi,

the host "369AV1001" is not in the the list => No results returned from host table.

We don't import config files from another system, this is our main system. We use a nagios worker, can this be the issue?

Re: "Apply Configuration" not more possible

Posted: Tue Feb 19, 2019 8:07 am
by scottwilkerson
Are there any files in here?

Code: Select all

ls -al /usr/local/nagios/etc/import

Re: "Apply Configuration" not more possible

Posted: Tue Feb 26, 2019 8:41 am
by scharft
[root@atvinag003 scripts]# ls -al /usr/local/nagios/etc/import
total 8
drwxrwxr-x 2 apache nagios 4096 Feb 6 09:57 .
drwxrwxr-x 9 apache nagios 4096 Feb 19 14:58 ..

Re: "Apply Configuration" not more possible

Posted: Tue Feb 26, 2019 11:27 am
by scottwilkerson
Can you run the following

Code: Select all

grep 369AV1001 -R /usr/local/nagios/etc