Page 1 of 1

NagiosQL bug

Posted: Fri Sep 09, 2011 2:06 pm
by arnab.roy
Hi All,

I have potential issue, where if I make a hostgroup(say abcd) a member of another hostgroup(say bcdf) the configuration errors and gives an unrelated error like this Could not expand members specified in hostgroup (config file '/usr/local/nagios/etc/hostgroups.cfg', starting on line 14) .

Can you guys quickly have a look what might be causing this, this is pretty urgent.

I am running r1.7
Many Thanks

Arnab

Re: NagiosQL bug

Posted: Fri Sep 09, 2011 4:05 pm
by mguthrie
Can you click the "Download" button the hostgroups page and show the config that it's generating?

I've seen that error when it prints a "members" field, with no values afterwards.

Re: NagiosQL bug

Posted: Sun Sep 11, 2011 1:12 pm
by arnab.roy
Hi Mike,

You are right it seems like if a hostgroup doesnt have a member i.e. no hosts attached to it and you try and make an empty hostgroup a member of another empty hostgroup it flips out , should it behave this way in core nagios I remember being able to do this!

Cheers
Arnab

Re: NagiosQL bug

Posted: Mon Sep 12, 2011 9:37 am
by mguthrie
It's actually the Nagios Core verification that's failing at that stage. I'm wondering if in Core 3.2+ you're not able to do this...