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.
CCM Apply error
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: CCM Apply error
Can you go to CCM -> Service Groups and click the "View config" icon next to one of the groups and PM me the results?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: CCM Apply error
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?
Are there any files in this location?
Code: Select all
ls -l /usr/local/nagios/etc/import-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: CCM Apply error
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
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
The Delete/Write/Verify cycle went fine.
Sent a PM regarding contents of import directory.
Thanks!
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
This is likely the problemRwynneZAS wrote: Sent a PM regarding contents of import directory.
Thanks!
Lets run the following
Code: Select all
rm -f /usr/local/nagios/etc/import/*Re: CCM Apply error
Yep, that was it.
(What a weird error expression. I would never have found that based on the error message...)
Thanks so much!!
(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
Locking threadRwynneZAS wrote:Yep, that was it.
(What a weird error expression. I would never have found that based on the error message...)
Thanks so much!!