Could not find any hostgroup matching 'linux-servers'

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
guevarrajr
Posts: 3
Joined: Sun Oct 11, 2015 8:15 am

Could not find any hostgroup matching 'linux-servers'

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Could not find any hostgroup matching 'linux-servers'

Post 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
Former Nagios employee
https://www.mcapra.com/
guevarrajr
Posts: 3
Joined: Sun Oct 11, 2015 8:15 am

Re: Could not find any hostgroup matching 'linux-servers'

Post 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.
guevarrajr
Posts: 3
Joined: Sun Oct 11, 2015 8:15 am

Re: Could not find any hostgroup matching 'linux-servers'

Post by guevarrajr »

Fixed this issue. you can now close. thanks
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Could not find any hostgroup matching 'linux-servers'

Post by benjaminsmith »

Fixed this issue. you can now close. thanks
Excellent! Thank you for using the Nagios Community Forum.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked