[Pkg-nagios-devel] Bug#283870: nagios-common: Config errors right after install

Olaf van der Spek Olaf van der Spek <OvdSpek@LIACS.NL>, 283870@bugs.debian.org
Mon, 29 Nov 2004 11:11:35 +0100


Package: nagios-common
Version: 2:1.3-0+pre4
Severity: normal

Hi,

I installed Nagios again, but not it shows errors in the (default) config:
# apt-get install nagios-mysql
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  nagios-common
  The following NEW packages will be installed:
    nagios-common nagios-mysql
    0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0B/2221kB of archives.
    After unpacking 5808kB of additional disk space will be used.
    Do you want to continue? [Y/n] 
    Preconfiguring packages ...
    Selecting previously deselected package nagios-mysql.                                                                              
    (Reading database ... 29451 files and directories currently installed.)
    Unpacking nagios-mysql (from .../nagios-mysql_2%3a1.3-0+pre4_i386.deb) ...
    Selecting previously deselected package nagios-common.
    Unpacking nagios-common (from .../nagios-common_2%3a1.3-0+pre4_all.deb) ...
    Setting up nagios-mysql (1.3-0+pre4) ...
    Setting up nagios-common (1.3-0+pre4) ...
    Reloading web server config...apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
    done.
    Adding password for user nagiosadmin
    Reloading nagios configuration files.
    
    Nagios 1.3
    Copyright (c) 1999-2004 Ethan Galstad (nagios@nagios.org)
    Last Modified: 10-24-2004
    License: GPL
    
    Reading configuration data...
    
    Error: Host 'gw' has already been defined
    
    Error: Could not register host (config file '/etc/nagios/hosts.cfg', line 35)
    
    
    ***> One or more problems was encountered while processing the config files...
    
         Check your configuration file(s) to ensure that they contain valid
	      directives and data defintions.  If you are upgrading from a previous
	           version of Nagios, you should be aware that some variables/definitions
		        may have been removed or modified in this version.  Make sure to read
			     the HTML documentation on the main and host config files, as well as the
			          'Whats New' section to find out what has changed.
				  
				  Errors in config file. Not reloading.
				  Starting nagios: 
				  Nagios 1.3
				  Copyright (c) 1999-2004 Ethan Galstad (nagios@nagios.org)
				  Last Modified: 10-24-2004
				  License: GPL
				  
				  Reading configuration data...
				  
				  Error: Host 'gw' has already been defined
				  
				  Error: Could not register host (config file '/etc/nagios/hosts.cfg', line 35)
				  
				  
				  ***> One or more problems was encountered while processing the config files...
				  
				       Check your configuration file(s) to ensure that they contain valid
				            directives and data defintions.  If you are upgrading from a previous
					         version of Nagios, you should be aware that some variables/definitions
						      may have been removed or modified in this version.  Make sure to read
						           the HTML documentation on the main and host config files, as well as the
							        'Whats New' section to find out what has changed.
								
								errors in config!

But I didn't find the first definition of gw.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-686-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages nagios-common depends on:
ii  adduser                     3.59         Add and remove users and groups
ii  apache2-mpm-prefork [httpd] 2.0.52-3     Traditional model for Apache2
ii  coreutils [fileutils]       5.2.1-2      The GNU core utilities
ii  debconf [debconf-2.0]       1.4.40       Debian configuration management sy
ii  mailutils [mailx]           1:0.5-4      GNU mailutils utilities for handli
ii  nagios-mysql [nagios]       2:1.3-0+pre4 A host/service/network monitoring 
ii  nagios-plugins              1.3.1.0-12   Plugins for the nagios network mon

-- debconf information:
* nagios/wwwsuid: true
  nagios/upgradefromnetsaint:
* nagios/configapache: Apache2