[Pkg-nagios-devel] Bug#479044: nagios3: incorrect error message for duplicate service on host

Stephane Chazelas stephane at artesyncp.com
Fri May 2 12:39:16 UTC 2008


Package: nagios3
Version: 3.0.1-1
Severity: minor


When a service for a given host is duplicated, one gets this
kind of error message:

Duplicate definition found for service 'localhost' on host 'DNS:
spider.com' (config file '/etc/nagios3/conf.d/ant.cfg', starting
on line 111)

There's obviously a bit of a mix up here.

Patch:
--- ./xdata/xodtemplate.c~	2008-05-02 13:32:23.000000000 +0100
+++ ./xdata/xodtemplate.c	2008-05-02 13:32:47.000000000 +0100
@@ -5212,7 +5212,7 @@ int xodtemplate_duplicate_services(void)
 		switch(result){
 		case SKIPLIST_ERROR_DUPLICATE:
 #ifdef NSCORE
-			logit(NSLOG_CONFIG_WARNING,TRUE,"Warning: Duplicate definition found for service '%s' on host '%s' (config file '%s', starting on line %d)\n",temp_service->host_name,temp_service->service_description,xodtemplate_config_file_name(temp_service->_config_file),temp_service->_start_line);
+			logit(NSLOG_CONFIG_WARNING,TRUE,"Warning: Duplicate definition found for service '%s' on host '%s' (config file '%s', starting on line %d)\n",temp_service->service_description,temp_service->host_name,xodtemplate_config_file_name(temp_service->_config_file),temp_service->_start_line);
 #endif
 			result=ERROR;
 			break;

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24.2
Locale: LANG=en_GB.ISO-8859-15, LC_CTYPE=en_GB.ISO-8859-15 (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages nagios3 depends on:
ii  libc6                  2.7-10            GNU C Library: Shared libraries
ii  libgd2-xpm             2.0.36~rc1~dfsg-2 GD Graphics Library version 2
ii  libglib2.0-0           2.16.3-2          The GLib library of C routines
ii  libjpeg62              6b-14             The Independent JPEG Group's JPEG 
ii  libperl5.8             5.8.8-12          Shared Perl library
ii  libpng12-0             1.2.26-1          PNG library - runtime
ii  nagios3-common         3.0.1-1           support files for nagios3
ii  perl                   5.8.8-12          Larry Wall's Practical Extraction 
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

nagios3 recommends no packages.

-- no debconf information





More information about the Pkg-nagios-devel mailing list