Could not find any hostgroup (but not specified)
Posted: Mon Feb 23, 2015 9:48 am
So I ran into a peculiar problem with Nagios XI the past few days. I've had several instances of XI picking up hostgroups that no longer exist in config files (neither in hostgroup configurations, nor hosts themselves). I've verified that the host, hostgroups the host uses, and services are not set to use the hostgroup, but CCM is still picking it up. Example:
Error: Could not find any hostgroup matching '04. group' (config file '/usr/local/nagios/etc/services/service_8089.cfg', starting on line 16)
Tried setting service to inactive in CCM, and hostgroup does not show up in configuration.
Setting it to active, then removing all hostgroups doesn't fix it.
Removing the service config in CCM doesn't fix it.
Restarting Nagios/Nagiosxi will apply other outstanding configs, but not fix this issue.
No configuration has been modified manually outside of CCM.
Server restart does not fix issue.
[root@nagios-xi-2 etc]# pwd
/usr/local/nagios/etc
[root@nagios-xi-2 etc]# find . -type f | xargs grep '04. group'
[root@nagios-xi-2 etc]#
[root@nagios-xi-2 services]# ls -l /usr/local/nagios/etc/services/service_8089.cfg
ls: cannot access /usr/local/nagios/etc/services/service_8089.cfg: No such file or directory
How do I prevent this/fix this?
Error: Could not find any hostgroup matching '04. group' (config file '/usr/local/nagios/etc/services/service_8089.cfg', starting on line 16)
Tried setting service to inactive in CCM, and hostgroup does not show up in configuration.
Setting it to active, then removing all hostgroups doesn't fix it.
Removing the service config in CCM doesn't fix it.
Restarting Nagios/Nagiosxi will apply other outstanding configs, but not fix this issue.
No configuration has been modified manually outside of CCM.
Server restart does not fix issue.
[root@nagios-xi-2 etc]# pwd
/usr/local/nagios/etc
[root@nagios-xi-2 etc]# find . -type f | xargs grep '04. group'
[root@nagios-xi-2 etc]#
[root@nagios-xi-2 services]# ls -l /usr/local/nagios/etc/services/service_8089.cfg
ls: cannot access /usr/local/nagios/etc/services/service_8089.cfg: No such file or directory
How do I prevent this/fix this?