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
Could not find any hostgroup matching 'linux-servers'
-
- Posts: 3
- Joined: Sun Oct 11, 2015 8:15 am
Re: Could not find any hostgroup matching 'linux-servers'
But the error is looking for linux-server singular, not linux-servers plural?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.
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/
https://www.mcapra.com/
-
- Posts: 3
- Joined: Sun Oct 11, 2015 8:15 am
Re: Could not find any hostgroup matching 'linux-servers'
@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.
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.
-
- Posts: 3
- Joined: Sun Oct 11, 2015 8:15 am
Re: Could not find any hostgroup matching 'linux-servers'
Fixed this issue. you can now close. thanks
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Could not find any hostgroup matching 'linux-servers'
Excellent! Thank you for using the Nagios Community Forum.Fixed this issue. you can now close. thanks
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!