Page 1 of 1

CCM Apply error

Posted: Tue Feb 23, 2021 11:07 pm
by RwynneZAS
When I try to Apply changes in CCM, it fails with this error:

Error: Could not find a service matching host name '[server name]' and description 'HTTP' (config file '/usr/local/nagios/etc/servicegroups.cfg', starting on line 35)

Error: Could not expand members specified in servicegroup 'sla-uptime-all-hosts' (config file '/usr/local/nagios/etc/servicegroups.cfg', starting at line 35)

but when I look at line 35 of servicegroups.cfg, I don't see that hostname referenced anywhere, and it's not referenced when I go to the service groups config in the web space either. Not sure what's going on here or how to get rid of it.

Re: CCM Apply error

Posted: Wed Feb 24, 2021 10:26 am
by scottwilkerson
Can you go to CCM -> Service Groups and click the "View config" icon next to one of the groups and PM me the results?

Re: CCM Apply error

Posted: Wed Feb 24, 2021 3:13 pm
by scottwilkerson
I've looked at the config and do not see the host erroring in the config, which leads me to believe this could possible be caused by something else

Are there any files in this location?

Code: Select all

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

Re: CCM Apply error

Posted: Wed Feb 24, 2021 3:15 pm
by scottwilkerson
also, can you try the following
Configure -> Core Config Manager -> Tools -> Config File Management
Click Delete Files
Click Write Configs
Click Verify Files

And let me know if there are any errors

Re: CCM Apply error

Posted: Wed Feb 24, 2021 3:31 pm
by RwynneZAS
The Delete/Write/Verify cycle went fine.

Sent a PM regarding contents of import directory.

Thanks!

Re: CCM Apply error

Posted: Wed Feb 24, 2021 4:30 pm
by scottwilkerson
RwynneZAS wrote: Sent a PM regarding contents of import directory.

Thanks!
This is likely the problem

Lets run the following

Code: Select all

rm -f /usr/local/nagios/etc/import/*
then the Apply Config should go well

Re: CCM Apply error

Posted: Wed Feb 24, 2021 4:54 pm
by RwynneZAS
Yep, that was it.

(What a weird error expression. I would never have found that based on the error message...)

Thanks so much!!

Re: CCM Apply error

Posted: Wed Feb 24, 2021 5:54 pm
by scottwilkerson
RwynneZAS wrote:Yep, that was it.

(What a weird error expression. I would never have found that based on the error message...)

Thanks so much!!
Locking thread