Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103945 - Nagios 2.x installs 1.x nagios.cfg file
Summary: Nagios 2.x installs 1.x nagios.cfg file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-27 12:07 UTC by David Sparks
Modified: 2005-10-15 16:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Sparks 2005-08-27 12:07:21 UTC
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?
Comment 1 David Sparks 2005-08-27 14:25:09 UTC
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
Comment 2 Marco Morales 2005-10-15 16:21:00 UTC
Thanks David for your observation. Fix in cvs :)
Comment 3 Marco Morales 2005-10-15 16:21:35 UTC
fixed O_O