Page 1 of 1

Problem applying config

Posted: Mon Mar 12, 2018 10:22 am
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!

Re: Problem applying config

Posted: Mon Mar 12, 2018 10:38 am
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!

Re: Problem applying config

Posted: Mon Mar 12, 2018 1:25 pm
by lmiltchev
@andrewatmacys, let us know if it is ok to lock this topic as the issue has been resolved. Thank you!

Re: Problem applying config

Posted: Mon Mar 12, 2018 2:11 pm
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.