[Pkg-nagios-devel] Bug#800631: check-mk-agent: CUPS printer queues are not detected anymore

Ingo Rogalsky rog7993 at web.de
Thu Oct 1 21:14:32 UTC 2015


Package: check-mk-agent
Version: 1.2.6p12-1~bpo8+1
Severity: normal
Tags: patch

Dear Maintainer,

   * What led up to the situation?

     update from 1.2.6p7-1~bpo8+1 -> 1.2.6p12-1~bpo8+1

   * What was the outcome of this action?

     The detecting of CUPS printer queues does not work anymore.

This patch  should fix the issue:

--- check_mk_agent  2015-10-01 23:08:52.282483902 +0200
+++ /usr/bin/check_mk_agent 2015-10-01 23:09:42.886927038 +0200
@@ -420,7 +420,7 @@
 
 # Status of CUPS printer queues
 if type lpstat > /dev/null 2>&1; then
-    if pgrep -x cups > /dev/null 2>&1; then
+    if pgrep -x cupsd > /dev/null 2>&1; then
         # first define a function to check cups
         function cups_queues () {
             CPRINTCONF=/etc/cups/printers.conf



-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages check-mk-agent depends on:
ii  libc6  2.19-18+deb8u1

Versions of packages check-mk-agent recommends:
ii  ethtool  1:3.16-1

Versions of packages check-mk-agent suggests:
ii  python  2.7.9-1
ii  xinetd  1:2.3.15-3

-- Configuration Files:
/etc/xinetd.d/check_mk changed:
service check_mk
{
	type           = UNLISTED
	port           = 6556
	socket_type    = stream
	protocol       = tcp
	wait           = no
	user           = root
	server         = /usr/bin/check_mk_agent
	# If you use fully redundant monitoring and poll the client
	# from more then one monitoring servers in parallel you might
	# want to use the agent cache wrapper:
	#server         = /usr/bin/check_mk_caching_agent
	# configure the IP address(es) of your Nagios server here:
	only_from      = 127.0.0.1 10.54.4.12
	# Don't be too verbose. Don't log every check. This might be
	# commented out for debugging. If this option is commented out
	# the default options will be used for this service.
	log_on_success =
	disable        = no
}


-- no debconf information



More information about the Pkg-nagios-devel mailing list