"Apply Configuration" not more possible

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scharft
Posts: 112
Joined: Wed Jul 29, 2015 6:55 am

"Apply Configuration" not more possible

Post 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?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: "Apply Configuration" not more possible

Post 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.
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!
scharft
Posts: 112
Joined: Wed Jul 29, 2015 6:55 am

Re: "Apply Configuration" not more possible

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: "Apply Configuration" not more possible

Post 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.
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!
scharft
Posts: 112
Joined: Wed Jul 29, 2015 6:55 am

Re: "Apply Configuration" not more possible

Post by scharft »

the profile is attached
Last edited by benjaminsmith on Mon Feb 18, 2019 11:10 am, edited 1 time in total.
Reason: profile saved
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: "Apply Configuration" not more possible

Post 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.
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!
scharft
Posts: 112
Joined: Wed Jul 29, 2015 6:55 am

Re: "Apply Configuration" not more possible

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: "Apply Configuration" not more possible

Post by scottwilkerson »

Are there any files in here?

Code: Select all

ls -al /usr/local/nagios/etc/import
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scharft
Posts: 112
Joined: Wed Jul 29, 2015 6:55 am

Re: "Apply Configuration" not more possible

Post 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 ..
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: "Apply Configuration" not more possible

Post by scottwilkerson »

Can you run the following

Code: Select all

grep 369AV1001 -R /usr/local/nagios/etc
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked