Problem applying config

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Problem applying config

Post by andrewatmacys »

Currently getting this error on attempt to apply config:

Error: Could not expand members specified in hostgroup (config file '/usr/local/nagios/etc/hostgroups.cfg', starting on line 3941)

I've deleted and rewritten the configs to get rid of any weirdness that might be hanging it up, but on verifying it prompts with this error. Any help is appreciated, thanks!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Problem applying config

Post by lmiltchev »

It is possible that you have a missing host (member) or "empty" hostgroup, added as a member to another hostgroup. What do you see in '/usr/local/nagios/etc/hostgroups.cfg' on line 3941?

Can you go to the CCM > Quick Tools > Configuration Snapshots, download the latest failed snapshot (in red), and PM it to me (or any other member of the Nagios Support team)?

Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Problem applying config

Post by lmiltchev »

@andrewatmacys, let us know if it is ok to lock this topic as the issue has been resolved. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Problem applying config

Post by lmiltchev »

Before locking this topic, I would like to mention that the issue was caused by hostgroups with no members.

Example:

Code: Select all

define hostgroup{
	hostgroup_name	hostgroup_name
	alias	alias
	members	<blank>	
   	}
Hope this would help other Nagios XI users, having similar issues.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked