Your message dated Sun, 01 Feb 2009 03:02:05 +0000
with message-id <[email protected]>
and subject line Bug#387001: fixed in nagios-plugins 1.4.12-5
has caused the Debian Bug report #387001,
regarding nagios-plugins-basic: check_ups doesn't disconnect cleanly
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
387001: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=387001
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: nagios-plugins-basic
Version: 1.4.3.0cvs.20060707-2bpo1
Severity: normal

Hi,

everytime check_ups connects to my upsd, the following line is left in
my syslog:

Sep 11 17:39:09 holly upsd[15381]: Host 127.0.0.1 disconnected (read failure)

What happens is that check_ups drops the connection to upsd as soon as
it has queried for a variable. upsd expects 'LOGOUT' before terminating
the connection, and happily writes "Client on 127.0.0.1 logged out" to
syslog if it sees it.

This is slightly annoying in conjunction with tools like logcheck: While
I'm quite happy to ignore the "logged out" line in a upsd-specific rule, the
word "failure" triggers a global logcheck rule and notifies me hour for
hour.

A quick hack is to add "LOGOUT\n" to the query string:

---------------------------------------8<---------------------------------------
--- check_ups.c (revision 2)
+++ check_ups.c (local)
@@ -399,7 +399,7 @@
        *buf=0;
        
        /* create the command string to send to the UPS daemon */
-       sprintf (send_buffer, "GET VAR %s %s\n", ups_name, varname);
+       sprintf (send_buffer, "GET VAR %s %s\nLOGOUT\n", ups_name, varname);
 
        /* send the command to the daemon and get a response back */
        if (process_tcp_request
---------------------------------------8<---------------------------------------

Now, I always get the "logged out" syslog entry, but every now and then,
check_ups fails to parse the response. I guess there is a race condition
between check_ups parsing the answer to the GET VAR query and upsd
answering the LOGOUT query.

Cheers, Til


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.16-2-686-smp
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages nagios-plugins-basic depends on:
ii  iputils-ping          3:20020927-2       Tools to test the reachability of 
ii  libc6                 2.3.2.ds1-22sarge4 GNU C Library: Shared libraries an
ii  libssl0.9.7           0.9.7e-3sarge2     SSL shared libraries
ii  procps                1:3.2.1-2          The /proc file system utilities

-- no debconf information


--- End Message ---
--- Begin Message ---
Source: nagios-plugins
Source-Version: 1.4.12-5

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

nagios-plugins-basic_1.4.12-5_i386.deb
  to pool/main/n/nagios-plugins/nagios-plugins-basic_1.4.12-5_i386.deb
nagios-plugins-standard_1.4.12-5_i386.deb
  to pool/main/n/nagios-plugins/nagios-plugins-standard_1.4.12-5_i386.deb
nagios-plugins_1.4.12-5.diff.gz
  to pool/main/n/nagios-plugins/nagios-plugins_1.4.12-5.diff.gz
nagios-plugins_1.4.12-5.dsc
  to pool/main/n/nagios-plugins/nagios-plugins_1.4.12-5.dsc
nagios-plugins_1.4.12-5_all.deb
  to pool/main/n/nagios-plugins/nagios-plugins_1.4.12-5_all.deb



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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jan Wagner <[email protected]> (supplier of updated nagios-plugins 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 [email protected])


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

Format: 1.8
Date: Fri, 30 Jan 2009 22:50:35 +0100
Source: nagios-plugins
Binary: nagios-plugins nagios-plugins-basic nagios-plugins-standard
Architecture: source all i386
Version: 1.4.12-5
Distribution: unstable
Urgency: low
Maintainer: Debian Nagios Maintainer Group 
<[email protected]>
Changed-By: Jan Wagner <[email protected]>
Description: 
 nagios-plugins - Plugins for the nagios network monitoring and management 
system
 nagios-plugins-basic - Plugins for the nagios network monitoring and 
management system
 nagios-plugins-standard - Plugins for the nagios network monitoring and 
management system
Closes: 387001 395389 505610
Changes: 
 nagios-plugins (1.4.12-5) unstable; urgency=low
 .
   * add missing auth pair parameter to check_https_auth_hostname* command
     definitions
   * changing check_cups command to use host headers anymore, since cups changed
     it's behavior in etch, thanks Maximilian Gass (Closes: #505610)
   * add -e to all preconfigured check commands using check_disk, to only 
display
     effected partitions, when warning or critical, thanks to
     Filip Van Raemdonck and Jacob L. Anawalt (Closes: #395389)
   * add 42_check_ups_logoutfix.dpatch to fix logout problem with check_ups
     (Closes: #387001)
Checksums-Sha1: 
 a6b224e991c461686c26f69e5ac9cbfad3da4bde 1623 nagios-plugins_1.4.12-5.dsc
 bcf569a805f4b486296f5924db100cc760991389 1831377 
nagios-plugins_1.4.12.orig.tar.gz
 491f86738d5e56a2e53c7e2a3693eedbd28d90d7 33266 nagios-plugins_1.4.12-5.diff.gz
 cfcb2b61196e77f047c9ba3cddd9b2b3dc6bef73 114084 nagios-plugins_1.4.12-5_all.deb
 842a96ca62b05940c2f537f905b5acdcc8a6936e 405512 
nagios-plugins-basic_1.4.12-5_i386.deb
 2946112050aa73c1ff7924dbd6e4a0550f2510cc 216342 
nagios-plugins-standard_1.4.12-5_i386.deb
Checksums-Sha256: 
 5aec85aac76969b13a8a835d0ad1982d5d54cc6d88298eed385ed7272bc7185f 1623 
nagios-plugins_1.4.12-5.dsc
 8f186bf05b0c66c38666affb3a15b860bd4b705962f1a46f785ef2c035b80662 1831377 
nagios-plugins_1.4.12.orig.tar.gz
 d6e3e753be6018632c85837b3004fa1f6b383737d7ba533156ca9f55bfe209b8 33266 
nagios-plugins_1.4.12-5.diff.gz
 369cbd456fa1c7c580312711683caf49d75b7e2b986b532ce4503c76e6a71d73 114084 
nagios-plugins_1.4.12-5_all.deb
 8ee8711ddc1a432738e7489963ea2667101fffcf03bd209537639488a748d207 405512 
nagios-plugins-basic_1.4.12-5_i386.deb
 a823f4908d5e21e5123a6e11fadeac29e87f793cca1a6dde884177843dd60b7c 216342 
nagios-plugins-standard_1.4.12-5_i386.deb
Files: 
 891206968683eda4b3b6c78430669c69 1623 net extra nagios-plugins_1.4.12-5.dsc
 af68d00bbe2c39de02803d23e5eecca3 1831377 net extra 
nagios-plugins_1.4.12.orig.tar.gz
 9461e2a7400aaf2efc3102cabce5e7ea 33266 net extra 
nagios-plugins_1.4.12-5.diff.gz
 13fa2cae7c21f9b8b1a8e5a3f6684c11 114084 net extra 
nagios-plugins_1.4.12-5_all.deb
 d04f1ff96b67d49548541e2532e82720 405512 net extra 
nagios-plugins-basic_1.4.12-5_i386.deb
 6897e1c7a8bb92387b28eeb6f67ba299 216342 net extra 
nagios-plugins-standard_1.4.12-5_i386.deb

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

iD8DBQFJhQY59u6Dud+QFyQRAjQ9AKDTHVXR/tKGjEfr0HaJxRr0tUhgOwCdFwmw
sHr1vGFNUKAnjKhWr9pu8tE=
=tht0
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to