[Pkg-nagios-devel] Bug#342017: send_nsca looking for config file in current directory

Juraj Bednar juraj.nospam at bednar.sk
Mon Dec 5 04:00:09 UTC 2005


Package: nsca
Version: 2.4-4
Severity: minor
Tags: patch


send_nsca looks for config file in current directory instead of
/etc/send_nsca.cfg (this is the default mentioned in send_nsca manpage
and the location of package generated configuration file). This patch
makes the software conform to documentation, package and common sense.

--- send_nsca.c.orig    2005-12-05 03:56:50.000000000 +0000
+++ send_nsca.c 2005-12-05 03:56:59.000000000 +0000
@@ -25,7 +25,7 @@
 int server_port=DEFAULT_SERVER_PORT;
 char server_name[MAX_HOST_ADDRESS_LENGTH];
 char password[MAX_INPUT_BUFFER]="";
-char config_file[MAX_INPUT_BUFFER]="send_nsca.cfg";
+char config_file[MAX_INPUT_BUFFER]="/etc/send_nsca.cfg";
 char delimiter[2]="\t";

 char received_iv[TRANSMITTED_IV_SIZE];

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.14-rc3-mppe-jb1
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages nsca depends on:
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libmcrypt4                  2.5.7-5      De-/Encryption Library

-- no debconf information




More information about the Pkg-nagios-devel mailing list