Page 1 of 1
Could not find any hostgroup matching 'linux-servers'
Posted: Wed Jun 09, 2021 5:23 am
by guevarrajr
Hi Guys,
Nagios core 4.1.1 suddenly having an issue when restarting the nagios service with the below error:
Error: Could not find any hostgroup matching 'linux-server' (config file '/usr/local/nagios/etc/objects/windowserver.cfg', starting on line 14)
I checked the templates.cfg and the linux-servers hostgroup exist there.
Any help is much appreciated.
Thanks
JunG
Re: Could not find any hostgroup matching 'linux-servers'
Posted: Wed Jun 09, 2021 12:46 pm
by mcapra
guevarrajr wrote:
Error: Could not find any hostgroup matching 'linux-server' (config file '/usr/local/nagios/etc/objects/windowserver.cfg', starting on line 14)
I checked the templates.cfg and the linux-servers hostgroup exist there.
But the error is looking for
linux-server singular, not
linux-servers plural?
You'd also need to be sure that
templates.cfg is included in your main
nagios.cfg file -- either via a
cfg_file or
cfg_dir directive:
https://assets.nagios.com/downloads/nag ... gmain.html
Re: Could not find any hostgroup matching 'linux-servers'
Posted: Thu Jun 17, 2021 1:29 am
by guevarrajr
@mcapra,
thanks for the reply.
"But the error is looking for linux-server singular, not linux-servers plural?" sorry it's a typo error it should be 'linux-
servers.
The template.cfg is defined in nagios.cfg.
Thanks.
Re: Could not find any hostgroup matching 'linux-servers'
Posted: Thu Jun 17, 2021 4:22 am
by guevarrajr
Fixed this issue. you can now close. thanks
Re: Could not find any hostgroup matching 'linux-servers'
Posted: Thu Jun 17, 2021 4:18 pm
by benjaminsmith
Fixed this issue. you can now close. thanks
Excellent! Thank you for using the Nagios Community Forum.