CCM Apply error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
RwynneZAS
Posts: 22
Joined: Thu Mar 15, 2018 4:21 pm

CCM Apply error

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

Re: CCM Apply error

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: CCM Apply error

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: CCM Apply error

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
RwynneZAS
Posts: 22
Joined: Thu Mar 15, 2018 4:21 pm

Re: CCM Apply error

Post by RwynneZAS »

The Delete/Write/Verify cycle went fine.

Sent a PM regarding contents of import directory.

Thanks!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: CCM Apply error

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
RwynneZAS
Posts: 22
Joined: Thu Mar 15, 2018 4:21 pm

Re: CCM Apply error

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

Re: CCM Apply error

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked