Could not find any hostgroup matching 'linux-servers'

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Could not find any hostgroup matching 'linux-servers'

Postby guevarrajr » Wed Jun 09, 2021 5:23 am

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

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

Postby mcapra » Wed Jun 09, 2021 12:46 pm

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

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

Postby guevarrajr » Thu Jun 17, 2021 1:29 am

@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'

Postby guevarrajr » Thu Jun 17, 2021 4:22 am

Fixed this issue. you can now close. thanks
guevarrajr
 
Posts: 3
Joined: Sun Oct 11, 2015 8:15 am

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

Postby benjaminsmith » Thu Jun 17, 2021 4:18 pm

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!
User avatar
benjaminsmith
 
Posts: 4837
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul


Return to Community Support

Who is online

Users browsing this forum: Fess [Nagios Bot] and 40 guests