The nagios-core ebuild installs a config file that is only suitable for a 1.x version of nagios. Reproducible: Always Steps to Reproduce: 1. emerge nagios 2. look in /usr/share/nagios-core*/sample_configs 3. nagios.cfg is a 1.x version Actual Results: nagios wont start: Error in configuration file '/etc/nagios/nagios.cfg' - Line 324 (UNKNOWN VARIABLE) Expected Results: work?
The stock nagios.cfg works perfectly. I also don't see what value the annotations to the 1.x config file added? This fixes the problem and gets a working nagios2.x running: --- nagios-core-2.0b_p2.ebuild.orig 2005-08-27 14:16:08.021384088 -0700 +++ nagios-core-2.0b_p2.ebuild 2005-08-27 14:21:06.204053432 -0700 @@ -52,7 +52,6 @@ unpack ${A} cd ${S} epatch ${FILESDIR}/2.x-series-nsca.patch - gunzip -c ${FILESDIR}/nagios.cfg-sample.gz > ./nagios.cfg-sample } src_compile() { @@ -118,8 +117,6 @@ dodoc ${D}/etc/nagios/* rm ${D}/etc/nagios/* - dodoc ${S}/nagios.cfg-sample - exeinto /etc/init.d doexe ${FILESDIR}/nagios
Thanks David for your observation. Fix in cvs :)
fixed O_O