[Nagiosplug-devel] [ nagiosplug-Bugs-1985263 ] check_ups doesn't disconnect cleanly

SourceForge.net noreply at sourceforge.net
Tue Nov 4 05:50:41 CET 2008


Bugs item #1985263, was opened at 2008-06-05 05:29
Message generated for change (Comment added) made by dermoth
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1985263&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General plugin execution
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Jan Wagner (cyco_dd)
>Assigned to: Thomas Guyot (dermoth)
Summary: check_ups doesn't disconnect cleanly

Initial Comment:
The following Bugreport we got against our debian package:

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.

The attached patch should do away with this problem; check_ups works now fine in my installation.

You can track the bugreport via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=387001

Thanks and kind regards, Jan.

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

Comment By: Thomas Guyot (dermoth)
Date: 2008-11-03 23:50

Message:
this problem is now fixed in svn. thank you for your report.

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

Comment By: Nick Loeve (trickie)
Date: 2008-10-23 09:17

Message:
Well as I cannot work out how to attach the updated diff, please see
http://bugs.gentoo.org/show_bug.cgi?id=243384 for a copy

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

Comment By: Nick Loeve (trickie)
Date: 2008-10-23 08:59

Message:
This patch doesn't apply currently... I have updated it, but I cannot work
out how to attach it. 



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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1985263&group_id=29880




More information about the Devel mailing list