[Pkg-nagios-devel] Bug#314371: marked as done (nagios-common: Provided send_nsca script is wrong)

Debian Bug Tracking System owner at bugs.debian.org
Thu Jul 28 07:34:07 UTC 2005


Your message dated Wed, 27 Jul 2005 23:32:11 -0700
with message-id <E1Dy1wB-0002JD-00 at spohr.debian.org>
and subject line Bug#314371: fixed in nagios 2:1.3-cvs.20050402-5
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 15 Jun 2005 22:58:41 +0000
>From steve at lobefin.net Wed Jun 15 15:58:41 2005
Return-path: <steve at lobefin.net>
Received: from mail.lobefin.net [216.158.52.98] (Debian-exim)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DigqH-0005Ip-00; Wed, 15 Jun 2005 15:58:41 -0700
Received: from lobefin.net ([216.158.52.108] helo=gashuffer.lobefin.net)
	by mail.lobefin.net with asmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16)
	(Exim 4.34)
	id 1DigqF-0000X0-Us; Wed, 15 Jun 2005 18:58:40 -0400
Received: from steve by gashuffer.lobefin.net with local (Exim 4.51)
	id 1DigqF-0000qr-04; Wed, 15 Jun 2005 18:58:39 -0400
Date: Wed, 15 Jun 2005 18:58:38 -0400
From: Stephen Gran <sgran at debian.org>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: nagios-common:  Provided send_nsca script is wrong
Message-ID: <20050615225838.GA2465 at gashuffer.lobefin.net>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="y0ulUmNC+osPPQO6"
Content-Disposition: inline
X-Reportbug-Version: 3.12
X-Editor: VIM - Vi IMproved 6.3 
X-OS: Linux gashuffer 2.6.10-1-686-smp i686
X-Uptime: 11 days
X-Latin: Hodie decimo septimo Kalendas Iulias MMDCCLVIII ab urbe condita est
X-Date: Today is Sweetmorn, the 20th day of Confusion in the YOLD 3171
X-DDate: Only 2431075 Shopping Days Left Before X-Day. Kallisti! 
X-Motto: debian/rules
User-Agent: Mutt/1.5.9i
X-Authenticated-Sender: steve
X-Scanned-By: ClamAV at mail.lobefin.net
Delivered-To: submit at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 


--y0ulUmNC+osPPQO6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Package: nagios-common
Version: 2:1.3-cvs.20050402-2.sarge.1
Severity: wishlist
Tags: patch

Hello,

I have a nagios server that displays information gathered and forwarded
=66rom a second nagios server in a private subnet.  The one in the private
subnet uses send_nsca and the example script in
/usr/lib/nagios/plugins/eventhandlers/distributed-monitoring/submit_check_r=
esult_via_nsca
to send the results.

Unfortunately, this was resulting in all services and hosts being in the
OK state, even though the plugin output showed "timed out" or
"connection refused".  The prolem, it turns out, is that the
user-friendly WARNING/OK/etc messages need to be translated into a
numeric code so that nagios sees the actual status of the service.

A better sample is below:

--------------------------------------------------------------

#!/bin/sh

# Arguments:
#  $1 =3D host_name (Short name of host that the service is
#       associated with)
#  $2 =3D svc_description (Description of the service)
#  $3 =3D state_string (A string representing the status of
#       the given service - "OK", "WARNING", "CRITICAL"
#       or "UNKNOWN")
#  $4 =3D plugin_output (A text string that should be used
#       as the plugin output for the service checks)
#

# Convert the state string to the corresponding return code
return_code=3D-1

case "$3" in
        OK)
                return_code=3D0
                ;;
        WARNING)
                return_code=3D1
                ;;
        CRITICAL)
                return_code=3D2
                ;;
        UNKNOWN)
                return_code=3D-1
                ;;
esac

nagios_host=3D'my.nagios.host.tld'

# pipe the service check info into the send_nsca program, which
# in turn transmits the data to the nsca daemon on the central
# monitoring server

/usr/bin/printf "%s\t%s\t%s\t%s\n" "$1" "$2" "$return_code" "$4" | /usr/sbi=
n/send_nsca -c /etc/send_nsca.cfg -H $nagios_host

-------------------------------------------------------------------

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.10-1-686-smp
Locale: LANG=3DC, LC_CTYPE=3Den_US.ISO-8859-15 (charmap=3DISO-8859-15) (ign=
ored: LC_ALL set to en_US.ISO-8859-15)

