[Nagios-devel] Problems with Nagios 2.0b4 config file reader

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] Problems with Nagios 2.0b4 config file reader

Post by Guest »

------=_Part_20654_4307442.1133213164761
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

I have been working to convert my config files from 1.x to 2.0 standards.
One new feature that I wanted to take advantage of was the ability to assig=
n
a host to a hostgroup inside of the host definition using the hostgroups
directive. After much work converting my files I was getting errors when
running the "nagios -v nagios.cfg" check. Nagios complained of no members i=
n
certain hostgroups:


[root@cassini base]# ./nagios -v /opt/nagios/etc/2.0/nagios.cfg



Reading configuration data...

Error: Hostgroup has no members (config file
'/opt/nagios/etc/2.0/hosts/hostgroups.cfg', starting on line 21)

***> One or more problems was encountered while processing the config
files...


This was completely bogus. I figured out (by process of serious
elimination) that on certain hosts Nagios didn't want me to use multiple
hostgroups directives (I had been using 2 directives...but using 1
hostgroups directive it worked). I can send you a copy of the config files
or whatever you would need to squash the bug.

~Scottie Thompson

------=_Part_20654_4307442.1133213164761
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

I have been working to convert my config files from 1.x to 2.0 standar=
ds. One new feature that I wanted to take advantage of was the ability to a=
ssign a host to a hostgroup inside of the host definition using the hostgro=
ups directive. After much work converting my files I was getting error=
s when running the "nagios -v=20
nagios.cfg" check. Nagios complained of no members in certain hos=
tgroups:
 

[root@cassini base]# ./nagios -v /opt/nagios/etc/2.0/nagios.cfg
<snip>
Reading configuration data...
Error: Hostgroup has no members (config file '/opt/nagios/etc/2.0/hosts/=
hostgroups.cfg', starting on line 21)
***> One or more problems was encountered while processing the config=
files...
</snip>
 
 This was completely bogus. I figured out (by process of serious =
elimination) that on certain hosts Nagios didn't want me to use multiple ho=
stgroups directives (I had been using 2 directives...but using&nb=
sp;1 hostgroups directive it worked). I can send you a copy of the con=
fig files or whatever you would need to squash the bug.=20

 
~Scottie Thompson

------=_Part_20654_4307442.1133213164761--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked