[Pkg-nagios-devel] Bug#689960: nagios-plugins-basic: Please add support for loading openssl configuration (for engines support, etc)

Max Kosmach max at tcen.ru
Mon Oct 8 12:15:16 UTC 2012


Package: nagios-plugins-basic
Version: 1.4.16-1
Severity: normal
Tags: patch upstream

Current check_http and other ssl-enabled check doesn't support loading of openssl configuration.

Please add pacth below to enable loading default configuration.
Patches based on CryptoCom patches of other ssl-enabled software (http://cryptocom.ru/opensource/index.html)

Patch:

diff -urN nagios-plugins-1.4.16.current/plugins/sslutils.c nagios-plugins-1.4.16/plugins/sslutils.c
--- nagios-plugins-1.4.16.current/plugins/sslutils.c    2012-06-27 21:32:47.000000000 +0400
+++ nagios-plugins-1.4.16/plugins/sslutils.c    2012-10-08 16:04:01.000000000 +0400
@@ -71,6 +71,9 @@
        }
        if (!initialized) {
                /* Initialize SSL context */
+#if OPENSSL_VERSION_NUMBER >= 0x00907000
+               OPENSSL_config(NULL);
+#endif
                SSLeay_add_ssl_algorithms();
                SSL_load_error_strings();
                OpenSSL_add_all_algorithms();
diff -urN nagios-plugins-1.4.16.current/plugins/common.h nagios-plugins-1.4.16/plugins/common.h
--- nagios-plugins-1.4.16.current/plugins/common.h      2012-06-27 21:32:47.000000000 +0400
+++ nagios-plugins-1.4.16/plugins/common.h      2012-10-08 16:03:16.000000000 +0400
@@ -156,6 +156,9 @@
 #      include <openssl/pem.h>
 #      include <openssl/ssl.h>
 #      include <openssl/err.h>
+#if OPENSSL_VERSION_NUMBER >= 0x00907000
+#include <openssl/conf.h>
+#endif
 #    endif
 #  endif
 #endif



-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-3-686-pae (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages nagios-plugins-basic depends on:
ii  iputils-ping           3:20101006-1+b1
ii  libc6                  2.13-35
ii  libssl1.0.0            1.0.1c-4
ii  nagios-plugins-common  1.4.16-1
ii  procps                 1:3.3.3-2
ii  ucf                    3.0025+nmu3

nagios-plugins-basic recommends no packages.

Versions of packages nagios-plugins-basic suggests:
ii  nagios3  3.4.1-2

-- Configuration Files:
/etc/nagios-plugins/config/dhcp.cfg changed [not included]
/etc/nagios-plugins/config/disk-smb.cfg changed [not included]
/etc/nagios-plugins/config/disk.cfg changed [not included]
/etc/nagios-plugins/config/dummy.cfg changed [not included]
/etc/nagios-plugins/config/fping.cfg changed [not included]
/etc/nagios-plugins/config/ftp.cfg changed [not included]
/etc/nagios-plugins/config/http.cfg changed [not included]
/etc/nagios-plugins/config/load.cfg changed [not included]
/etc/nagios-plugins/config/mail.cfg changed [not included]
/etc/nagios-plugins/config/news.cfg changed [not included]
/etc/nagios-plugins/config/ntp.cfg changed [not included]
/etc/nagios-plugins/config/ping.cfg changed [not included]
/etc/nagios-plugins/config/procs.cfg changed [not included]
/etc/nagios-plugins/config/real.cfg changed [not included]
/etc/nagios-plugins/config/rpc-nfs.cfg changed [not included]
/etc/nagios-plugins/config/ssh.cfg changed [not included]
/etc/nagios-plugins/config/tcp_udp.cfg changed [not included]
/etc/nagios-plugins/config/telnet.cfg changed [not included]
/etc/nagios-plugins/config/users.cfg changed [not included]

-- no debconf information



More information about the Pkg-nagios-devel mailing list