Versions of packages nagios-common depends on:
ii  adduser     3.63                         Add and remove users and groups
ii  apache [htt 1.3.33-6                     versatile, high-performance HT=
TP s
ii  coreutils [ 5.2.1-2                      The GNU core utilities
ii  debconf [de 1.4.51                       Debian configuration managemen=
t sy
ii  mailx       1:8.1.2-0.20040524cvs-4      A simple mail user agent
ii  nagios-plug 1.4-6                        Plugins for the nagios network=
 mon
ii  nagios-text 2:1.3-cvs.20050402-2.sarge.1 A host/service/network monitor=
ing=20

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

--=20
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        sgran at debian.org |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------

--y0ulUmNC+osPPQO6
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCsLKeSYIMHOpZA44RAmTCAKCsw4TxIS64U0arJzIP/G5eWsuGNACgzNtv
OfJgso+UJwhdouuiHRrzPE0=
=bNVX
-----END PGP SIGNATURE-----

--y0ulUmNC+osPPQO6--

---------------------------------------
Received: (at 314371-close) by bugs.debian.org; 28 Jul 2005 07:10:15 +0000
>From katie at spohr.debian.org Thu Jul 28 00:10:15 2005
Return-path: <katie at spohr.debian.org>
Received: from katie by spohr.debian.org with local (Exim 3.36 1 (Debian))
	id 1Dy1wB-0002JD-00; Wed, 27 Jul 2005 23:32:11 -0700
From: sean finney <seanius at debian.org>
To: 314371-close at bugs.debian.org
X-Katie: $Revision: 1.56 $
Subject: Bug#314371: fixed in nagios 2:1.3-cvs.20050402-5
Message-Id: <E1Dy1wB-0002JD-00 at spohr.debian.org>
Sender: Archive Administrator <katie at spohr.debian.org>
Date: Wed, 27 Jul 2005 23:32:11 -0700
Delivered-To: 314371-close at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-CrossAssassin-Score: 2

Source: nagios
Source-Version: 2:1.3-cvs.20050402-5

We believe that the bug you reported is fixed in the latest version of
nagios, which is due to be installed in the Debian FTP archive:

nagios-common_1.3-cvs.20050402-5_all.deb
  to pool/main/n/nagios/nagios-common_1.3-cvs.20050402-5_all.deb
nagios-mysql_1.3-cvs.20050402-5_i386.deb
  to pool/main/n/nagios/nagios-mysql_1.3-cvs.20050402-5_i386.deb
nagios-pgsql_1.3-cvs.20050402-5_i386.deb
  to pool/main/n/nagios/nagios-pgsql_1.3-cvs.20050402-5_i386.deb
nagios-text_1.3-cvs.20050402-5_i386.deb
  to pool/main/n/nagios/nagios-text_1.3-cvs.20050402-5_i386.deb
nagios_1.3-cvs.20050402-5.diff.gz
  to pool/main/n/nagios/nagios_1.3-cvs.20050402-5.diff.gz
nagios_1.3-cvs.20050402-5.dsc
  to pool/main/n/nagios/nagios_1.3-cvs.20050402-5.dsc



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 314371 at bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
sean finney <seanius at debian.org> (supplier of updated nagios package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster at debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun, 24 Jul 2005 19:59:13 -0400
Source: nagios
Binary: nagios-pgsql nagios-text nagios-mysql nagios-common
Architecture: source i386 all
Version: 2:1.3-cvs.20050402-5
Distribution: unstable
Urgency: low
Maintainer: Debian Nagios Maintainer Group <pkg-nagios-devel at lists.alioth.debian.org>
Changed-By: sean finney <seanius at debian.org>
Description: 
 nagios-common - A host/service/network monitoring and management system
 nagios-mysql - A host/service/network monitoring and management system
 nagios-pgsql - A host/service/network monitoring and management system
 nagios-text - A host/service/network monitoring and management system
Closes: 314371 318864
Changes: 
 nagios (2:1.3-cvs.20050402-5) unstable; urgency=low
 .
   * Sean Finney:
     - updated README.pgsql to mention that you need to install the
       libdbd-pg-perl package before you can use check_nagios_db.  thanks
       to george b. for pointing this out (closes: #318864).
     - removed the upgrade scripts and all other references to netsaint,
       as now there's a full debian release between us and when netsaint
       was part of the archive.
     - thanks to cyril bouthors for politely pointing out that his
       last name is not "bouthers" but "bouthors".  sorry :)
     - a couple more "|| true" additions to chmod/chown on config
       files to cover cases where folks remove config files.
     - fix for distributed monitoring plugin submit_check_result_via_nsca
       to send the numeric status instead of the string representations,
       which lead to... interesting reuslts and general confusion.  thanks
       stephen gran for pointing this out (closes: #314371).
   * Guido Trotter:
     - Changed Guido's uploader's email
Files: 
 f76e0577f30e9fc7ebd09aaccf7a9c95 1021 net optional nagios_1.3-cvs.20050402-5.dsc
 9a711a406818aea04e1e4e2567cad768 80127 net optional nagios_1.3-cvs.20050402-5.diff.gz
 40a80e3b4aa0f39ac164d89e4661c3b7 901364 net optional nagios-text_1.3-cvs.20050402-5_i386.deb
 7677d9fa56f0645617a14f44c0cc4a9c 906514 net optional nagios-mysql_1.3-cvs.20050402-5_i386.deb
 9d7fab23aaf6b6f69280bda4e4493922 916958 net optional nagios-pgsql_1.3-cvs.20050402-5_i386.deb
 f60e24dc90ce275509bca4f3d2d97346 1214514 net optional nagios-common_1.3-cvs.20050402-5_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFC5C2TynjLPm522B0RAonxAJ47vaChPtG0OWlbAs/M36EX6PiodACfWuHz
YDkssuMF4llZQcV3CxigUgE=
=w1KH
-----END PGP SIGNATURE-----




More information about the Pkg-nagios-devel mailing list